]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/hits2sdigits.C
Corrected misplaced braces in DigitizeEnergy and adjusted the Tower ADC range to...
[u/mrichter/AliRoot.git] / TRD / hits2sdigits.C
1 void hits2sdigits() 
2 {
3
4   /////////////////////////////////////////////////////////////////////////
5   //
6   // Creates summable digits from the hit information. 
7   //
8   /////////////////////////////////////////////////////////////////////////
9
10   // Dynamically link some shared libs
11   if (gClassTable->GetID("AliRun") < 0) {
12     gROOT->LoadMacro("loadlibs.C");
13     loadlibs();
14     cout << "Loaded shared libraries" << endl;
15   }
16
17   // Input (and output) file name
18   Char_t *alifile = "galice.root"; 
19
20   // Create the TRD digitzer 
21   AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer","Digitizer class");
22
23   // Set the parameter
24   digitizer->SetVerbose(1);
25
26   // For the summable digits
27   digitizer->SetSDigits(kTRUE);
28
29   // Open the AliRoot file
30   digitizer->Open(alifile);
31
32   // Create the digits
33   digitizer->MakeDigits();
34
35   // Write the digits into the input file
36   digitizer->WriteDigits();
37
38   // Save the digitizer class in the AliROOT file
39   digitizer->Write();
40
41 }