// photon-like shape is defined with a purity "low", "medium" or "high"
Bool_t photonLike = kFALSE;
- if (purity == "low" ) photonLike = TestPIDBit(6);
- else if (purity == "medium") photonLike = TestPIDBit(7);
- else if (purity == "high" ) photonLike = TestPIDBit(8);
- else Error("IsPhoton","Wrong purity type: %s",purity);
+ if (strcmp(purity,"low") ==0) photonLike = TestPIDBit(6);
+ else if (strcmp(purity,"medium")==0) photonLike = TestPIDBit(7);
+ else if (strcmp(purity,"high") ==0) photonLike = TestPIDBit(8);
+ else Error("IsPhoton","Wrong purity type: \'%s\'",purity);
if (photonLike && // photon by PCA
(TestPIDBit(5)||TestPIDBit(4)||TestPIDBit(3))&& // fast by TOF
(TestPIDBit(2)||TestPIDBit(1)||TestPIDBit(0))) // neutral by CPV
// pi0-like shape is defined with a purity "low", "medium" or "high"
Bool_t pi0Like = kFALSE;
- if (purity == "low" ) pi0Like = TestPIDBit(9);
- else if (purity == "medium") pi0Like = TestPIDBit(10);
- else if (purity == "high" ) pi0Like = TestPIDBit(11);
+ if (strcmp(purity,"low") ==0) pi0Like = TestPIDBit(9);
+ else if (strcmp(purity,"medium")==0) pi0Like = TestPIDBit(10);
+ else if (strcmp(purity,"high") ==0) pi0Like = TestPIDBit(11);
else Error("IsPi0","Wrong purity type: %s",purity);
if (pi0Like && // pi0 by PCA
(TestPIDBit(5)||TestPIDBit(4)||TestPIDBit(3))&& // fast by TOF
// photon-like shape is defined with a purity "low", "medium" or "high"
Bool_t photonLike = kFALSE;
- if (purity == "low" ) photonLike = TestPIDBit(6);
- else if (purity == "medium") photonLike = TestPIDBit(7);
- else if (purity == "high" ) photonLike = TestPIDBit(8);
+ if (strcmp(purity,"low") ==0) photonLike = TestPIDBit(6);
+ else if (strcmp(purity,"medium")==0) photonLike = TestPIDBit(7);
+ else if (strcmp(purity,"high") ==0) photonLike = TestPIDBit(8);
else Error("IsElectron","Wrong purity type: %s",purity);
if (photonLike && // photon by PCA
(TestPIDBit(5)||TestPIDBit(4)||TestPIDBit(3))&& // fast by TOF