Update of the alignment-data fileting macro including a fix for the access to the...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jul 2009 15:10:04 +0000 (15:10 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jul 2009 15:10:04 +0000 (15:10 +0000)
PWG1/RunAlignmentDataFilterITS.C

index faca205..9e53c82 100644 (file)
@@ -4,6 +4,11 @@ void RunAlignmentDataFilterITS() {
   // A.Dainese, andrea.dainese@pd.infn.it
   //
 
+  // Input
+  Bool_t singlefile=kTRUE;
+  TString esdpath="/home/dainesea/alignData/RAWdata_CosmicsSum09/RecoSPDpro/chunk.";
+  Int_t ifirst=1, ilast=6;
+  //
   Int_t nentries=1234567890;
   Int_t firstentry=0;
 
@@ -33,8 +38,15 @@ void RunAlignmentDataFilterITS() {
   mgr->SetInputEventHandler(esdH);
 
   TChain *chainESD = new TChain("esdTree");
-  chainESD->Add("AliESDs.root");
+  if(singlefile) {
+    chainESD->Add("AliESDs.root");
+  } else {
+    for(Int_t i=ifirst; i<=ilast; i++) {
+      TString esdfile=esdpath; esdfile+=i; esdfile.Append("/AliESDs.root");
+      chainESD->Add(esdfile.Data());
+    }
+  } 
+
   // Attach input
   cInput = mgr->CreateContainer("cInput",TChain::Class(),AliAnalysisManager::kInputContainer);
   //mgr->ConnectInput(taskFilter, 0, cInput); // v4-16-Release