]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/hits2digits.C
Moved from exa
[u/mrichter/AliRoot.git] / TRD / hits2digits.C
CommitLineData
d2829bc1 1void 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
50ecb1bd 21 AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer","Digitizer class");
d2829bc1 22
23 // Set the parameter
29b902d4 24 digitizer->SetDebug(1);
d2829bc1 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}