]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
TString comparison not done with strcmp
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Sep 2011 07:15:00 +0000 (07:15 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Sep 2011 07:15:00 +0000 (07:15 +0000)
PWG4/PartCorrDep/AliAnaPi0EbE.cxx

index 4bb2fa55f5e321f35fd126c668d612c25cfddaba..54899e8a5fad06cde70cec7b9c1f22238214e869 100755 (executable)
@@ -411,8 +411,8 @@ void  AliAnaPi0EbE::MakeInvMassInCalorimeter()
     
     //Get shower shape information of clusters
     TObjArray *clusters = 0;
-    if     (!strcmp(fCalorimeter,"EMCAL")) clusters = GetEMCALClusters();
-    else if(!strcmp(fCalorimeter,"PHOS")) clusters = GetPHOSClusters() ;
+    if     (fCalorimeter=="EMCAL") clusters = GetEMCALClusters();
+    else if(fCalorimeter=="PHOS")  clusters = GetPHOSClusters() ;
     
     Bool_t bFound1        = kFALSE;
     Int_t  caloLabel1     = photon1->GetCaloLabel(0);