@@ -56,7 +56,7 @@ struct SgExclusiveJpsiMidrapidity {
5656 Configurable<float > fddaCut{" fddaCut" , 10000 ., " fddaThreshold" };
5757 Configurable<float > fddcCut{" fddcCut" , 10000 ., " fddcThreshold" };
5858 Configurable<float > zdcCut{" zdcCut" , 10 ., " zdcThreshold" };
59- Configurable<float > gapSide{ " gapSide " , 2 , " gapSelection" };
59+ Configurable<float > selectedGapSide{ " selectedGapSide " , 2 , " gapSelection" };
6060
6161 // Track Selections
6262 Configurable<float > pvCut{" pvCut" , 1.0 , " Use Only PV tracks" };
@@ -89,7 +89,7 @@ struct SgExclusiveJpsiMidrapidity {
8989 // Fill counter to see effect of each selection criteria
9090 auto hSelectionCounter = registry.add <TH1>(" hSelectionCounter" , " hSelectionCounter;;NEvents" , HistType::kTH1I , {{20 , 0 ., 20 .}});
9191
92- numSelectionCuts] = {" NoSelection" , " gapside" , " goodtracks" , " truegap" , " 2collcontrib" , " 2goodtrk" , " TPCPID" , " rapCut" , " unlikesign" , " mass_cut" , " coherent" , " incoherent" , " likesign" , " mass_cut" , " coherent" , " incoherent" };
92+ TString selectionCuts[ numSelectionCuts] = {" NoSelection" , " gapside" , " goodtracks" , " truegap" , " 2collcontrib" , " 2goodtrk" , " TPCPID" , " rapCut" , " unlikesign" , " mass_cut" , " coherent" , " incoherent" , " likesign" , " mass_cut" , " coherent" , " incoherent" };
9393
9494for (int i = 0 ; i < numSelectionCuts; i++) {
9595 hSelectionCounter->GetXaxis ()->SetBinLabel (i + 1 , selectionCuts[i].Data ());
@@ -165,7 +165,7 @@ registry.add("TwoPion/hMPt", "Inv.M vs Pt;M, GeV/c^{2};#it{P_{t}}, GeV/c;", kTH2
165165 // Gap side to be selected in the configurables
166166 gapSide = truegapSide;
167167
168- if (gapSide == gapSide ) {
168+ if (gapSide == selectedGapSide ) {
169169
170170 registry.fill (HIST (" hSelectionCounter" ), 2 );
171171
@@ -222,7 +222,7 @@ registry.add("TwoPion/hMPt", "Inv.M vs Pt;M, GeV/c^{2};#it{P_{t}}, GeV/c;", kTH2
222222 registry.fill (HIST (" hSelectionCounter" ), 3 );
223223
224224 // Selecting only Two good tracks
225- if ((rawPionTracks.size () == two) && (onlyPionTracks.size () == two)) {
225+ if ((static_cast < int >( rawPionTracks.size ()) == two) && (static_cast < int >( onlyPionTracks.size () ) == two)) {
226226
227227 registry.fill (HIST (" hSelectionCounter" ), 4 );
228228
@@ -247,50 +247,50 @@ registry.add("TwoPion/hMPt", "Inv.M vs Pt;M, GeV/c^{2};#it{P_{t}}, GeV/c;", kTH2
247247
248248 registry.fill (HIST (" hSelectionCounter" ), 6 );
249249
250- // Two opposite sign tracks
250+ // opposite sign tracks
251251 if (rawPionTracks[0 ].sign () != rawPionTracks[1 ].sign ()) {
252252
253253 registry.fill (HIST (" hSelectionCounter" ), 7 );
254- registry.fill (HIST (" TwoPion /hMassUnlike" ), p.M ());
254+ registry.fill (HIST (" Pion /hMassUnlike" ), p.M ());
255255
256256 // Flexible mass limits, can be selected in the configurable
257257 if ((p.M () > massMin) && (p.M () < massMax)) {
258258
259259 registry.fill (HIST (" hSelectionCounter" ), 8 );
260260
261- registry.fill (HIST (" TwoPion /hPt" ), p.Pt ());
262- registry.fill (HIST (" TwoPion /hEta" ), p.Eta ());
263- registry.fill (HIST (" TwoPion /hRap" ), p.Rapidity ());
264- registry.fill (HIST (" TwoPion /hPhiSystem" ), p.Phi ());
265- registry.fill (HIST (" TwoPion /hMPt" ), p.M (), p.Pt ());
261+ registry.fill (HIST (" Pion /hPt" ), p.Pt ());
262+ registry.fill (HIST (" Pion /hEta" ), p.Eta ());
263+ registry.fill (HIST (" Pion /hRap" ), p.Rapidity ());
264+ registry.fill (HIST (" Pion /hPhiSystem" ), p.Phi ());
265+ registry.fill (HIST (" Pion /hMPt" ), p.M (), p.Pt ());
266266
267267 // flexible pt limit for selecting coherent Rho(0)
268268 if (p.Pt () < ptCoherent) {
269269
270270 registry.fill (HIST (" hSelectionCounter" ), 9 );
271271
272272 // Quality Control plots after coherent Rho(0) selection
273- registry.fill (HIST (" TwoPion /hEta_t1" ), onlyPionTracks[0 ].Eta ());
274- registry.fill (HIST (" TwoPion /hEta_t2" ), onlyPionTracks[1 ].Eta ());
275- registry.fill (HIST (" TwoPion /hPtsingle_track1" ), onlyPionTracks[0 ].Pt ());
276- registry.fill (HIST (" TwoPion /hPtsingle_track2" ), onlyPionTracks[1 ].Pt ());
277-
278- registry.fill (HIST (" TwoPion /hNsigMuvsPt1" ), onlyPionTracks[0 ].Pt (), rawPionTracks[0 ].tpcNSigmaPi ());
279- registry.fill (HIST (" TwoPion /hNsigMuvsPt2" ), onlyPionTracks[1 ].Pt (), rawPionTracks[1 ].tpcNSigmaPi ());
280- registry.fill (HIST (" TwoPion /hNsigElvsPt1" ), onlyPionTracks[0 ].Pt (), rawPionTracks[0 ].tpcNSigmaEl ());
281- registry.fill (HIST (" TwoPion /hNsigElvsPt2" ), onlyPionTracks[1 ].Pt (), rawPionTracks[1 ].tpcNSigmaEl ());
282- registry.fill (HIST (" TwoPion /hNsigEl1vsEl2" ), rawPionTracks[0 ].tpcNSigmaPi (), rawPionTracks[1 ].tpcNSigmaPi ());
283-
284- registry.fill (HIST (" TwoPion /hP1" ), onlyPionTracks[0 ].P (), rawPionTracks[0 ].tpcSignal ());
285- registry.fill (HIST (" TwoPion /hP2" ), onlyPionTracks[1 ].P (), rawPionTracks[1 ].tpcSignal ());
286- registry.fill (HIST (" TwoPion /hTPCsig1" ), rawPionTracks[0 ].tpcSignal (), rawPionTracks[1 ].tpcSignal ());
287-
288- registry.fill (HIST (" TwoPion /Coherent/hMassUnlikeCoherent" ), p.M ());
273+ registry.fill (HIST (" Pion /hEta_t1" ), onlyPionTracks[0 ].Eta ());
274+ registry.fill (HIST (" Pion /hEta_t2" ), onlyPionTracks[1 ].Eta ());
275+ registry.fill (HIST (" Pion /hPtsingle_track1" ), onlyPionTracks[0 ].Pt ());
276+ registry.fill (HIST (" Pion /hPtsingle_track2" ), onlyPionTracks[1 ].Pt ());
277+
278+ registry.fill (HIST (" Pion /hNsigMuvsPt1" ), onlyPionTracks[0 ].Pt (), rawPionTracks[0 ].tpcNSigmaPi ());
279+ registry.fill (HIST (" Pion /hNsigMuvsPt2" ), onlyPionTracks[1 ].Pt (), rawPionTracks[1 ].tpcNSigmaPi ());
280+ registry.fill (HIST (" Pion /hNsigElvsPt1" ), onlyPionTracks[0 ].Pt (), rawPionTracks[0 ].tpcNSigmaEl ());
281+ registry.fill (HIST (" Pion /hNsigElvsPt2" ), onlyPionTracks[1 ].Pt (), rawPionTracks[1 ].tpcNSigmaEl ());
282+ registry.fill (HIST (" Pion /hNsigEl1vsEl2" ), rawPionTracks[0 ].tpcNSigmaPi (), rawPionTracks[1 ].tpcNSigmaPi ());
283+
284+ registry.fill (HIST (" Pion /hP1" ), onlyPionTracks[0 ].P (), rawPionTracks[0 ].tpcSignal ());
285+ registry.fill (HIST (" Pion /hP2" ), onlyPionTracks[1 ].P (), rawPionTracks[1 ].tpcSignal ());
286+ registry.fill (HIST (" Pion /hTPCsig1" ), rawPionTracks[0 ].tpcSignal (), rawPionTracks[1 ].tpcSignal ());
287+
288+ registry.fill (HIST (" Pion /Coherent/hMassUnlikeCoherent" ), p.M ());
289289 }
290290 // Incoherent Rho(0) selection
291291 if (p.Pt () > ptCoherent) {
292292 registry.fill (HIST (" hSelectionCounter" ), 10 );
293- registry.fill (HIST (" TwoPion /Incoherent/hMassUnlikeInCoherent" ), p.M ());
293+ registry.fill (HIST (" Pion /Incoherent/hMassUnlikeInCoherent" ), p.M ());
294294 }
295295 }
296296 }
@@ -299,13 +299,13 @@ registry.add("TwoPion/hMPt", "Inv.M vs Pt;M, GeV/c^{2};#it{P_{t}}, GeV/c;", kTH2
299299 if (rawPionTracks[0 ].sign () == rawPionTracks[1 ].sign ()) {
300300
301301 registry.fill (HIST (" hSelectionCounter" ), 11 );
302- registry.fill (HIST (" TwoPion /hMassLike" ), p.M ());
302+ registry.fill (HIST (" Pion /hMassLike" ), p.M ());
303303
304304 // Mass limit
305305 if ((p.M () > massMin) && (p.M () < massMax)) {
306306
307307 registry.fill (HIST (" hSelectionCounter" ), 12 );
308- registry.fill (HIST (" TwoPion /hPtLike" ), p.Pt ());
308+ registry.fill (HIST (" Pion /hPtLike" ), p.Pt ());
309309
310310 // Coherent Rho(0) selection
311311 if (p.Pt () < ptCoherent) {
0 commit comments