]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/hits2sdigits.C
Increase version number
[u/mrichter/AliRoot.git] / TRD / hits2sdigits.C
CommitLineData
d2829bc1 1void 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
29b902d4 18 Char_t *alifile = "galice_signal.root";
d2829bc1 19
20 // Create the TRD digitzer
29b902d4 21 AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer"
22 ,"TRD digitizer class");
d2829bc1 23
24 // Set the parameter
29b902d4 25 digitizer->SetDebug(1);
d2829bc1 26
27 // For the summable digits
28 digitizer->SetSDigits(kTRUE);
29
30 // Open the AliRoot file
31 digitizer->Open(alifile);
32
33 // Create the digits
34 digitizer->MakeDigits();
35
36 // Write the digits into the input file
37 digitizer->WriteDigits();
38
39 // Save the digitizer class in the AliROOT file
40 digitizer->Write();
41
42}