- update to runGrid and runAOD - KTOFPID added
authorlmilano <lmilano@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 May 2012 14:20:14 +0000 (14:20 +0000)
committerlmilano <lmilano@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 May 2012 14:20:14 +0000 (14:20 +0000)
PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraAOD.cxx
PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraAODTrackCuts.cxx
PWGLF/SPECTRA/PiKaPr/TestAOD/runAODProof.C

index 0abd9f5..63b9362 100644 (file)
@@ -93,7 +93,7 @@ void AliAnalysisTaskSpectraAOD::UserExec(Option_t *)
     {\r
       AliFatal("Not processing AODs");\r
     }\r
-    \r
+  Printf("ALIVE");\r
   //check on centrality distribution\r
   fHistMan->GetPtHistogram("CentCheck")->Fill(fAOD->GetCentrality()->GetCentralityPercentile("V0M"),fAOD->GetHeader()->GetCentralityP()->GetCentralityPercentileUnchecked("V0M"));\r
   \r
index d5d1937..000fb3f 100644 (file)
@@ -135,7 +135,7 @@ Bool_t AliSpectraAODTrackCuts::CheckTOFMatching()
   else{
     UInt_t status; 
     status=fTrack->GetStatus();
-    if((status&AliAODTrack::kTOFout)==0 || (status&AliAODTrack::kTIME)==0){
+    if((status&AliAODTrack::kTOFout)==0 || (status&AliAODTrack::kTIME)==0 || (status&AliAODTrack::kTOFpid)==0){
       fHistoCuts->Fill(kTOFMatching);
       return kFALSE; //tof matching and PID
     } 
index c38f922..79d61ec 100644 (file)
@@ -1,4 +1,4 @@
-void runAODProof(Int_t c=2, const char * proofMode = "full")
+void runAODProof(Int_t c=1, const char * proofMode = "full")
 { //1 data AOD049
   //2 MC AOD048
   //3 data AOD086
@@ -24,12 +24,12 @@ void runAODProof(Int_t c=2, const char * proofMode = "full")
    handler->SetProofReset(0);
    //handler->SetROOTVersion("v5-33-02a");
    //handler->SetAliROOTVersion("v5-03-11-AN");
-   handler->SetAliROOTVersion("v5-03-17-AN");
+   handler->SetAliROOTVersion("v5-04-25-AN");
    
    //handler->SetNproofWorkers(5);
-   //handler->SetNproofWorkersPerSlave(5);
-   //handler->SetProofCluster(Form("%s@alice-caf.cern.ch", gSystem->Getenv("CAFUSER")));
-   handler->SetProofCluster(Form("%s@skaf.saske.sk",gSystem->Getenv("CAFUSER")));
+   handler->SetNproofWorkersPerSlave(4);
+   handler->SetProofCluster(Form("%s@alice-caf.cern.ch", gSystem->Getenv("CAFUSER")));
+   //handler->SetProofCluster(Form("%s@skaf.saske.sk",gSystem->Getenv("CAFUSER")));
    // Set handler for Real DATA:
    if (c == 1){
      //handler->SetProofDataSet("/alice/data/LHC10h_000138653_p2_AOD049#aodTree");
@@ -39,6 +39,7 @@ void runAODProof(Int_t c=2, const char * proofMode = "full")
      handler->SetProofDataSet("/alice/sim/LHC11a10a_000138653_AOD048#aodTree|/alice/sim/LHC11a10a_000138662_AOD048#aodTree|/alice/sim/LHC11a10a_000138666_AOD048#aodTree|/alice/sim/LHC11a10a_000138795_AOD048#aodTree|/alice/sim/LHC11a10a_000139107_AOD048#aodTree|/alice/sim/LHC11a10a_000139110_AOD048#aodTree");      
    }
    if (c == 3){
+     //handler->SetProofDataSet("/default/lmilano/LHC10h_000138653_AOD086_p2#aodTree");      
      handler->SetProofDataSet("/default/lmilano/LHC10h_000138653_AOD086_p2#aodTree|/default/lmilano/LHC10h_000138662_AOD086_p2#aodTree|/default/lmilano/LHC10h_000138666_AOD086_p2#aodTree|/default/lmilano/LHC10h_000139107_AOD086_p2#aodTree");      
    }
    if (c == 4){
@@ -96,11 +97,13 @@ void runAODProof(Int_t c=2, const char * proofMode = "full")
      //if(c==1 || c==2)tcuts->SetTrackType(5); //AOD 046 & 047. Standard Cut with loose DCA
      if(c==1 || c==2)tcuts->SetTrackType(6); //AOD 046 & 047. Standard Cut with tight DCA
      if(c==3 || c==4)tcuts->SetTrackType(10); //AOD 086 & 090. Standard Raa cut
+     //if(c==3 || c==4)tcuts->SetTrackType(8); //AOD 086 & 090. TPC only
+     //if(c==3 || c==4)tcuts->SetTrackType(2); //AOD 086 & 090. ITS strong
      tcuts->SetEta(.8);
      //tcuts->SetDCA(.1);
      tcuts->SetPt(5);
      tcuts->SetY(.5);
-     tcuts->SetPtTOFMatching(0.6);   
+     tcuts->SetPtTOFMatching(.6);   
      tcuts->SetQvecMin(QvecCutMin[iCut]);   
      tcuts->SetQvecMax(QvecCutMax[iCut]);    
      vcuts->SetCentralityCutMax(CentCutMax[iCut]);