added macro to read online readout information
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Oct 2011 13:12:17 +0000 (13:12 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Oct 2011 13:12:17 +0000 (13:12 +0000)
TOF/ReadReadoutInfoReference.C [new file with mode: 0644]

diff --git a/TOF/ReadReadoutInfoReference.C b/TOF/ReadReadoutInfoReference.C
new file mode 100644 (file)
index 0000000..98a459b
--- /dev/null
@@ -0,0 +1,12 @@
+AliTOFReadoutInfo *
+ReadReadoutInfoReference(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/ReadoutInfo");
+  AliTOFReadoutInfo *ri = (AliTOFReadoutInfo *)cdbe->GetObject();
+  
+  return ri;
+}