Less verbose prtoton ratio task
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Nov 2009 08:53:39 +0000 (08:53 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Nov 2009 08:53:39 +0000 (08:53 +0000)
PWG2/SPECTRA/AliAnalysisTaskProtons.cxx
PWG2/SPECTRA/macros/configProtonAnalysis.C
PWG2/SPECTRA/macros/configProtonAnalysisBaseObject.C

index 8e62f18..60bdd26 100644 (file)
@@ -118,7 +118,8 @@ void AliAnalysisTaskProtons::Exec(Option_t *) {
     if(dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->IsEventTriggered(fESD,dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetTriggerMode())) {
       const AliESDVertex *vertex = dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetVertex(fESD,dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetAnalysisMode(),dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetVxMax(),dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetVyMax(),dynamic_cast<AliProtonAnalysisBase*>(fProtonAnalysis->GetProtonAnalysisBaseObject())->GetVzMax());
       if(vertex) {
-       Printf("Proton ESD analysis task: There are %d tracks in this event", fESD->GetNumberOfTracks());
+       AliDebug(1,Form("Proton ESD analysis task: There are %d tracks in this event",fESD->GetNumberOfTracks()));
+       //Printf("Proton ESD analysis task: There are %d tracks in this event", fESD->GetNumberOfTracks());
        fProtonAnalysis->Analyze(fESD,vertex);
       }//reconstructed vertex
     }//triggered event
@@ -129,8 +130,8 @@ void AliAnalysisTaskProtons::Exec(Option_t *) {
       Printf("ERROR: fAOD not available");
       return;
     }
-    
-    Printf("Proton AOD analysis task: There are %d tracks in this event", fAOD->GetNumberOfTracks());
+    AliDebug(1,Form("Proton AOD analysis task: There are %d tracks in this event", fAOD->GetNumberOfTracks()));
+    //Printf("Proton AOD analysis task: There are %d tracks in this event", fAOD->GetNumberOfTracks());
     fProtonAnalysis->Analyze(fAOD);
   }//AOD analysis
   
@@ -145,7 +146,8 @@ void AliAnalysisTaskProtons::Exec(Option_t *) {
       Printf("ERROR: Could not retrieve the stack");
       return;
     }
-    Printf("Proton MC analysis task: There are %d primaries in this event", stack->GetNprimary());
+    AliDebug(1,Form("Proton MC analysis task: There are %d primaries in this event", stack->GetNprimary()));
+    //Printf("Proton MC analysis task: There are %d primaries in this event", stack->GetNprimary());
     fProtonAnalysis->Analyze(stack,kFALSE);//kTRUE in case of inclusive measurement
   }//MC analysis                      
 
index 31c6800..c6bfa80 100644 (file)
@@ -4,7 +4,7 @@ AliProtonAnalysis *GetProtonAnalysisObject(const char* analysisLevel = "ESD",
                                           const char* pidMode = "Bayesian") {
                                           
                                           
-  gROOT->LoadMacro("configProtonAnalysisBaseObject.C");  
+  gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/configProtonAnalysisBaseObject.C");  
   //Function to setup the AliProtonAnalysis object and return it
   AliProtonAnalysisBase *baseAnalysis = GetProtonAnalysisBaseObject(analysisLevel,esdAnalysisType,pidMode);
 
@@ -32,7 +32,7 @@ AliProtonAnalysis *GetProtonAnalysisObject(const char* analysisLevel = "ESD",
 AliProtonQAAnalysis *GetProtonQAAnalysisObject(const char* analysisLevel = "ESD",
                                               const char* esdAnalysisType = "Hybrid",
                                               const char* pidMode = "Bayesian") {
-  gROOT->LoadMacro("configProtonAnalysisBaseObject.C"); 
+  gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/configProtonAnalysisBaseObject.C"); 
   //Function to setup the AliProtonQAAnalysis object and return it
   AliProtonAnalysisBase *baseAnalysis = GetProtonAnalysisBaseObject(analysisLevel,esdAnalysisType,pidMode);
 
index 6dfa2f0..0952f62 100644 (file)
@@ -30,16 +30,15 @@ AliProtonAnalysisBase *GetProtonAnalysisBaseObject(const char* analysisLevel = "
       baseAnalysis->SetPhaseSpace(10, -0.5, 0.5, 16, 0.5, 0.9);\r
       //baseAnalysis->SetPhaseSpace(18, -0.9, 0.9, 32, 0.5, 1.3);\r
       baseAnalysis->SetTPCpid();\r
-      //baseAnalysis->SetMaxSigmaToVertex(2.0);\r
-      baseAnalysis->SetMaxSigmaToVertexTPC(2.0);\r
+      baseAnalysis->SetMaxSigmaToVertex(2.0);\r
       /*baseAnalysis->SetMaxDCAXY(1.5);\r
        baseAnalysis->SetMaxDCAZ(1.5);*/\r
       baseAnalysis->SetPointOnITSLayer6();\r
       baseAnalysis->SetPointOnITSLayer5();\r
       baseAnalysis->SetPointOnITSLayer4();\r
       baseAnalysis->SetPointOnITSLayer3();\r
-      /*baseAnalysis->SetPointOnITSLayer2();\r
-       baseAnalysis->SetPointOnITSLayer1();*/\r
+      baseAnalysis->SetPointOnITSLayer2();\r
+      baseAnalysis->SetPointOnITSLayer1();\r
       baseAnalysis->SetMinITSClusters(4);\r
       break;\r
     case "Global":\r