]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDcreateDigits.C
Merge with TRD-develop
[u/mrichter/AliRoot.git] / TRD / AliTRDcreateDigits.C
CommitLineData
793ff80c 1Int_t AliTRDcreateDigits()
2{
3 //
4 // Creates the digits from the hits of the slow simulator
5 //
6
7 Int_t rc = 0;
8
9 return rc;
10
11 if (!gAlice) {
12 cout << "<AliTRDcreateDigits> No AliRun object found" << endl;
13 rc = 1;
14 return rc;
15 }
16 gAlice->GetEvent(0);
17
18 // Create the TRD digitzer
19 AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
20
21 // Initialize the TRD and the geometry
22 if (!Digitizer->InitDetector()) {
23 cout << "<AliTRDcreateDigits> No TRD geometry found" << endl;
24 rc = 2;
25 return rc;
26 }
27
28 // Set the parameter
29 Digitizer->SetDiffusion();
30 Digitizer->SetVerbose(1);
31
32 // Create the digits
33 if (!Digitizer->MakeDigits()) {
34 rc = 3;
35 return rc;
36 }
37
38 return rc;
39
40}