Add PPR macros
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Nov 2000 09:04:10 +0000 (09:04 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Nov 2000 09:04:10 +0000 (09:04 +0000)
TRD/AliTRDconfigPPR.C [new file with mode: 0644]
TRD/AliTRDcreateDigitsPPR.C [new file with mode: 0644]

diff --git a/TRD/AliTRDconfigPPR.C b/TRD/AliTRDconfigPPR.C
new file mode 100644 (file)
index 0000000..bb6f54c
--- /dev/null
@@ -0,0 +1,13 @@
+if (iTRD) {
+
+  //=================== TRD parameters ============================
+
+  AliTRD *TRD  = new AliTRDv1("TRD","TRD slow simulator");
+
+  // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
+  TRD->SetGasMix(1);
+
+  // Switch on TR
+  AliTRDsim *TRDsim = TRD->CreateTR();
+
+}
diff --git a/TRD/AliTRDcreateDigitsPPR.C b/TRD/AliTRDcreateDigitsPPR.C
new file mode 100644 (file)
index 0000000..73bcf96
--- /dev/null
@@ -0,0 +1,44 @@
+void AliTRDcreateDigitsPPR() {
+
+/////////////////////////////////////////////////////////////////////////
+//
+// Creates the digits from the hit information. 
+//
+/////////////////////////////////////////////////////////////////////////
+
+  // Dynamically link some shared libs
+  if (gClassTable->GetID("AliRun") < 0) {
+    gROOT->LoadMacro("loadlibs.C");
+    loadlibs();
+    cout << "Loaded shared libraries" << endl;
+  }
+
+  // Input (and output) file name
+  Char_t *alifile = "galice.root"; 
+
+  // Create the TRD digitzer 
+  AliTRDdigitizer *Digitizer = new AliTRDdigitizer("digitizer","Digitizer class");
+
+  // Set the parameter
+  Digitizer->SetDiffusion();
+  Digitizer->SetVerbose(1);
+  //Digitizer->SetExB();
+
+  // Take out ADC conversion for raw data digits
+  Digitzer->SetADCinRange(1000000);
+  Digitzer->SetADCoutRange(1000000);
+  Digitzer->SetADCthreshold(0);
+
+  // Open the AliRoot file
+  Digitizer->Open(alifile);
+
+  // Create the digits
+  Digitizer->MakeDigits();
+
+  // Write the digits into the input file
+  Digitizer->WriteDigits();
+
+  // Save the digitizer class in the AliROOT file
+  Digitizer->Write();
+
+}