4 /////////////////////////////////////////////////////////////////////////
6 // Creates 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->SetDebug(1);
26 // Open the AliRoot file
27 digitizer->Open(alifile);
30 digitizer->MakeDigits();
32 // Write the digits into the input file
33 digitizer->WriteDigits();
35 // Save the digitizer class in the AliROOT file