]>
Commit | Line | Data |
---|---|---|
d5a17faf | 1 | void 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 | |
793ff80c | 17 | Char_t *alifile = "galice.root"; |
5c7f4665 | 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(); | |
793ff80c | 24 | Digitizer->SetVerbose(1); |
6f1e466d | 25 | //Digitizer->SetExB(); |
851d3db9 | 26 | //Digitizer->SetElAttach(); |
27 | //Digitizer->SetAttachProb(); | |
5c7f4665 | 28 | |
851d3db9 | 29 | // Open the AliRoot file |
30 | Digitizer->Open(alifile); | |
5c7f4665 | 31 | |
851d3db9 | 32 | // Create the digits |
33 | Digitizer->MakeDigits(); | |
5c7f4665 | 34 | |
851d3db9 | 35 | // Write the digits into the input file |
36 | Digitizer->WriteDigits(); | |
5c7f4665 | 37 | |
851d3db9 | 38 | // Save the digitizer class in the AliROOT file |
39 | Digitizer->Write(); | |
5c7f4665 | 40 | |
41 | } |