added macro to access noise reference data
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2010 12:50:16 +0000 (12:50 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2010 12:50:16 +0000 (12:50 +0000)
TOF/ReadCalibNoiseReference.C [new file with mode: 0644]

diff --git a/TOF/ReadCalibNoiseReference.C b/TOF/ReadCalibNoiseReference.C
new file mode 100644 (file)
index 0000000..37ee2bf
--- /dev/null
@@ -0,0 +1,13 @@
+TH1F *
+ReadCalibNoiseReference(Int_t run, Int_t year = 2010)
+{
+
+  AliCDBManager *cdb = AliCDBManager::Instance();
+  cdb->SetDefaultStorage(Form("alien://folder=/alice/data/%d/Reference", year));
+  cdb->SetRun(run);
+  AliCDBEntry *cdbe = cdb->Get("TOF/Calib/CalibNoise");
+  TH1F *h = (TH1F *)cdbe->GetObject();
+  h->DrawCopy();
+  return h;
+
+}