possibility to switch between the flat structure and the TList
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Nov 2011 18:30:28 +0000 (18:30 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Nov 2011 18:30:28 +0000 (18:30 +0000)
(Ruben)

TPC/AliTPCPreprocessorOffline.cxx

index e34be99..a169500 100644 (file)
@@ -1284,7 +1284,13 @@ void AliTPCPreprocessorOffline::MakeChainTime(){
   //const char *cptype[5]={"dy","dz","dsnp","dtheta","d1pt"}; 
   const char * hname[5]={"dy","dz","dsnp","dtheta","d1pt"};
   Int_t run=0;
-  AliTPCcalibTime  *calibTime= (AliTPCcalibTime*) f.Get("calibTime");
+  AliTPCcalibTime  *calibTime = 0;
+  TObjArray * array = (TObjArray*)f.Get("TPCCalib");
+  if (array){
+    calibTime = (AliTPCcalibTime *)array->FindObject("calibTime");
+  } else {
+    calibTime = (AliTPCcalibTime*)f.Get("calibTime");
+  }
   if (!calibTime) return;
   TTreeSRedirector *pcstream = new TTreeSRedirector("meanITSVertex.root");
   //