-
- Bool_t TestPIDBit(UInt_t fTest){
- if (fType & (1<<fTest) )
- return kTRUE ;
- else
- return kFALSE ;
- }
-
- Bool_t IsPhotonHiPu_LoEf() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(8)&&TestPIDBit(7)&&TestPIDBit(6)&& //PCA
- TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3)&& //TOF
- TestPIDBit(2)&&TestPIDBit(1)&&TestPIDBit(0)) //RCPV
- pid = kTRUE;
- return pid ;
- }
- Bool_t IsPhotonMed_Pu_Ef(){
- Bool_t pid=kFALSE ;
- if(TestPIDBit(7)&&TestPIDBit(6)&& //PCA
- TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3)&& //TOF
- TestPIDBit(2)&&TestPIDBit(1)&&TestPIDBit(0)) //RCPV
- pid = kTRUE ;
- return pid ;
- }
-
- Bool_t IsPhotonHiEf_LoPu() {
- Bool_t pid=kFALSE ;
- if(TestPIDBit(6)&& //PCA
- TestPIDBit(5)&&TestPIDBit(4)&&TestPIDBit(3)&& //TOF
- TestPIDBit(2)&&TestPIDBit(1)&&TestPIDBit(0)) //RCPV
- pid = kTRUE ;
- return pid ;
- }
-
- Bool_t IsPhoton() {
- Bool_t pid=kFALSE ;
- if(IsPhotonHiEf_LoPu()) pid = kTRUE ;
- return pid ;
- }