]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/slowDigitsCreate.C
Correct mother-daughter relation in particle stack.
[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_d_v1.root"; 
18
19   // Create the TRD digitzer 
20   AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
21
22   // Set the parameter
23   Digitizer->SetDiffusion();
24   //Digitizer->SetExB();
25   //Digitizer->SetElAttach();
26   //Digitizer->SetAttachProb();
27
28   // Open the AliRoot file
29   Digitizer->Open(alifile);
30
31   // Create the digits
32   Digitizer->MakeDigits();
33
34   // Write the digits into the input file
35   Digitizer->WriteDigits();
36
37   // Save the digitizer class in the AliROOT file
38   Digitizer->Write();
39
40 }