1 #if !defined(__CINT__) || defined(__MAKECINT__)
4 #include "AliITSDDLRawData.h"
8 Before running this macro it is necessary to comment the following line of the method
9 AddDigit in the class AliITSsimulationSDD
10 //if( fResponse->Do10to8() ) signal = Convert8to10( signal );
11 In this way the amplitude value for signal coming from SDD takes only 8 bits and not 10.
14 void AliITSDDLRawData(char* DigitsFile="galice.root"){
16 if (gClassTable->GetID("AliRun") < 0) {
17 gROOT->LoadMacro("loadlibs.C");
29 // Connect the Root input file containing Geometry, Kine and Hits
30 // galice.root file by default
31 char* filename="galice.root";
32 // TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(filename);
33 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(DigitsFile);
35 // file = new TFile(filename);
36 file = new TFile(DigitsFile);
37 cout<<"NEW FILE CREATED !!!"<<endl;
40 // Get AliRun object from file
42 gAlice = (AliRun*)file->Get("gAlice");
43 if (gAlice)cout<<"AliRun object found on file "<<filename<<endl;
45 cout<<"Can't access AliRun object on file "<<filename<<endl;
46 cout<<"Macro execution stopped!!!"<<endl;
49 // gAlice->SetTreeDFileName("digits.root");
50 gAlice->SetTreeDFileName(DigitsFile);
51 Int_t nparticles = gAlice->GetEvent(0);
54 AliITS *ITS = (AliITS*)gAlice->GetModule("ITS");
56 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;
63 TTree *TD = gAlice->TreeD();
65 AliITSDDLRawData *util=new AliITSDDLRawData();
68 //SILICON PIXEL DETECTOR
69 cout<<"Formatting data for SPD"<<endl;
71 util->RawDataSPD(ITS,TD);
76 //SILICON DRIFT DETECTOR
77 cout<<"Formatting data for SDD"<<endl;
79 util->RawDataSDD(ITS,TD);
83 //SILICON STRIP DETECTOR
84 cout<<"Formatting data for SSD"<<endl;
86 util->RawDataSSD(ITS,TD);