]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
remove leftover printouts in the TMVA task (C.Zampolli)
authorzconesa <zaida.conesa.del.valle@cern.ch>
Thu, 5 Jun 2014 16:44:57 +0000 (18:44 +0200)
committerzconesa <zaida.conesa.del.valle@cern.ch>
Thu, 5 Jun 2014 16:44:57 +0000 (18:44 +0200)
PWGHF/vertexingHF/AliAnalysisTaskSELc2V0bachelorTMVA.cxx

index 23eed59b99c63f91ae0cc9f75d5e5ab1036f18cc..da29ba2d28c46c030f2306ec495281754c646409 100755 (executable)
@@ -1224,34 +1224,34 @@ void AliAnalysisTaskSELc2V0bachelorTMVA::FillLc2pK0Sspectrum(AliAODRecoCascadeHF
   Double_t probTPCTOF[AliPID::kSPECIES]={-1.};
        
   UInt_t detUsed = fPIDCombined->ComputeProbabilities(bachelor, fPIDResponse, probTPCTOF);
-  Printf("detUsed (TPCTOF case) = %d", detUsed);
+  AliDebug(2, Form("detUsed (TPCTOF case) = %d", detUsed));
   Double_t probProton = -1.;
   Double_t probPion = -1.;
   Double_t probKaon = -1.;
   if (detUsed == (UInt_t)fPIDCombined->GetDetectorMask() ) {
-    Printf("We have found the detector mask for TOF + TPC: probProton will be set to %f", probTPCTOF[AliPID::kProton]);
+    AliDebug(2, Form("We have found the detector mask for TOF + TPC: probProton will be set to %f", probTPCTOF[AliPID::kProton]));
     probProton = probTPCTOF[AliPID::kProton];
     probPion = probTPCTOF[AliPID::kPion];
     probKaon = probTPCTOF[AliPID::kKaon];
   }
   else { // if you don't have both TOF and TPC, try only TPC
     fPIDCombined->SetDetectorMask(AliPIDResponse::kDetTPC);
-    Printf("We did not find the detector mask for TOF + TPC, let's see only TPC");
+    AliDebug(2, "We did not find the detector mask for TOF + TPC, let's see only TPC");
     detUsed = fPIDCombined->ComputeProbabilities(bachelor, fPIDResponse, probTPCTOF);
-    Printf("detUsed (TPC case) = %d", detUsed);
+    AliDebug(2,Form(" detUsed (TPC case) = %d", detUsed));
     if (detUsed == (UInt_t)fPIDCombined->GetDetectorMask()) {
       probProton = probTPCTOF[AliPID::kProton];
       probPion = probTPCTOF[AliPID::kPion];
       probKaon = probTPCTOF[AliPID::kKaon];
-      Printf("TPC only worked: probProton will be set to %f", probTPCTOF[AliPID::kProton]);
+      AliDebug(2, Form("TPC only worked: probProton will be set to %f", probTPCTOF[AliPID::kProton]));
     }
     else {
-      Printf("Only TPC did not work...");
+      AliDebug(2, "Only TPC did not work...");
     }
     // resetting mask to ask for both TPC+TOF
     fPIDCombined->SetDetectorMask(AliPIDResponse::kDetTPC+AliPIDResponse::kDetTOF);
   }
-  Printf("probProton = %f", probProton);
+  AliDebug(2, Form("probProton = %f", probProton));
 
   // now we get the TPC and TOF single PID probabilities (only for Proton, or the tree will explode :) )
   Double_t probProtonTPC = -1.;