]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Updated documentation (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jan 2009 19:49:10 +0000 (19:49 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jan 2009 19:49:10 +0000 (19:49 +0000)
TPC/macros/ConfigOCDB.C

index 829885f3fbb10bab2f5ce7f6b86991a1b2ff3530..88ee625b269bb17420c3b93bf302a7e91302ac60 100644 (file)
@@ -1,13 +1,13 @@
 //
-// Macro to be invoked before analysis 
+// Macro to be invoked before Calibration analysis 
 // Setup TPC OCDB entries
-//
-// To be used on the proof
-//
+// 
+// This is just example macro  - some path are hardwired
+//  TO BE MODIFIED BY USERS 
 
 
 
-void ConfigOCDB(){
+void ConfigOCDB(Float_t bfield){
   // 
   //
   // import geometry
@@ -28,18 +28,22 @@ void ConfigOCDB(){
   AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
   AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Parameters","local://$ALICE_ROOT");
   AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/ClusterParam","local://$ALICE_ROOT");
+  //  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/PadTime0","local://$ALICE_ROOT");
+  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/PadTime0","local:///u/miranov/OCDB0");
+
   AliCDBManager::Instance()->SetSpecificStorage("GRP/GRP/Data","local:///lustre_alpha/alice/alien/alice/data/2008/LHC08d/OCDB/");
   AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Temperature","local:///lustre_alpha/alice/alien/alice/data/2008/LHC08d/OCDB/");
   AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Goofie","local:///lustre_alpha/alice/alien/alice/data/2008/LHC08d/OCDB/");
 
+
   AliCDBManager::Instance()->SetRun(1);
 
   AliTPCClusterParam * paramCl = AliTPCcalibDB::Instance()->GetClusterParam(); 
   AliTPCParam   * paramTPC = AliTPCcalibDB::Instance()->GetParameters();
-  AliTPCClusterParam::SetInstance(paramCl);
+  paramCl->SetInstance(paramCl);
   //paramTPC->Dump();
-  
-  AliTPCcalibDB::Instance()->SetExBField(0);
+  printf("\n\nSET EXB FIELD\t%f\n\n", bfield);
+  AliTPCcalibDB::Instance()->SetExBField(bfield);
   //
   //
   //