]>
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 | |
928866d3 | 22 | // Open the AliRoot file |
23 | Digitizer->Open(alifile); | |
24 | ||
851d3db9 | 25 | // Set the parameter |
928866d3 | 26 | Digitizer->SetDiffusion(0); |
793ff80c | 27 | Digitizer->SetVerbose(1); |
928866d3 | 28 | //Digitizer->SetTimeResponse(0); |
6f1e466d | 29 | //Digitizer->SetExB(); |
851d3db9 | 30 | //Digitizer->SetElAttach(); |
31 | //Digitizer->SetAttachProb(); | |
5c7f4665 | 32 | |
851d3db9 | 33 | // Create the digits |
34 | Digitizer->MakeDigits(); | |
5c7f4665 | 35 | |
851d3db9 | 36 | // Write the digits into the input file |
37 | Digitizer->WriteDigits(); | |
5c7f4665 | 38 | |
851d3db9 | 39 | // Save the digitizer class in the AliROOT file |
40 | Digitizer->Write(); | |
5c7f4665 | 41 | |
42 | } |