Skip to content

Commit eae3dfb

Browse files
author
ayatsuji
committed
add option
1 parent a5e6740 commit eae3dfb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,10 @@ struct AnalysisSameEventPairing {
12801280
Configurable<std::string> fConfigAddJSONHistograms{"cfgAddJSONHistograms", "", "Histograms in JSON format"};
12811281
Configurable<bool> fConfigQA{"cfgQA", true, "If true, fill output histograms"};
12821282
Configurable<bool> fConfigAmbiguousMuonHistograms{"cfgAmbiguousMuonHistograms", true, "If true, fill ambiguous histograms"};
1283+
1284+
//option for TR pair fill
1285+
Configurable<bool> fConfigTRPairs{"cfgFillTRPairs", false, "If true, fill Track rotation pairs"};
1286+
Configurable<int> fConfigNRotations{"cfgNRotations", 20, "Number of rotations for track rotation method"};
12831287

12841288
struct : ConfigurableGroup {
12851289
Configurable<std::string> url{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
@@ -2133,6 +2137,7 @@ struct AnalysisSameEventPairing {
21332137

21342138
// edit
21352139
// rotation 20 times
2140+
if (fConfigTRPairs) {
21362141
if constexpr (TPairType == VarManager::kDecayToEE) {
21372142
twoTrackFilter = a1.isBarrelSelected_raw() & a2.isBarrelSelected_raw() & a1.isBarrelSelectedPrefilter_raw() & a2.isBarrelSelectedPrefilter_raw() & fTrackFilterMask;
21382143

@@ -2179,7 +2184,7 @@ struct AnalysisSameEventPairing {
21792184
}
21802185
}
21812186
if (sign1 * sign2 < 0) {
2182-
for (int i = 0; i < 20; i++) {
2187+
for (int i = 0; i < fConfigNRotations.value; i++) {
21832188
VarManager::FillPairRotation<TPairType, TTrackFillMap>(t1, t2);
21842189
if constexpr (TPairType == VarManager::kDecayToEE) {
21852190
fHistMan->FillHistClass(Form("PairsBarrelTRPM_%s", fTrackCuts[icut].Data()), VarManager::fgValues);
@@ -2192,6 +2197,7 @@ struct AnalysisSameEventPairing {
21922197
}
21932198
}
21942199
}
2200+
}
21952201
// end
21962202
} // end loop over pairs of track associations
21972203
VarManager::fgValues[VarManager::kNPairsPerEvent] = fNPairPerEvent;

0 commit comments

Comments
 (0)