]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/hits2digits.C
Comments updated and merge problems solved.
[u/mrichter/AliRoot.git] / TRD / hits2digits.C
1 void hits2digits() 
2 {
3
4 /////////////////////////////////////////////////////////////////////////
5 //
6 // Creates 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->SetDebug(1);
25
26   // Open the AliRoot file
27   digitizer->Open(alifile);
28
29   // Create the digits
30   digitizer->MakeDigits();
31
32   // Write the digits into the input file
33   digitizer->WriteDigits();
34
35   // Save the digitizer class in the AliROOT file
36   digitizer->Write();
37
38 }