X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=VZERO%2FDBStorageCalib.C;h=611f6ea7ba3b042a2472279be1c3b87411d7a064;hb=f8fcf0f960445e2c7919939d0ee6189fb0bdd1d2;hp=eb7a348eb5ea56f74949ce3b19498be0c6af3184;hpb=6c59edc683d748e456c6ef4f8d92c1fec8080196;p=u%2Fmrichter%2FAliRoot.git diff --git a/VZERO/DBStorageCalib.C b/VZERO/DBStorageCalib.C index eb7a348eb5e..611f6ea7ba3 100644 --- a/VZERO/DBStorageCalib.C +++ b/VZERO/DBStorageCalib.C @@ -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();