]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/slowDigitsCreate.C
Only one declaration of iDict in MakeDigits()
[u/mrichter/AliRoot.git] / TRD / slowDigitsCreate.C
CommitLineData
d5a17faf 1void slowDigitsCreate() {
5c7f4665 2
3/////////////////////////////////////////////////////////////////////////
4//
851d3db9 5// Creates the digits from the hit information.
5c7f4665 6//
7/////////////////////////////////////////////////////////////////////////
8
9 // Dynamically link some shared libs
10 if (gClassTable->GetID("AliRun") < 0) {
11 gROOT->LoadMacro("loadlibs.C");
12 loadlibs();
851d3db9 13 cout << "Loaded shared libraries" << endl;
5c7f4665 14 }
15
16 // Input (and output) file name
17 Char_t *alifile = "galice_d_v1.root";
18
851d3db9 19 // Create the TRD digitzer
20 AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
5c7f4665 21
851d3db9 22 // Set the parameter
23 Digitizer->SetDiffusion();
24 Digitizer->SetExB();
25 //Digitizer->SetElAttach();
26 //Digitizer->SetAttachProb();
5c7f4665 27
851d3db9 28 // Open the AliRoot file
29 Digitizer->Open(alifile);
5c7f4665 30
851d3db9 31 // Create the digits
32 Digitizer->MakeDigits();
5c7f4665 33
851d3db9 34 // Write the digits into the input file
35 Digitizer->WriteDigits();
5c7f4665 36
851d3db9 37 // Save the digitizer class in the AliROOT file
38 Digitizer->Write();
5c7f4665 39
40}