]>
Commit | Line | Data |
---|---|---|
1 | Int_t AliTRDcreateDigits() | |
2 | { | |
3 | // | |
4 | // Creates the digits from the hits of the slow simulator | |
5 | // | |
6 | ||
7 | Int_t rc = 0; | |
8 | ||
9 | if (!gAlice) { | |
10 | cout << "<AliTRDcreateDigits> No AliRun object found" << endl; | |
11 | rc = 1; | |
12 | return rc; | |
13 | } | |
14 | gAlice->GetEvent(0); | |
15 | ||
16 | // Create the TRD digitzer | |
17 | AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class"); | |
18 | ||
19 | // Set the parameter | |
20 | Digitizer->SetGasGain(3300.); | |
21 | Digitizer->SetChipGain(8.0); | |
22 | Digitizer->SetNoise(1000.); | |
23 | Digitizer->SetADCinRange(1000.); | |
24 | Digitizer->SetADCoutRange(1023.); | |
25 | Digitizer->SetADCthreshold(0); | |
26 | Digitizer->SetVerbose(1); | |
27 | ||
28 | // Create the digits | |
29 | if (!(Digitizer->MakeDigits())) { | |
30 | rc = 2; | |
31 | return rc; | |
32 | } | |
33 | ||
34 | // Write the digits into the input file | |
35 | if (!(Digitizer->WriteDigits())) { | |
36 | rc = 3; | |
37 | return rc; | |
38 | } | |
39 | ||
40 | // Save the digitizer class in the AliROOT file | |
41 | if (!(Digitizer->Write())) { | |
42 | rc = 4; | |
43 | return rc; | |
44 | } | |
45 | ||
46 | return rc; | |
47 | ||
48 | } |