Skip to content

Commit 6f8a8da

Browse files
authored
Merge pull request #22 from alibuild/alibot-cleanup-10915
[PWGDQ] Please consider the following formatting changes to #10915
2 parents 805dd4b + 324bafa commit 6f8a8da

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

PWGDQ/Tasks/filterPPwithAssociation.cxx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ using MyBarrelTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA,
107107
aod::pidTOFFullKa, aod::pidTOFFullPr>;
108108
using MyBarrelTracksTPCPID = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA,
109109
aod::pidTPCFullEl, aod::pidTPCFullPi,
110-
aod::pidTPCFullKa, aod::pidTPCFullPr>;
110+
aod::pidTPCFullKa, aod::pidTPCFullPr>;
111111

112112
using MyBarrelTracksAssocSelected = soa::Join<TrackAssoc, aod::DQBarrelTrackCuts, aod::DQEMuBarrelTrackCuts>; // As the kinelatic values must be re-computed for the tracks everytime it is associated to a collision, the selection is done not on the tracks, but on the track-collision association
113113

@@ -265,7 +265,7 @@ struct DQBarrelTrackSelection {
265265
fCutHistNames.push_back(Form("TrackBarrel_%s", cut.GetName()));
266266
}
267267

268-
DefineHistograms(fHistMan, cutNames.Data(), fConfigHistClasses.value); // define all histograms
268+
DefineHistograms(fHistMan, cutNames.Data(), fConfigHistClasses.value); // define all histograms
269269
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
270270
fOutputList.setObject(fHistMan->GetMainHistogramList());
271271

@@ -305,7 +305,7 @@ struct DQBarrelTrackSelection {
305305

306306
// material correction for track propagation
307307
// o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT;
308-
//o2::base::Propagator::MatCorrType noMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
308+
// o2::base::Propagator::MatCorrType noMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
309309

310310
uint32_t filterMap = static_cast<uint32_t>(0);
311311
uint32_t filterMapEMu = static_cast<uint32_t>(0);
@@ -322,7 +322,7 @@ struct DQBarrelTrackSelection {
322322
VarManager::FillTrack<TTrackFillMap>(track);
323323
// compute quantities which depend on the associated collision, such as DCA
324324
if (fPropTrack && (track.collisionId() != collision.globalIndex())) {
325-
VarManager::FillTrackCollision<TTrackFillMap>(track, collision);
325+
VarManager::FillTrackCollision<TTrackFillMap>(track, collision);
326326
}
327327
if (fConfigQA) {
328328
fHistMan->FillHistClass("TrackBarrel_BeforeCuts", VarManager::fgValues);
@@ -440,7 +440,7 @@ struct DQMuonsSelection {
440440
fCutHistNames.push_back(Form("Muon_%s", fTrackCuts[i].GetName()));
441441
}
442442

443-
DefineHistograms(fHistMan, cutNames.Data(), fConfigHistClasses.value); // define all histograms
443+
DefineHistograms(fHistMan, cutNames.Data(), fConfigHistClasses.value); // define all histograms
444444
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
445445
fOutputList.setObject(fHistMan->GetMainHistogramList());
446446
}
@@ -558,9 +558,9 @@ struct DQFilterPPTask {
558558
std::map<uint64_t, uint64_t> fFiltersMap; // map of filters for events that passed at least one filter
559559
std::map<uint64_t, std::vector<bool>> fCEFPfilters; // map of CEFP filters for events that passed at least one filter
560560

561-
uint32_t fPairingLSBarrel; // used to set in which cut setting LS pairs will be analysed
562-
uint32_t fPairingLSMuon; // used to set in which cut setting LS pairs will be analysed
563-
uint32_t fPairingLSBarrelMuon; // used to set in which cut setting LS pairs will be analysed
561+
uint32_t fPairingLSBarrel; // used to set in which cut setting LS pairs will be analysed
562+
uint32_t fPairingLSMuon; // used to set in which cut setting LS pairs will be analysed
563+
uint32_t fPairingLSBarrelMuon; // used to set in which cut setting LS pairs will be analysed
564564

565565
void DefineCuts()
566566
{
@@ -745,7 +745,7 @@ struct DQFilterPPTask {
745745
VarManager::ResetValues(0, VarManager::kNVars);
746746
VarManager::FillEvent<TEventFillMap>(collision); // event properties could be needed for cuts or histogramming
747747

748-
std::vector<std::map<uint64_t,int>> taggedCollisions(fNBarrelCuts+fNMuonCuts+fNElectronMuonCuts); // collisions corresponding to selected associations or to which selected tracks are assigned in AO2D
748+
std::vector<std::map<uint64_t, int>> taggedCollisions(fNBarrelCuts + fNMuonCuts + fNElectronMuonCuts); // collisions corresponding to selected associations or to which selected tracks are assigned in AO2D
749749

750750
std::vector<int> objCountersBarrel(fNBarrelCuts, 0); // init all counters to zero
751751
uint32_t pairingMask = 0; // in order to know which of the selections actually require pairing
@@ -756,10 +756,10 @@ struct DQFilterPPTask {
756756
for (int i = 0; i < fNBarrelCuts; ++i) {
757757
if (trackAssoc.isDQBarrelSelected() & (static_cast<uint32_t>(1) << i)) {
758758
objCountersBarrel[i] += 1;
759-
taggedCollisions[i][collision.globalIndex()] = 1; // add the current associated collision to the map
759+
taggedCollisions[i][collision.globalIndex()] = 1; // add the current associated collision to the map
760760
auto t1 = trackAssoc.template track_as<TTracks>();
761761
if (t1.has_collision()) {
762-
taggedCollisions[i][t1.collisionId()] = 1; // add the originally assigned collision to the map
762+
taggedCollisions[i][t1.collisionId()] = 1; // add the originally assigned collision to the map
763763
}
764764
}
765765
}
@@ -772,7 +772,7 @@ struct DQFilterPPTask {
772772
pairingMask |= (static_cast<uint32_t>(1) << i);
773773
}
774774
objCountersBarrel[i] = 0; // reset counters for selections where pairing is needed (count pairs instead)
775-
taggedCollisions[i].clear(); // empty the list of tagged collisions if pairing is needed (so we count just events with pairs or containing selected pair legs)
775+
taggedCollisions[i].clear(); // empty the list of tagged collisions if pairing is needed (so we count just events with pairs or containing selected pair legs)
776776
}
777777
}
778778

@@ -808,12 +808,12 @@ struct DQFilterPPTask {
808808
continue;
809809
}
810810

811-
taggedCollisions[icut][collision.globalIndex()] = 1; // add the originally assigned collision to the map
811+
taggedCollisions[icut][collision.globalIndex()] = 1; // add the originally assigned collision to the map
812812
if (t1.has_collision()) {
813-
taggedCollisions[icut][t1.collisionId()] = 1; // add the originally assigned collision to the map
813+
taggedCollisions[icut][t1.collisionId()] = 1; // add the originally assigned collision to the map
814814
}
815815
if (t2.has_collision()) {
816-
taggedCollisions[icut][t2.collisionId()] = 1; // add the originally assigned collision to the map
816+
taggedCollisions[icut][t2.collisionId()] = 1; // add the originally assigned collision to the map
817817
}
818818

819819
objCountersBarrel[icut] += 1; // count the pair
@@ -832,10 +832,10 @@ struct DQFilterPPTask {
832832
for (int i = 0; i < fNMuonCuts; ++i) {
833833
if (muon.isDQMuonSelected() & (static_cast<uint32_t>(1) << i)) {
834834
objCountersMuon[i] += 1;
835-
taggedCollisions[i + fNBarrelCuts][collision.globalIndex()] = 1; // add the current associated collision to the map
835+
taggedCollisions[i + fNBarrelCuts][collision.globalIndex()] = 1; // add the current associated collision to the map
836836
auto t1 = muon.template fwdtrack_as<TMuons>();
837837
if (t1.has_collision()) {
838-
taggedCollisions[i + fNBarrelCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
838+
taggedCollisions[i + fNBarrelCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
839839
}
840840
}
841841
}
@@ -849,7 +849,7 @@ struct DQFilterPPTask {
849849
pairingMask |= (static_cast<uint32_t>(1) << i);
850850
}
851851
objCountersMuon[i] = 0; // reset counters for selections where pairing is needed (count pairs instead)
852-
taggedCollisions[i + fNBarrelCuts].clear(); // empty the list of tagged collisions if pairing is needed (so we count just events with pairs or containing selected pair legs)
852+
taggedCollisions[i + fNBarrelCuts].clear(); // empty the list of tagged collisions if pairing is needed (so we count just events with pairs or containing selected pair legs)
853853
}
854854
}
855855

@@ -888,12 +888,12 @@ struct DQFilterPPTask {
888888
continue;
889889
}
890890

891-
taggedCollisions[icut + fNBarrelCuts][collision.globalIndex()] = 1; // add the originally assigned collision to the map
891+
taggedCollisions[icut + fNBarrelCuts][collision.globalIndex()] = 1; // add the originally assigned collision to the map
892892
if (t1.has_collision()) {
893-
taggedCollisions[icut + fNBarrelCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
893+
taggedCollisions[icut + fNBarrelCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
894894
}
895895
if (t2.has_collision()) {
896-
taggedCollisions[icut + fNBarrelCuts][t2.collisionId()] = 1; // add the originally assigned collision to the map
896+
taggedCollisions[icut + fNBarrelCuts][t2.collisionId()] = 1; // add the originally assigned collision to the map
897897
}
898898

899899
objCountersMuon[icut] += 1;
@@ -918,7 +918,7 @@ struct DQFilterPPTask {
918918
}
919919
}
920920
}
921-
921+
922922
// run pairing if there is at least one selection that requires it
923923
pairFilter = 0;
924924
if (pairingMask > 0) {
@@ -948,12 +948,12 @@ struct DQFilterPPTask {
948948
continue;
949949
}
950950

951-
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][collision.globalIndex()] = 1; // add the originally assigned collision to the map
951+
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][collision.globalIndex()] = 1; // add the originally assigned collision to the map
952952
if (t1.has_collision()) {
953-
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
953+
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][t1.collisionId()] = 1; // add the originally assigned collision to the map
954954
}
955955
if (t2.has_collision()) {
956-
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][t2.collisionId()] = 1; // add the originally assigned collision to the map
956+
taggedCollisions[icut + fNBarrelCuts + fNMuonCuts][t2.collisionId()] = 1; // add the originally assigned collision to the map
957957
}
958958

959959
objCountersElectronMuon[icut] += 1;
@@ -965,7 +965,7 @@ struct DQFilterPPTask {
965965
}
966966
}
967967
// compute the decisions and publish
968-
uint64_t filter = 0;
968+
uint64_t filter = 0;
969969
if constexpr (static_cast<bool>(TTrackFillMap)) {
970970
for (int i = 0; i < fNBarrelCuts; i++) {
971971
if (objCountersBarrel[i] >= fBarrelNreqObjs[i]) {
@@ -1044,9 +1044,9 @@ struct DQFilterPPTask {
10441044
} else { // this collision was already fired, possible via collision - track association; add as an OR the new decisions
10451045
fFiltersMap[collId] |= (static_cast<uint64_t>(1) << iTrig);
10461046
fCEFPfilters[collId][iTrig] = true;
1047-
}
1047+
}
10481048
}
1049-
}
1049+
}
10501050
}
10511051
return filter;
10521052
}

0 commit comments

Comments
 (0)