]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Test macro for online-calibration with class AliEMCALCalibHistoProducer
authorgustavo <gustavo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Dec 2006 17:48:13 +0000 (17:48 +0000)
committergustavo <gustavo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Dec 2006 17:48:13 +0000 (17:48 +0000)
EMCAL/macros/Shuttle/AliEMCALCalibHistoProducer.C [new file with mode: 0644]

diff --git a/EMCAL/macros/Shuttle/AliEMCALCalibHistoProducer.C b/EMCAL/macros/Shuttle/AliEMCALCalibHistoProducer.C
new file mode 100644 (file)
index 0000000..0ccbc55
--- /dev/null
@@ -0,0 +1,20 @@
+void AliEMCALCalibHistoProducer(const char* file="EMCAL.raw.root") 
+{
+  // Script is to be run at DAQ computers (LDC, GDC or HLT);
+  // it fills the histograms with amplitudes per channel.
+  // These histograms will be processed in the Shuttle preprocessor
+  // e.g., to extract mean amplitudes needed for relative channel calibration
+  //
+  // This example assumes that the input data is supplied from the
+  // raw data file in the ROOT format.
+  //
+  //  Gustavo Conesa Balbastre, December 2006 
+  // Load EMCAL shuttle library as it is not linked to aliroot
+  gSystem->Load("libEMCALshuttle");
+
+  AliRawReaderRoot* rf = new AliRawReaderRoot(file);
+  AliEMCALCalibHistoProducer hp(rf);
+//   hp.SetSMInstalled(10,kFALSE); //Supermodule not installed
+//   hp.SetSMInstalled(11,kFALSE);
+  hp.Run();
+}