You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- more plots with different ev. time for TOF
- Fixes in hist naming in qaEfficiency
- extend qaPIDPTC
- improve PDG selection in qa lite
- Add pdg selection configurable for multiple particles
Configurable<int> pdgCodeSel{"pdgCodeSel", 2, "pdgCode based particle selection, 1 defines pi,K,p,mu,e, 2 all final-state charged particles including light (hyper)nuclei"};
117
+
Configurable<int> pdgCodeSel{"pdgCodeSel", 0, "pdgCode based particle selection. Provide a PDG code required for particles to have. To be used in combo with pdgCodeSelMode"};
118
+
Configurable<int> pdgCodeSelMode{"pdgCodeSelMode", 2, "multiple pdgCode based particle selection. `1` accepts pi,K,p,mu,e, `2` accepts all final-state charged particles including light (hyper)nuclei"};
119
+
118
120
Configurable<bool> checkPdgAtReco{"checkPdgAtReco", false, "check pdg code also at reco levo for data-like reference"};
119
121
120
122
// TPC dEdx splines
@@ -578,18 +580,38 @@ struct qaEventTrackLite {
578
580
returntrue;
579
581
}
580
582
581
-
boolisPdgSelected(constInt_t pdgcode)
583
+
boolisPdgSelected(constint pdgcode)
582
584
{ // mimics selection of charged particles or id particles
583
-
Int_t abspdgcode = TMath::Abs(pdgcode);
584
-
if (abspdgcode == pdgCodeSel)
585
+
586
+
if (pdgcode == pdgCodeSel) { // Check that the pdg code is exactly what was asked
0 commit comments