]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/hits2sdigits.C
Macro to copy gAlice, TreeE, TreeK to a file
[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
cf31434d 18 Char_t *alifile = "galice.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
cf31434d 33 // For uncompressed hits
34 digitizer->SetHitTypeStandard();
35
d2829bc1 36 // Create the digits
37 digitizer->MakeDigits();
38
39 // Write the digits into the input file
40 digitizer->WriteDigits();
41
42 // Save the digitizer class in the AliROOT file
43 digitizer->Write();
44
45}