]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDDLRawData.C
ALIROOT-5420 Changes for CDH v3
[u/mrichter/AliRoot.git] / ITS / AliITSDDLRawData.C
index db50773adba07f3fa8c8353f17e62ae1f2911b5c..57f7ff15ca548ccd33e0830da01e54d31f98f103 100644 (file)
@@ -6,12 +6,6 @@
 #include "AliITS.h"
 #endif
 
-/*
-Before running this macro it is necessary to comment the following line of the method
-AddDigit in the class AliITSsimulationSDD
-//if( fResponse->Do10to8() ) signal = Convert8to10( signal ); 
-In this way the amplitude value for signal coming from SDD takes only 8 bits and not 10.
-*/
 //DigitsFile is the input file that contains digits
 
 void AliITSDDLRawData(Int_t eventNumber=0){
@@ -23,6 +17,7 @@ void AliITSDDLRawData(Int_t eventNumber=0){
   const char * inFile_new = "galice.root";
   AliRunLoader *rl = AliRunLoader::Open(inFile_new,"Event","read");
   rl->LoadgAlice();
+  gAlice=rl->GetAliRun();
   Int_t nevents=rl->GetNumberOfEvents();
   cout<<"Number of Events:"<<nevents<<endl;
   while (eventNumber<=0 || eventNumber>nevents){
@@ -43,7 +38,7 @@ void AliITSDDLRawData(Int_t eventNumber=0){
 
   Int_t nmodules;
   ITS->InitModules(-1,nmodules);
-  ITS->SetTreeAddressD(TD);
+  ITS->GetDetTypeSim()->SetTreeAddressD(TD,"ITS");
 
     AliITSDDLRawData *util=new AliITSDDLRawData();
     //Verbose level