]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
simple macro to print objects stored in alignment ocdb
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Jan 2011 10:58:12 +0000 (10:58 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Jan 2011 10:58:12 +0000 (10:58 +0000)
EMCAL/macros/AlignmentDB/PrintOCDBObject.C [new file with mode: 0644]

diff --git a/EMCAL/macros/AlignmentDB/PrintOCDBObject.C b/EMCAL/macros/AlignmentDB/PrintOCDBObject.C
new file mode 100644 (file)
index 0000000..655b0ca
--- /dev/null
@@ -0,0 +1,7 @@
+{
+
+  TFile *f = TFile::Open("$ALICE_ROOT/OCDB/EMCAL/Align/Data/Run0_999999999_v0_s0.root");
+  AliCDBEntry *entry = (AliCDBEntry*)f->Get("AliCDBEntry");
+  TClonesArray *aligndata = dynamic_cast<TClonesArray*>  (entry->GetObject());
+  aligndata->Print("");
+}