]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/DBStorageCalib.C
Update timestamps for new AMANDA simulation (17/02/2015)
[u/mrichter/AliRoot.git] / VZERO / DBStorageCalib.C
index eb7a348eb5ea56f74949ce3b19498be0c6af3184..611f6ea7ba3b042a2472279be1c3b87411d7a064 100644 (file)
@@ -4,11 +4,17 @@ void DBStorageCalib(){
 AliCDBManager *man = AliCDBManager::Instance();
 
 AliCDBStorage *storLoc;
-man->SetDefaultStorage("local://$ALICE_ROOT");
+man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
 
 // Setting gain and pedestal values :
 
-AliVZEROCalibData *calibda = new AliVZEROCalibData("Calib");
+AliVZEROCalibData *calibda = new AliVZEROCalibData("VZERO");
+       
+       UShort_t TimeResolution[8] = {0,0,0,0,0,0,0,0};
+       calibda->SetTimeResolution(TimeResolution);
+       
+       UShort_t WidthResolution[8] = {2,2,2,2,2,2,2,2};
+       calibda->SetWidthResolution(WidthResolution);
 
 Float_t Pedestals[128] =  
 { 16.0, 16.0, 16.0, 16.0, 16.0, 16.0, 16.0, 16.0, 16.0, 16.0,
@@ -100,6 +106,17 @@ Float_t WidthHVs[64] =
   
 calibda->SetWidthHV(WidthHVs);
 
+Bool_t DeadChannels[64] =  
+{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+  0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+  0, 0, 0, 0 };
+  
+calibda->SetDeadMap(DeadChannels);
+
 Float_t GainFactors[128] =
 { 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0,
   50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 
@@ -151,7 +168,7 @@ AliCDBId id("VZERO/Calib/Data",0,9999999);
 //set to AliVZEROCalibData by the CDB classes during storage 
 md->SetResponsible("Brigitte Cheynis");
 md->SetBeamPeriod(0);
-md->SetAliRootVersion("August 2008");
+md->SetAliRootVersion("v4-17-Release");
 md->SetComment("Prototype");
 md->PrintMetaData();