1 Int_t AliTRDcreateDigits()
4 // Creates the digits from the hits of the slow simulator
10 cout << "<AliTRDcreateDigits> No AliRun object found" << endl;
16 // Create the TRD digitzer
17 AliTRDdigitizer *digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
18 digitizer->InitDetector();
20 // Set the parameter (for TRF ~200ns)
21 digitizer->SetGasGain(1600.);
22 digitizer->SetChipGain(8.0);
23 digitizer->SetNoise(1000.);
24 digitizer->SetADCinRange(1000.);
25 digitizer->SetADCoutRange(1023.);
26 digitizer->SetADCthreshold(0);
27 digitizer->SetVerbose(1);
30 if (!(digitizer->MakeDigits())) {
35 // Write the digits into the input file
36 if (!(digitizer->MakeBranch())) {
41 // Write the digits into the input file
42 if (!(digitizer->WriteDigits())) {
47 // Save the digitizer class in the AliROOT file
48 if (!(digitizer->Write())) {