- Bool_t IsFastChargedHadron() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3)) //TOF
- pid = kTRUE ;
- return pid ;
- }
- Bool_t IsSlowChargedHadron() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(1)||TestPIDBit(0)) //CPV
- pid = kTRUE ;
- return pid ;
- }
- Bool_t IsFastNeutralHadron() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3)&& //TOF
- TestPIDBit(2)&&TestPIDBit(1)&&TestPIDBit(0))//RCPV
- pid = kTRUE ;
- return pid ;
- }
- Bool_t IsSlowNeutralHadron() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(2)&&TestPIDBit(1)&&TestPIDBit(0))//RCPV
- pid = kTRUE ;
- return pid ;
- }
+ Bool_t IsPhoton (TString purity = "low") const;
+ Bool_t IsPi0 (TString purity = "low") const;
+ Bool_t IsElectron (TString purity = "low") const;
+ Bool_t IsHardPhoton () const;
+ Bool_t IsHardPi0 () const;
+ Bool_t IsHadron () const;
+ Bool_t IsChargedHadron () const;
+ Bool_t IsNeutralHadron () const;
+ Bool_t IsFastChargedHadron() const;
+ Bool_t IsSlowChargedHadron() const;
+ Bool_t IsFastNeutralHadron() const;
+ Bool_t IsSlowNeutralHadron() const;
+ Bool_t IsEleCon(TString purity = "low") const;