enable branches of new esd
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Nov 2007 08:44:15 +0000 (08:44 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Nov 2007 08:44:15 +0000 (08:44 +0000)
PWG0/esdTrackCuts/AliCutTask.cxx
PWG0/esdTrackCuts/run.C

index 2c1a121..e73a688 100644 (file)
@@ -42,7 +42,8 @@ void AliCutTask::ConnectInputData(Option_t *)
     Printf("ERROR: Could not read chain from input slot 0");
   } else {
     // Disable all branches and enable only the needed ones
-    //tree->SetBranchStatus("*", kFALSE);
+    tree->SetBranchStatus("*", kFALSE);
+    //tree->SetBranchStatus("*Calo*", kFALSE);
 
     tree->SetBranchStatus("fTracks.*", kTRUE);
     tree->SetBranchStatus("Tracks.*", kTRUE);
@@ -51,8 +52,11 @@ void AliCutTask::ConnectInputData(Option_t *)
     tree->SetBranchStatus("AliESDHeader", kTRUE);
 
     tree->SetBranchStatus("fSPDVertex*", kTRUE);
-    tree->SetBranchStatus("SPDVertex", kTRUE);
-    //tree->SetBranchStatus("fPosition[3]", kTRUE);
+
+    // unclear how to enable vertex branch with new ESD format
+    tree->SetBranchStatus("SPDVertex.*", kTRUE);
+    tree->SetBranchStatus("*fPosition*", kTRUE);
+    tree->SetBranchStatus("*fPosition[3]", kTRUE);
 
     AliESDInputHandler *esdH = dynamic_cast<AliESDInputHandler*> (AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler());
 
@@ -92,6 +96,8 @@ void AliCutTask::Exec(Option_t *)
   // Post output data.
   PostData(0, fOutput);
 
+  fESD->GetVertex()->Print();
+
   if (!AliPWG0Helper::IsVertexReconstructed(fESD->GetVertex()))
     return;
 
index 1891c2e..80f6920 100644 (file)
@@ -13,8 +13,6 @@ void run(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, B
     gProof->EnablePackage("ANALYSIS");
     gProof->UploadPackage("PWG0base");
     gProof->EnablePackage("PWG0base");
-
-    //gProof->AddInput(new TNamed("PROOF_Packetizer", "TPacketizer"));
   }
   else
   {