]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDcreateDigitsPPR.C
Smaller changes
[u/mrichter/AliRoot.git] / TRD / AliTRDcreateDigitsPPR.C
1 void AliTRDcreateDigitsPPR() {
2
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // Creates the digits from the hit information. 
6 //
7 /////////////////////////////////////////////////////////////////////////
8
9   // Dynamically link some shared libs
10   if (gClassTable->GetID("AliRun") < 0) {
11     gROOT->LoadMacro("loadlibs.C");
12     loadlibs();
13     cout << "Loaded shared libraries" << endl;
14   }
15
16   // Input (and output) file name
17   Char_t *alifile = "galice.root"; 
18
19   // Create the TRD digitzer 
20   AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
21
22   // Set the parameter
23   Digitizer->SetDiffusion();
24   Digitizer->SetVerbose(1);
25   //Digitizer->SetExB();
26
27   // Take out ADC conversion for raw data digits
28   Digitzer->SetADCinRange(1000000);
29   Digitzer->SetADCoutRange(1000000);
30   Digitzer->SetADCthreshold(0);
31
32   // Open the AliRoot file
33   Digitizer->Open(alifile);
34
35   // Create the digits
36   Digitizer->MakeDigits();
37
38   // Write the digits into the input file
39   Digitizer->WriteDigits();
40
41   // Save the digitizer class in the AliROOT file
42   Digitizer->Write();
43
44 }