Skip to content

Commit 159e4a9

Browse files
committed
clang format
1 parent 4098c42 commit 159e4a9

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

PWGDQ/Tasks/DalitzSelection.cxx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ struct DalitzSelection {
154154
bool fIsTagAndProbe = false; // whether we are doing tag and probe, or just symmetric cuts
155155
bool fIsOutputRequested = false;
156156
bool fSkipEvent = false; // speed up by skipping next step of event if no track/pair is selected
157-
157+
158158
MixingHandler fMixingHandler;
159159
MixingHandler::MixingEvent* fMixingEvent = nullptr;
160160

161161
HistogramManager* fHistMan = nullptr;
162-
163-
float fVdrift = -1.; // TPC drift velocity
162+
163+
float fVdrift = -1.; // TPC drift velocity
164164
int64_t fFirstTime = 0; // validity time for the v drift, granularity is smaller than one run
165165
int64_t fLastTime = 0;
166166

@@ -347,7 +347,7 @@ struct DalitzSelection {
347347
}
348348
}
349349
}
350-
350+
351351
// setup mixing handler
352352
if (fConfigOptions.fRunEventMixing) {
353353
TString mixVarsString = fConfigOptions.fConfigMixingVariables.value;
@@ -382,7 +382,8 @@ struct DalitzSelection {
382382
VarManager::FillTrackCollision<TTrackFillMap>(fullTrack, collision);
383383
// if the track is TPC only, we shift it in z to be compatible with vertex time
384384
if (!fullTrack.hasITS() && !fullTrack.hasTOF() && !fullTrack.hasTRD() && fVdrift > 0. && fConfigOptions.fConfigShiftTPConly) {
385-
float tTB = 0.;;
385+
float tTB = 0.;
386+
;
386387
if (collision.collisionTimeRes() < 0.f || fullTrack.collisionId() < 0) { // use track data
387388
tTB = fullTrack.trackTime();
388389
} else {
@@ -670,14 +671,14 @@ struct DalitzSelection {
670671
// Bit 8 is a special bit in this case (keeping track sign), so we don't want it to be erased, except when everything else is empty
671672
uint32_t bitMask = (static_cast<uint32_t>(1) << 8);
672673
fMixingEvent->ClearFilteringMask(bitMask);
673-
674+
674675
for (auto& poolEvent : pool.events) {
675676
if (!(poolEvent.filteringMask & static_cast<uint32_t>(255))) {
676677
// all other bits have been erased, so we can also mark bit 8 for deletion
677678
poolEvent.filteringMask |= bitMask;
678679
poolEvent.counters[8] = fMixingHandler.GetPoolDepth();
679680
}
680-
for (auto const & t1 : fMixingEvent->tracks1) {
681+
for (auto const& t1 : fMixingEvent->tracks1) {
681682
// tag from event 1 and probe from event 2. If not tag and probe method, all tracks are in tracks1 array
682683
for (auto const& t2 : (fIsTagAndProbe ? poolEvent.tracks2 : poolEvent.tracks1)) {
683684
// check the two-track filter for the mixed pair
@@ -691,7 +692,7 @@ struct DalitzSelection {
691692
// (They are not filled by default in the FillPairMEAcrossTFs) to keep it light
692693
VarManager::fgValues[VarManager::kPt2] = t2.pt;
693694
VarManager::fgValues[VarManager::kEta2] = t2.eta;
694-
VarManager::fgValues[VarManager::kPhi2] = t2.phi;
695+
VarManager::fgValues[VarManager::kPhi2] = t2.phi;
695696
}
696697
bool isLS = (t1.filteringFlags & (static_cast<uint32_t>(1) << 8)) == (t2.filteringFlags & (static_cast<uint32_t>(1) << 8));
697698
for (size_t icut = 0; icut < fPairCuts.size(); icut++) {
@@ -780,7 +781,7 @@ struct DalitzSelection {
780781
VarManager::SetCalibrationObject(VarManager::kTPCProtonSigma, calibList->FindObject("sigma_map_proton"));
781782
}
782783
}
783-
784+
784785
void initNewDF(int64_t timestamp)
785786
{
786787
if (fConfigOptions.fConfigShiftTPConly && (timestamp < fFirstTime || timestamp > fLastTime)) {
@@ -799,7 +800,7 @@ struct DalitzSelection {
799800
const int pairType = VarManager::kDecayToEE;
800801
fDalitzmap.clear();
801802
fDalitzmapProbe.clear();
802-
803+
803804
bool initDFDone = false; // some quantities might need to be updated for each dataframe
804805

805806
for (const auto& collision : collisions) {
@@ -818,7 +819,7 @@ struct DalitzSelection {
818819
initNewRun(bc.timestamp());
819820
fCurrentRun = bc.runNumber();
820821
}
821-
822+
822823
if (!initDFDone) {
823824
initNewDF(bc.timestamp());
824825
initDFDone = true;
@@ -860,7 +861,7 @@ struct DalitzSelection {
860861
fDalitzmapAmbiguity.clear();
861862
fDalitzmapProbeAmbiguity.clear();
862863
fAmbiguousPairs.clear();
863-
864+
864865
bool initDFDone = false; // some quantities might need to be updated for each dataframe
865866

866867
for (const auto& collision : collisions) {
@@ -885,7 +886,7 @@ struct DalitzSelection {
885886
initNewDF(bc.timestamp());
886887
initDFDone = true;
887888
}
888-
889+
889890
if (fConfigOptions.fRunEventMixing) {
890891
fMixingEvent = new MixingHandler::MixingEvent();
891892
}
@@ -898,8 +899,8 @@ struct DalitzSelection {
898899
if (fConfigOptions.fRunEventMixing) {
899900
if (fMixingEvent->tracks1.size() > 0) {
900901
// we require that there is at least one tag track in the event to avoid having the pool full of events with only probe tracks which are then useless
901-
// In addition, this allows to avoid mixing events which are too close in time, which could contain tracks from the same event due to track-to-collision reassociation
902-
runMixing();
902+
// In addition, this allows to avoid mixing events which are too close in time, which could contain tracks from the same event due to track-to-collision reassociation
903+
runMixing();
903904
}
904905
delete fMixingEvent;
905906
}
@@ -947,7 +948,7 @@ struct DalitzSelection {
947948
initNewDF(bc.timestamp());
948949
initDFDone = true;
949950
}
950-
951+
951952
if (fConfigOptions.fRunEventMixing) {
952953
fMixingEvent = new MixingHandler::MixingEvent();
953954
}
@@ -960,7 +961,7 @@ struct DalitzSelection {
960961
if (fConfigOptions.fRunEventMixing) {
961962
if (fMixingEvent->tracks1.size() > 0) {
962963
// we require that there is at least one tag track in the event to avoid having the pool full of events with only probe tracks which are then useless
963-
// In addition, this allows to avoid mixing events which are too close in time, which could contain tracks from the same event due to track-to-collision reassociation
964+
// In addition, this allows to avoid mixing events which are too close in time, which could contain tracks from the same event due to track-to-collision reassociation
964965
runMixing();
965966
}
966967
delete fMixingEvent;

0 commit comments

Comments
 (0)