]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcreateDigits.C
Increment the version number
[u/mrichter/AliRoot.git] / TRD / AliTRDcreateDigits.C
index 39cc66944d418021e2fbdb859739af71d4d3fb9f..44ab800ca9691371909df17029b5a4dc3c1d86f5 100644 (file)
@@ -14,26 +14,34 @@ Int_t AliTRDcreateDigits()
   gAlice->GetEvent(0);
 
   // Create the TRD digitzer 
-  AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
+  AliTRDdigitizer *digitizer = new AliTRDdigitizer("TRDdigitizer","Digitizer class");
+  digitizer->InitDetector();
 
   // Set the parameter
-  Digitizer->SetDiffusion();
-  Digitizer->SetVerbose(1);
+  digitizer->SetTailCancelation(0);
+  digitizer->SetADCthreshold(0);
+  digitizer->SetDebug(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;
   }