+
+ // Smaller exclusion cut for electron band in order not to sacrifise too much TOF pions,
+ // but still have a reasonably small electron contamination
+ Double_t exclusionForEl = exclusion / 2.;
+
+ // Exclusion cut on electrons for pions because the precision of pions is good and
+ // the contamination of electron can not be ignored (although effect on pions is small
+ // due to overall small electron fraction, the contamination would completely bias the
+ // electron fraction).
+ // The electron exclsuion cut is also applied to kaons and protons for consistency, but
+ // there should be no effect. This is because there is already the exclusion cut on pions
+ // and pions and electrons completely overlap in the region, where electrons and pions
+ // fall inside the inclusion cut of kaons/protons.
+ if (TMath::Abs(nsigma[kTOFpion]) < inclusion && TMath::Abs(nsigma[kTOFkaon]) > exclusion && TMath::Abs(nsigma[kTOFproton]) > exclusion
+ && TMath::Abs(nsigma[kTOFelectron]) > exclusionForEl)