]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowDigitsCreate.C
needed for the test suite
[u/mrichter/AliRoot.git] / TRD / slowDigitsCreate.C
1 void slowDigitsCreate() {
2
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // Creates the digits from the hit information. 
6 //
7 /////////////////////////////////////////////////////////////////////////
8
9   // Dynamically link some shared libs
10   if (gClassTable->GetID("AliRun") < 0) {
11     gROOT->LoadMacro("loadlibs.C");
12     loadlibs();
13     cout << "Loaded shared libraries" << endl;
14   }
15
16   // Input (and output) file name
17   Char_t *alifile = "galice.root"; 
18
19   // Create the TRD digitzer 
20   AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
21
22   // Open the AliRoot file
23   Digitizer->Open(alifile);
24
25   // Set the parameter
26   Digitizer->SetDiffusion(0);
27   Digitizer->SetVerbose(1);
28   //Digitizer->SetTimeResponse(0);
29   //Digitizer->SetExB();
30   //Digitizer->SetElAttach();
31   //Digitizer->SetAttachProb();
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 }