X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TRD%2FAliTRDcreateDigits.C;h=945f835b271ba22dc7f6bc81c01a694a2932b03a;hp=39cc66944d418021e2fbdb859739af71d4d3fb9f;hb=50ecb1bdf611de1609e9734d44e398b44540ab8c;hpb=6244debe5b3eb4499eff1265a6ff5f1356db5e7e diff --git a/TRD/AliTRDcreateDigits.C b/TRD/AliTRDcreateDigits.C index 39cc66944d4..945f835b271 100644 --- a/TRD/AliTRDcreateDigits.C +++ b/TRD/AliTRDcreateDigits.C @@ -14,26 +14,38 @@ Int_t AliTRDcreateDigits() gAlice->GetEvent(0); // Create the TRD digitzer - AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class"); - - // Set the parameter - Digitizer->SetDiffusion(); - Digitizer->SetVerbose(1); + AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer","Digitizer class"); + digitizer->InitDetector(); + + // Set the parameter (for TRF ~200ns) + digitizer->SetGasGain(1600.); + digitizer->SetChipGain(8.0); + digitizer->SetNoise(1000.); + digitizer->SetADCinRange(1000.); + digitizer->SetADCoutRange(1023.); + digitizer->SetADCthreshold(0); + digitizer->SetVerbose(1); // Create the digits - if (!(Digitizer->MakeDigits())) { + if (!(digitizer->MakeDigits())) { rc = 2; return rc; } // Write the digits into the input file - if (!(Digitizer->WriteDigits())) { + if (!(digitizer->MakeBranch())) { rc = 3; return rc; } + // Write the digits into the input file + if (!(digitizer->WriteDigits())) { + rc = 4; + return rc; + } + // Save the digitizer class in the AliROOT file - if (!(Digitizer->Write())) { + if (!(digitizer->Write())) { rc = 4; return rc; }