]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSHits2SDR.C
new macros compliant with multiple events/files for TreeS,D,R
[u/mrichter/AliRoot.git] / ITS / AliITSHits2SDR.C
index 2782c1b5ab727c85606e1b413e18fed23be25fdd..bd687afa8c037f8653d0dda22d753760e22cc6b8 100644 (file)
@@ -107,16 +107,14 @@ void AliITSH2SD2Files(TFile *file2){
        return ;
   }
 
-  // for old files
+  // these re-instantiations are necessary if the input file was created
+  // with aliroot version V3.07 or older
   AliITSresponseSDD *resp1 = (AliITSresponseSDD*)ITS->DetType(1)->GetResponseModel();
-  TDatime *ct0= new TDatime(2002,04,26,00,00,00),ct=file2->GetCreationDate();
-  if(ct0->GetDate()<ct.GetDate()){
-    resp1 = new AliITSresponseSDD();
-    ITS->SetResponseModel(1,resp1);
-    cout << "Changed response class for SDD: \n";
-    resp1->Print();
-  } // end if
-  // end mods for old files (<26/4/2002)
+  resp1 = new AliITSresponseSDD();
+  ITS->SetResponseModel(1,resp1);
+  cout << "Changed response class for SDD: \n";
+  resp1->Print();
+
   for (Int_t nevent=0; nevent<gAlice->TreeE()->GetEntries(); nevent++) {
     gAlice->GetEvent(nevent);
     gAlice->MakeTree("S",file2);