Skip to content

Commit 413f61c

Browse files
committed
add comment
1 parent 36adc3d commit 413f61c

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

PWGDQ/Core/VarManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ class VarManager : public TObject
823823
kCos2DeltaPhiPP_FT0C,
824824
kNullA2,
825825
kInfA2,
826-
kSel1,
827-
kSel2,
826+
kSel1, // if track1 is used in TPC Q vector calculation
827+
kSel2, // if track2 is used in TPC Q vector calculation
828828
kDeltaPhiPair,
829829
kOpeningAngle,
830830
kQuadDCAabsXY,

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ struct AnalysisSameEventPairing {
13051305
o2::base::MatLayerCylSet* fLUT = nullptr;
13061306
TH1D* ResoFlowSP = nullptr;
13071307
TH1D* ResoFlowEP = nullptr;
1308-
int fCurrentRun; // needed to detect if the run changed and trigger update of calibrations etc.
1308+
int fCurrentRun = -1; // needed to detect if the run changed and trigger update of calibrations etc.
13091309

13101310
OutputObj<THashList> fOutputList{"output"};
13111311

@@ -1391,7 +1391,7 @@ struct AnalysisSameEventPairing {
13911391

13921392
uint32_t fTrackFilterMask = 0; // mask for the track cuts required in this task to be applied on the barrel cuts produced upstream
13931393
uint32_t fMuonFilterMask = 0; // mask for the muon cuts required in this task to be applied on the muon cuts produced upstream
1394-
uint32_t fQvectorFilterMask = 0; // mask for the track cuts required to be applied on the tracks used for the Q-vector calculation
1394+
uint32_t fQvectorFilterMask = 0; // mask for the track cuts applied in TPC Q-vector calculation, used to remove auto-correlation in flow analysis
13951395
int fNCutsBarrel = 0;
13961396
int fNCutsMuon = 0;
13971397
int fNPairCuts = 0;
@@ -1972,8 +1972,9 @@ struct AnalysisSameEventPairing {
19721972

19731973
fNPairPerEvent++;
19741974

1975-
VarManager::fgValues[VarManager::kSel1] = -999.;
1976-
VarManager::fgValues[VarManager::kSel2] = -999.;
1975+
// check if t1 or t2 is used in TPC Q vector calculation, so as to remove auto correlations in the flow analysis
1976+
VarManager::fgValues[VarManager::kSel1] = -9999.;
1977+
VarManager::fgValues[VarManager::kSel2] = -9999.;
19771978
if (t1.reducedeventId() == event.globalIndex()) {
19781979
if ((a1.isBarrelSelected_raw() & fQvectorFilterMask) > 0) {
19791980
VarManager::fgValues[VarManager::kSel1] = 1.;

0 commit comments

Comments
 (0)