@@ -482,7 +482,7 @@ struct AnalysisTrackSelection {
482482 AxisSpec axisPhi{phiBins, " #it{#varphi}_{e} (rad)" };
483483 AxisSpec axisPt{ptBins, " #it{p}_{T,e} (GeV/#it{c})" };
484484 AxisSpec axisMCColl = {3 , -0.5 , 2.5 , " MCcoll info" };
485- AxisSpec axisAmbig = {2 , -0.5 , 1.5 , " Ambiguous info" };
485+ AxisSpec axisDoubleCount = {2 , -0.5 , 1.5 , " Double count info" };
486486
487487 // List of track cuts
488488 TString cutNamesStr = fConfigCuts .value ;
@@ -557,15 +557,15 @@ struct AnalysisTrackSelection {
557557 fHistRecNegPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
558558 fHistRecPosSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_SingleRec_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
559559 fHistRecNegSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_SingleRec_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
560- fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisAmbig }, true ));
561- fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisAmbig }, true ));
560+ fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisDoubleCount }, true ));
561+ fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisDoubleCount }, true ));
562562 } else {
563563 fHistRecPosPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
564564 fHistRecNegPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
565565 fHistRecPosSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_SingleRec_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
566566 fHistRecNegSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_SingleRec_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
567- fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisAmbig }, true ));
568- fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisAmbig }, true ));
567+ fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisDoubleCount }, true ));
568+ fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/%s_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fTrackCuts .at (list_i).GetName (), fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisDoubleCount }, true ));
569569 }
570570 }
571571 }
@@ -577,16 +577,16 @@ struct AnalysisTrackSelection {
577577 fHistRecNegPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
578578 fHistRecPosSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_SingleRec_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
579579 fHistRecNegSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_SingleRec_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisEta, axisPhi}, true ));
580- fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisAmbig }, true ));
581- fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisAmbig }, true ));
580+ fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisDoubleCount }, true ));
581+ fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {axisPt, axisMCColl, axisDoubleCount }, true ));
582582
583583 } else {
584584 fHistRecPosPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
585585 fHistRecNegPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
586586 fHistRecPosSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_SingleRec_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
587587 fHistRecNegSingleRecPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_SingleRec_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisEta, axisPhi}, true ));
588- fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisAmbig }, true ));
589- fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisAmbig }, true ));
588+ fHistRecPosClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Pos_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisDoubleCount }, true ));
589+ fHistRecNegClassCollDoubleCountPartMC .push_back (registry.add <TH3 >(Form (" SingleElectron/NoCut_MCVars/Nrec_Neg_ClassCollDoubleCount_%s" , fMCSignals .at (i).GetName ()), " " , HistType::kTH3D , {{ptBinsVec, " #it{p}_{T,e} (GeV/#it{c})" }, axisMCColl, axisDoubleCount }, true ));
590590 }
591591 }
592592 }
@@ -1010,7 +1010,8 @@ struct AnalysisTrackSelection {
10101010 for (auto & track : groupedTracks) {
10111011
10121012 // How many time the associated MC track was seen for this cut
1013- Int_t fRecCounters [fTrackCuts .size () + 1 ];
1013+ Int_t const nTrackCuts = fTrackCuts .size ();
1014+ Int_t fRecCounters [nTrackCuts + 1 ];
10141015 for (unsigned int k = 0 ; k < fTrackCuts .size () + 1 ; k++) {
10151016 fRecCounters [k] = 0 ;
10161017 }
@@ -1109,7 +1110,7 @@ struct AnalysisTrackSelection {
11091110 uint32_t mcDecision = 0 ;
11101111 int isig = 0 ;
11111112 Int_t mctrackindex = -999 ;
1112- Int_t doublereconstructedtrack[fTrackCuts . size () + 1 ];
1113+ Int_t doublereconstructedtrack[nTrackCuts + 1 ];
11131114 for (unsigned int k = 0 ; k < fTrackCuts .size () + 1 ; k++) {
11141115 doublereconstructedtrack[k] = 0 ;
11151116 }
0 commit comments