]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 e34be992ccf7b058f7f62203f7c1efe09987bc6c..a169500036e1023fbd7e74270a4e52db61374163 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");
   //