3 #include "AliITSDDLRawData.h"
7 Before running this macro it is necessary to comment the following line of the method
8 AddDigit in the class AliITSsimulationSDD
9 //if( fResponse->Do10to8() ) signal = Convert8to10( signal );
10 In this way the amplitude value for signal coming from SDD takes only 8 bits and not 10.
12 //DigitsFile is the input file that contains digits
14 void AliITSDDLRawData(char* DigitsFile="galiceD.root"){
16 if (gClassTable->GetID("AliRun") < 0) {
17 gROOT->LoadMacro("loadlibs.C");
33 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(DigitsFile);
35 file = new TFile(DigitsFile);
39 // Get AliRun object from file
41 gAlice = (AliRun*)file->Get("gAlice");
42 if (gAlice)cout<<"AliRun object found on file "<<DigitsFile<<endl;
44 cout<<"Can't access AliRun object on file "<<DigitsFile<<endl;
45 cout<<"Macro execution stopped!!!"<<endl;
49 gAlice->SetTreeDFileName(DigitsFile);
50 // Long_t nparticles = gAlice->GetEvent(0);
52 //Int_t nparticles = gAlice->GetEvent(0);
55 AliITS *ITS = (AliITS*)gAlice->GetModule("ITS");
57 ITS->InitModules(-1,nmodules);
58 cout<<"Number of ITS modules= "<<nmodules<<endl;
59 //cout<<"Filling modules... It takes a while, now. Please be patient"<<endl;
60 //ITS->FillModules(0,0,nmodules," "," ");
61 //cout<<"ITS modules .... DONE!"<<endl;
65 TTree* TD = (TTree*)file->Get("TreeD0");
67 ::Error("DDLRawData","Can not find tree with ITS digits");
70 ITS->SetTreeAddressD(TD);
73 //TTree *TD = gAlice->TreeD();
74 cout<<"Insert the event number:";
78 AliITSDDLRawData *util=new AliITSDDLRawData();
82 // 2: txt files with digits
83 //BE CAREFUL, verbose level 2 MUST be used only for debugging and
84 //it is highly suggested to use this mode only for debugging digits files
85 //reasonably small, because otherwise the size of the txt files can reach
86 //quickly several MB wasting time and disk space.
90 //SILICON PIXEL DETECTOR
91 cout<<"Formatting data for SPD"<<endl;
93 util->RawDataSPD(ITS,TD,spdLDCs,eventNumber);
97 // util->TestFormat(eventNumber);
99 //SILICON DRIFT DETECTOR
100 cout<<"Formatting data for SDD"<<endl;
102 util->RawDataSDD(ITS,TD,sddLDCs,eventNumber);
106 //SILICON STRIP DETECTOR
107 cout<<"Formatting data for SSD"<<endl;
109 util->RawDataSSD(ITS,TD,ssdLDCs,eventNumber);