]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/beamtest07/SetCalibDB.C
Merge branch 'master' of http://git.cern.ch/pub/AliRoot
[u/mrichter/AliRoot.git] / EMCAL / beamtest07 / SetCalibDB.C
index 1a35d5a2237d1acb8c80f8d91f1c2e5fea389f30..5decb10af99c4dd1402c107754eb72d33715a614 100644 (file)
@@ -21,7 +21,7 @@ void SetCalibDB() {
   Int_t beamPeriod =  1;
   char* objFormat  = "";
 
-  TString DBFolder  ="local://$ALICE_ROOT/EMCAL/beamtest07";
+  TString DBFolder  ="local://$ALICE_ROOT/OCDB/EMCAL/beamtest07";
   firstRun  =  0;
   lastRun   =  999999999;
   objFormat = "EMCAL beam test 2007 gain factors and pedestals";
@@ -39,7 +39,7 @@ void SetCalibDB() {
   Int_t nRow2  = 12; //Modules 11 and 12 are half modules                          
 
   Int_t colOffset = 40;
-  Int_t rowOffset = 16;
+  Int_t rowOffset = 8;
 
   Double_t gain_ratios[8][8] =
     {
@@ -87,7 +87,7 @@ void SetCalibDB() {
       if(supermodule >= 10)
         nRow = nRow2;
       for(Int_t row=0; row< nRow; row++) {
-       if(supermodule < 2 && column > 39 && row > 15) {
+       if(supermodule < 2 && column > 39 && row > 7 && row < 16) {
          cc = 1./gain_ratios[column-colOffset][row-rowOffset]/gains[column-colOffset][row-rowOffset];
          cout << "column = " << column << " column - colOffset = " << column-colOffset << " row = " << " row Offset = " << row-rowOffset << endl;
        }