4 /////////////////////////////////////////////////////////////////////////
6 // Creates summable digits from the hit information.
8 /////////////////////////////////////////////////////////////////////////
10 // Dynamically link some shared libs
11 if (gClassTable->GetID("AliRun") < 0) {
12 gROOT->LoadMacro("loadlibs.C");
14 cout << "Loaded shared libraries" << endl;
17 // Input (and output) file name
18 Char_t *alifile = "galice.root";
20 // Create the TRD digitzer
21 AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer","Digitizer class");
24 digitizer->SetVerbose(1);
26 // For the summable digits
27 digitizer->SetSDigits(kTRUE);
29 // Open the AliRoot file
30 digitizer->Open(alifile);
33 digitizer->MakeDigits();
35 // Write the digits into the input file
36 digitizer->WriteDigits();
38 // Save the digitizer class in the AliROOT file