@@ -38,34 +38,34 @@ enum PdgCode {
3838};
3939
4040enum SourceType {
41- fNotElec = 0 , // not electron
42- fDirectCharm = 1 , // electrons from prompt charm hadrons
43- fDirectBeauty = 2 , // electrons from primary beauty hadrons
44- fBeautyCharm = 3 , // electrons from non-prompt charm hadrons
45- fDirectGamma = 4 , // electrons from direct photon
46- fGammaPi0 = 5 ,
47- fGammaEta = 6 ,
48- fGammaOmega = 7 ,
49- fGammaPhi = 8 ,
50- fGammaEtaPrime = 9 ,
51- fGammaRho0 = 10 ,
52- fGammaK0s = 11 ,
53- fGammaK0l = 12 ,
54- fGammaKe3 = 13 ,
55- fGammaLambda0 = 14 ,
56- fGammaSigma = 15 ,
57- fPi0 = 16 ,
58- fEta = 17 ,
59- fOmega = 18 ,
60- fPhi = 19 ,
61- fEtaPrime = 20 ,
62- fRho0 = 21 ,
63- fK0s = 22 ,
64- fK0l = 23 ,
65- fKe3 = 24 ,
66- fLambda0 = 25 ,
67- fSigma = 26 ,
68- fElse = 27
41+ NotElec = 0 , // not electron
42+ DirectCharm = 1 , // electrons from prompt charm hadrons
43+ DirectBeauty = 2 , // electrons from primary beauty hadrons
44+ BeautyCharm = 3 , // electrons from non-prompt charm hadrons
45+ DirectGamma = 4 , // electrons from direct photon
46+ GammaPi0 = 5 ,
47+ GammaEta = 6 ,
48+ GammaOmega = 7 ,
49+ GammaPhi = 8 ,
50+ GammaEtaPrime = 9 ,
51+ GammaRho0 = 10 ,
52+ GammaK0s = 11 ,
53+ GammaK0l = 12 ,
54+ GammaKe3 = 13 ,
55+ GammaLambda0 = 14 ,
56+ GammaSigma = 15 ,
57+ Pi0 = 16 ,
58+ Eta = 17 ,
59+ Omega = 18 ,
60+ Phi = 19 ,
61+ EtaPrime = 20 ,
62+ Rho0 = 21 ,
63+ K0s = 22 ,
64+ K0l = 23 ,
65+ Ke3 = 24 ,
66+ Lambda0 = 25 ,
67+ Sigma = 26 ,
68+ Else = 27
6969};
7070
7171struct HfTaskSingleElectron {
@@ -194,7 +194,7 @@ struct HfTaskSingleElectron {
194194 {
195195 auto mcpart = track.mcParticle ();
196196 if (std::abs (mcpart.pdgCode ()) != kElectron ) {
197- return fNotElec ;
197+ return NotElec ;
198198 }
199199
200200 int motherPdg = -999 ;
@@ -223,27 +223,27 @@ struct HfTaskSingleElectron {
223223 auto const & grmothersIdsVec = mctrack.front ().mothersIds ();
224224
225225 if (grmothersIdsVec.empty ()) {
226- return fDirectCharm ;
226+ return DirectCharm ;
227227 } else {
228228 grmotherPt = mctrack.front ().pt ();
229229 grmotherPdg = std::abs (mctrack.front ().pdgCode ());
230230 if ((static_cast <int >(grmotherPdg / 100 .) % 10 ) == kBottom || (static_cast <int >(grmotherPdg / 1000 .) % 10 ) == kBottom ) {
231231 mpt = grmotherPt;
232232 mpdg = grmotherPdg;
233- return fBeautyCharm ;
233+ return BeautyCharm ;
234234 }
235235 }
236236 }
237237 partMother = mctrack;
238238 }
239239 } else if ((static_cast <int >(motherPdg / 100 .) % 10 ) == kBottom || (static_cast <int >(motherPdg / 1000 .) % 10 ) == kBottom ) { // check if electron from beauty hadrons
240- return fDirectBeauty ;
240+ return DirectBeauty ;
241241 } else if (motherPdg == kGamma ) { // check if electron from photon conversion
242242 mctrack = partMother.front ().template mothers_as <aod::McParticles>();
243243 if (mctrack.size ()) {
244244 auto const & grmothersIdsVec = mctrack.front ().mothersIds ();
245245 if (grmothersIdsVec.empty ()) {
246- return fDirectGamma ;
246+ return DirectGamma ;
247247 } else {
248248 grmotherPdg = std::abs (mctrack.front ().pdgCode ());
249249 mpdg = grmotherPdg;
@@ -255,19 +255,19 @@ struct HfTaskSingleElectron {
255255 auto const & ggrmothersIdsVec = mctrack.front ().mothersIds ();
256256 if (ggrmothersIdsVec.empty ()) {
257257 if (grmotherPdg == kPi0 ) {
258- return fGammaPi0 ;
258+ return GammaPi0 ;
259259 } else if (grmotherPdg == kEta ) {
260- return fGammaEta ;
260+ return GammaEta ;
261261 } else if (grmotherPdg == kOmega ) {
262- return fGammaOmega ;
262+ return GammaOmega ;
263263 } else if (grmotherPdg == kPhi ) {
264- return fGammaPhi ;
264+ return GammaPhi ;
265265 } else if (grmotherPdg == kEtaPrime ) {
266- return fGammaEtaPrime ;
266+ return GammaEtaPrime ;
267267 } else if (grmotherPdg == kRho770_0 ) {
268- return fGammaRho0 ;
268+ return GammaRho0 ;
269269 } else {
270- return fElse ;
270+ return Else ;
271271 }
272272 } else {
273273 ggrmotherPdg = mctrack.front ().pdgCode ();
@@ -276,42 +276,42 @@ struct HfTaskSingleElectron {
276276 mpt = ggrmotherPt;
277277 if (grmotherPdg == kPi0 ) {
278278 if (ggrmotherPdg == kK0Short ) {
279- return fGammaK0s ;
279+ return GammaK0s ;
280280 } else if (ggrmotherPdg == kK0Long ) {
281- return fGammaK0l ;
281+ return GammaK0l ;
282282 } else if (ggrmotherPdg == kKPlus ) {
283- return fGammaKe3 ;
283+ return GammaKe3 ;
284284 } else if (ggrmotherPdg == kLambda0 ) {
285- return fGammaLambda0 ;
285+ return GammaLambda0 ;
286286 } else if (ggrmotherPdg == kSigmaPlus ) {
287- return fGammaSigma ;
287+ return GammaSigma ;
288288 } else {
289289 mpdg = grmotherPdg;
290290 mpt = grmotherPt;
291- return fGammaPi0 ;
291+ return GammaPi0 ;
292292 }
293293 } else if (grmotherPdg == kEta ) {
294294 mpdg = grmotherPdg;
295295 mpt = grmotherPt;
296- return fGammaEta ;
296+ return GammaEta ;
297297 } else if (grmotherPdg == kOmega ) {
298298 mpdg = grmotherPdg;
299299 mpt = grmotherPt;
300- return fGammaOmega ;
300+ return GammaOmega ;
301301 } else if (grmotherPdg == kPhi ) {
302302 mpdg = grmotherPdg;
303303 mpt = grmotherPt;
304- return fGammaPhi ;
304+ return GammaPhi ;
305305 } else if (grmotherPdg == kEtaPrime ) {
306306 mpdg = grmotherPdg;
307307 mpt = grmotherPt;
308- return fGammaEtaPrime ;
308+ return GammaEtaPrime ;
309309 } else if (grmotherPdg == kRho770_0 ) {
310310 mpdg = grmotherPdg;
311311 mpt = grmotherPt;
312- return fGammaRho0 ;
312+ return GammaRho0 ;
313313 } else {
314- return fElse ;
314+ return Else ;
315315 }
316316 }
317317 }
@@ -323,20 +323,20 @@ struct HfTaskSingleElectron {
323323 auto const & grmothersIdsVec = mctrack.front ().mothersIds ();
324324 if (grmothersIdsVec.empty ()) {
325325 static const std::map<int , SourceType> pdgToSource = {
326- {kPi0 , fPi0 },
327- {kEta , fEta },
328- {kOmega , fOmega },
329- {kPhi , fPhi },
330- {kEtaPrime , fEtaPrime },
331- {kRho770_0 , fRho0 },
332- {kKPlus , fKe3 },
333- {kK0Long , fK0l }};
326+ {kPi0 , Pi0 },
327+ {kEta , Eta },
328+ {kOmega , Omega },
329+ {kPhi , Phi },
330+ {kEtaPrime , EtaPrime },
331+ {kRho770_0 , Rho0 },
332+ {kKPlus , Ke3 },
333+ {kK0Long , K0l }};
334334
335335 auto it = pdgToSource.find (motherPdg);
336336 if (it != pdgToSource.end ()) {
337337 return it->second ;
338338 }
339- return fElse ;
339+ return Else ;
340340
341341 } else {
342342 if (motherPdg == kPi0 ) {
@@ -345,42 +345,42 @@ struct HfTaskSingleElectron {
345345 mpt = grmotherPt;
346346 mpdg = grmotherPdg;
347347 if (grmotherPdg == kK0Short ) {
348- return fK0s ;
348+ return K0s ;
349349 } else if (grmotherPdg == kK0Long ) {
350- return fK0l ;
350+ return K0l ;
351351 } else if (grmotherPdg == kKPlus ) {
352- return fKe3 ;
352+ return Ke3 ;
353353 } else if (grmotherPdg == kLambda0 ) {
354- return fLambda0 ;
354+ return Lambda0 ;
355355 } else if (grmotherPdg == kSigmaPlus ) {
356- return fSigma ;
356+ return Sigma ;
357357 } else {
358358 mpt = motherPt;
359359 mpdg = motherPdg;
360- return fPi0 ;
360+ return Pi0 ;
361361 }
362362 } else if (motherPdg == kEta ) {
363- return fEta ;
363+ return Eta ;
364364 } else if (motherPdg == kOmega ) {
365- return fOmega ;
365+ return Omega ;
366366 } else if (motherPdg == kPhi ) {
367- return fPhi ;
367+ return Phi ;
368368 } else if (motherPdg == kEtaPrime ) {
369- return fEtaPrime ;
369+ return EtaPrime ;
370370 } else if (motherPdg == kRho770_0 ) {
371- return fRho0 ;
371+ return Rho0 ;
372372 } else if (motherPdg == kKPlus ) {
373- return fKe3 ;
373+ return Ke3 ;
374374 } else if (motherPdg == kK0Long ) {
375- return fK0l ;
375+ return K0l ;
376376 } else {
377- return fElse ;
377+ return Else ;
378378 }
379379 }
380380 }
381381 }
382382
383- return fElse ;
383+ return Else ;
384384 }
385385
386386 void processData (soa::Filtered<MyCollisions>::iterator const & collision,
@@ -474,22 +474,22 @@ struct HfTaskSingleElectron {
474474 double mpt; // electron source pt
475475 int source = getElecSource (track, mpt, mpdg);
476476
477- if (source == fDirectBeauty || source == fBeautyCharm ) {
477+ if (source == DirectBeauty || source == BeautyCharm ) {
478478 histos.fill (HIST (" hPdgB" ), mpdg);
479479 histos.fill (HIST (" dcaBeauty" ), track.pt (), track.dcaXY ());
480480 }
481481
482- if (source == fDirectCharm ) {
482+ if (source == DirectCharm ) {
483483 histos.fill (HIST (" hPdgC" ), mpdg);
484484 histos.fill (HIST (" dcaCharm" ), track.pt (), track.dcaXY ());
485485 }
486486
487- if (source >= fGammaPi0 && source <= fGammaSigma ) {
487+ if (source >= GammaPi0 && source <= GammaSigma ) {
488488 histos.fill (HIST (" hPdgCo" ), mpdg);
489489 histos.fill (HIST (" dcaConv" ), track.pt (), track.dcaXY ());
490490 }
491491
492- if (source >= fPi0 && source <= fSigma ) {
492+ if (source >= Pi0 && source <= Sigma ) {
493493 histos.fill (HIST (" hPdgDa" ), mpdg);
494494 histos.fill (HIST (" dcaDalitz" ), track.pt (), track.dcaXY ());
495495 }
0 commit comments