3 #include "AliITSDDLRawData.h"
4 #include "AliRunLoader.h"
9 //DigitsFile is the input file that contains digits
11 void AliITSDDLRawData(Int_t eventNumber=0){
17 const char * inFile_new = "galice.root";
18 AliRunLoader *rl = AliRunLoader::Open(inFile_new,"Event","read");
20 gAlice=rl->GetAliRun();
21 Int_t nevents=rl->GetNumberOfEvents();
22 cout<<"Number of Events:"<<nevents<<endl;
23 while (eventNumber<=0 || eventNumber>nevents){
24 cout<<"Insert the event number:";
28 rl->GetEvent(eventNumber-1);
29 AliLoader *itsloader=rl->GetLoader("ITSLoader");
30 itsloader->LoadDigits();
31 TTree *TD=itsloader->TreeD();
32 gAlice=rl->GetAliRun();
34 cout<<"gAlice is null"<<endl;
37 AliITS *ITS = (AliITS*)gAlice->GetDetector("ITS");
40 ITS->InitModules(-1,nmodules);
41 ITS->GetDetTypeSim()->SetTreeAddressD(TD,"ITS");
43 AliITSDDLRawData *util=new AliITSDDLRawData();
47 // 2: txt files with digits
48 //BE CAREFUL, verbose level 2 MUST be used only for debugging and
49 //it is highly suggested to use this mode only for debugging digits files
50 //reasonably small, because otherwise the size of the txt files can reach
51 //quickly several MB wasting time and disk space.
55 //SILICON PIXEL DETECTOR
56 cout<<"Formatting data for SPD"<<endl;
58 util->RawDataSPD(ITS,TD,spdLDCs,eventNumber);
62 // util->TestFormat(eventNumber);
64 //SILICON DRIFT DETECTOR
65 cout<<"Formatting data for SDD"<<endl;
67 util->RawDataSDD(ITS,TD,sddLDCs,eventNumber);
71 //SILICON STRIP DETECTOR
72 cout<<"Formatting data for SSD"<<endl;
74 util->RawDataSSD(ITS,TD,ssdLDCs,eventNumber);