Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions PWGMM/Lumi/Tasks/LumiFDDFT0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include <array>
#include <cmath>
#include <iostream>

Check failure on line 43 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <map>
#include <vector>

Expand Down Expand Up @@ -279,10 +279,10 @@
mTriggerFDD = fdd.triggerMask();
timeaFDD = fdd.timeA();
timecFDD = fdd.timeC();
for (auto amplitude : fdd.chargeA()) {

Check failure on line 282 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargeaFDD += amplitude;
}
for (auto amplitude : fdd.chargeC()) {

Check failure on line 285 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargecFDD += amplitude;
}
} // fdd
Expand All @@ -292,11 +292,11 @@
mTriggerFT0 = ft0.triggerMask();
timeaFT0 = ft0.timeA();
timecFT0 = ft0.timeC();
for (auto amplitude : ft0.amplitudeA()) {

Check failure on line 295 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargeaFT0 += amplitude;
}

for (auto amplitude : ft0.amplitudeC()) {

Check failure on line 299 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargecFT0 += amplitude;
}
} // ft0
Expand All @@ -306,7 +306,7 @@
auto fv0 = collision.foundFV0();
mTriggerFV0 = fv0.triggerMask();
timeaFV0 = fv0.time();
for (auto amplitude : fv0.amplitude()) {

Check failure on line 309 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargeaFV0 += amplitude;
}
} // fv0
Expand Down Expand Up @@ -352,6 +352,9 @@
for (const auto& bc : bcs) {
if (!bc.timestamp())
continue;
if (bc.inputMask() == 0) // No trigger inputs active
continue;

if (useRelTimeStamp) {
Long64_t relTS = bc.timestamp() - fttimestamp;
rowEventInfoCTP(relTS, bc.globalBC(), bc.inputMask());
Expand All @@ -361,7 +364,7 @@
}

// Scan over the FDD table and store charge and time along with globalBC
for (auto& fdd : fdds) {

Check failure on line 367 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto bc = fdd.bc_as<BCsWithTimestamps>();
if (!bc.timestamp())
continue;
Expand All @@ -369,7 +372,7 @@
o2::parameters::GRPMagField* grpo = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(ccdbpath_grp, bc.timestamp());
if (grpo != nullptr) {
o2::base::Propagator::initFieldFromGRP(grpo);
std::cout << "run " << bc.runNumber() << std::endl;

Check failure on line 375 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
} else {
LOGF(fatal,
"GRP object is not available in CCDB for run=%d at timestamp=%llu",
Expand Down Expand Up @@ -410,7 +413,7 @@
} // end of fdd table

// Scan over the FT0 table and store charge and time along with globalBC
for (auto& ft0 : ft0s) {

Check failure on line 416 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto bc = ft0.bc_as<BCsWithTimestamps>();
if (!bc.timestamp())
continue;
Expand All @@ -420,7 +423,7 @@
histoslite.fill(HIST("BCFT0"), localBC);
double chargeaFT0 = 0.;
double chargecFT0 = 0.;
for (auto amplitude : ft0.amplitudeA()) {

Check failure on line 426 in PWGMM/Lumi/Tasks/LumiFDDFT0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
chargeaFT0 += amplitude;
}
for (auto amplitude : ft0.amplitudeC()) {
Expand Down
Loading