Skip to content

Commit bae74b9

Browse files
committed
Please consider the following formatting changes
1 parent 3d89c1c commit bae74b9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Detectors/TPC/workflow/include/TPCWorkflow/TPCTimeSeriesSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace tpc
2323
static constexpr header::DataDescription getDataDescriptionTimeSeries() { return header::DataDescription{"TIMESERIES"}; }
2424
static constexpr header::DataDescription getDataDescriptionTPCTimeSeriesTFId() { return header::DataDescription{"ITPCTSTFID"}; }
2525

26-
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, o2::dataformats::GlobalTrackID::mask_t src, bool useft0=false);
26+
o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter, const o2::base::Propagator::MatCorrType matType, const bool enableUnbinnedWriter, o2::dataformats::GlobalTrackID::mask_t src, bool useft0 = false);
2727

2828
} // end namespace tpc
2929
} // end namespace o2

Detectors/TPC/workflow/src/TPCTimeSeriesSpec.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ class TPCTimeSeries : public Task
221221
// fill available FT0-AC event times vs BClong
222222
std::map<ULong64_t, short> t0array;
223223
for (const auto& t0 : ft0rec) {
224-
if(!(t0.isValidTime(1) && t0.isValidTime(2))){ // skip if !(A & C)
224+
if (!(t0.isValidTime(1) && t0.isValidTime(2))) { // skip if !(A & C)
225225
continue;
226226
}
227227

228228
ULong64_t bclong = (t0.mIntRecord.orbit - processing_helpers::getFirstTForbit(pc)) * o2::constants::lhc::LHCMaxBunches + t0.mIntRecord.bc;
229-
if(t0array.find(bclong) == t0array.end()){ // add if it doesn't exist
229+
if (t0array.find(bclong) == t0array.end()) { // add if it doesn't exist
230230
t0array.emplace(std::make_pair(bclong, t0.getCollisionTime(0)));
231231
}
232232
}
233233

234-
static const double BC_TIME_INPS_INV= 1E-3/o2::constants::lhc::LHCBunchSpacingNS;
234+
static const double BC_TIME_INPS_INV = 1E-3 / o2::constants::lhc::LHCBunchSpacingNS;
235235

236236
// loop over ITS-TPC-TRD-TOF and ITS-TPC-TOF tracks an store for each ITS-TPC track the TOF track index
237237
for (const auto& tofMatch : tofMatches) {
@@ -240,8 +240,8 @@ class TPCTimeSeries : public Task
240240
if (refTPC.isIndexSet()) {
241241
o2::track::TrackLTIntegral ltIntegral = tpctofmatch.getLTIntegralOut();
242242
ULong64_t bclongtof = (tpctofmatch.getSignal() - 10000) * BC_TIME_INPS_INV;
243-
double t0 = 0; // bclongtof * o2::constants::lhc::LHCBunchSpacingNS * 1E3; // if you want to subtract also the BC uncomment this part (-> tofsignal can be a float)
244-
if(!(t0array.find(bclongtof) == t0array.end())){ // subtract FT0-AC if it exists in the same BC
243+
double t0 = 0; // bclongtof * o2::constants::lhc::LHCBunchSpacingNS * 1E3; // if you want to subtract also the BC uncomment this part (-> tofsignal can be a float)
244+
if (!(t0array.find(bclongtof) == t0array.end())) { // subtract FT0-AC if it exists in the same BC
245245
t0 += t0array.find(bclongtof)->second;
246246
}
247247

@@ -254,20 +254,20 @@ class TPCTimeSeries : public Task
254254
bool isMultiStripMatch = tpctofmatch.getChi2() < 1E9;
255255
float chi2 = tpctofmatch.getChi2();
256256

257-
int mask = 0; // to be added in idxTPCTrackToTOFCluster?
258-
if(isMultiHitX){ // 1nd bit on if multiple hits along X
257+
int mask = 0; // to be added in idxTPCTrackToTOFCluster?
258+
if (isMultiHitX) { // 1nd bit on if multiple hits along X
259259
mask += 1;
260260
}
261-
if(isMultiHitZ){ // 2nd bit on if multiple hits along Z
261+
if (isMultiHitZ) { // 2nd bit on if multiple hits along Z
262262
mask += 2;
263263
}
264-
if(fabs(dy) > 0.5){ // 3rd bit on if Y-residual too large
264+
if (fabs(dy) > 0.5) { // 3rd bit on if Y-residual too large
265265
mask += 4;
266266
}
267-
if(isMultiStripMatch){ // 4th bit on if two strips fired
267+
if (isMultiStripMatch) { // 4th bit on if two strips fired
268268
mask += 8;
269269
}
270-
if(chi2 > 3){ // 5th bit on if chi2 > 3
270+
if (chi2 > 3) { // 5th bit on if chi2 > 3
271271
mask += 16;
272272
}
273273
if (chi2 > 5) {
@@ -1810,7 +1810,7 @@ o2::framework::DataProcessorSpec getTPCTimeSeriesSpec(const bool disableWriter,
18101810
dataRequest->requestTracks(srcTracks, useMC);
18111811
dataRequest->requestClusters(GTrackID::getSourcesMask("TPC"), useMC);
18121812

1813-
if(useft0) {
1813+
if (useft0) {
18141814
dataRequest->requestFT0RecPoints(false);
18151815
}
18161816

0 commit comments

Comments
 (0)