Macro to create reco param database entry
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Aug 2008 07:45:25 +0000 (07:45 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Aug 2008 07:45:25 +0000 (07:45 +0000)
TRD/Cal/AliTRDmakeRecoParam.C [new file with mode: 0644]

diff --git a/TRD/Cal/AliTRDmakeRecoParam.C b/TRD/Cal/AliTRDmakeRecoParam.C
new file mode 100644 (file)
index 0000000..97f1c65
--- /dev/null
@@ -0,0 +1,39 @@
+//____________________________________________________\r
+void AliTRDmakeRecoParam()\r
+{\r
+  AliCDBMetaData *metaData= new AliCDBMetaData(); \r
+  metaData->SetObjectClassName("TObjArray");\r
+  metaData->SetResponsible("Alexandru Bercuci");\r
+  metaData->SetBeamPeriod(1);\r
+  metaData->SetAliRootVersion("05-21-01"); //root version\r
+  metaData->SetComment("Ideal reconstruction parameters for low, high and cosmic runs");\r
+  \r
+  AliCDBId id("TRD/Calib/RecoParam", 0, AliCDBRunRange::Infinity()); \r
+  AliCDBManager *man = AliCDBManager::Instance();\r
+  AliCDBStorage *gStorLoc = man->GetStorage("local://$ALICE_ROOT");\r
+  if (!gStorLoc) {\r
+    return;\r
+  }\r
+  gStorLoc->Put(CreateRecoParamObject(), id, metaData); \r
+\r
+  return;\r
+}\r
+\r
+\r
+//____________________________________________________\r
+TObjArray* CreateRecoParamObject()\r
+{\r
+  TObjArray *recos = new TObjArray(3);\r
+\r
+  AliTRDrecoParam *rec = 0x0;\r
+  recos->AddLast(rec = AliTRDrecoParam::GetLowFluxParam());\r
+  rec->SetAsDefault();\r
+  // further settings for low flux reco param\r
+  // reco->SetThisAndThat()\r
+\r
+  recos->AddLast(rec = AliTRDrecoParam::GetHighFluxParam());\r
+\r
+  recos->AddLast(rec = AliTRDrecoParam::GetCosmicTestParam());\r
+\r
+  return recos;\r
+}\r