Skip to content

Commit

Permalink
set the default infinity value for run ranges, remove SM type depende…
Browse files Browse the repository at this point in the history
…ncy, consider all SM with same size
  • Loading branch information
gconesab committed May 9, 2014
1 parent eb285cc commit d0133d4
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions EMCAL/macros/CalibrationDB/AliEMCALSetCDB.C
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ void SetCC(Int_t flag=0)
{
DBFolder ="local://InitCalibDB";
firstRun = 0;
lastRun = 999999999;
lastRun = AliCDBRunRange::Infinity();
objFormat = "EMCAL initial gain factors and pedestals";
}
else if (flag == 1)
{
DBFolder ="local://DeCalibDB";
firstRun = 0;
lastRun = 12;
lastRun = AliCDBRunRange::Infinity();
objFormat = "EMCAL random pedestals and ADC gain factors (12x48x24)";
}
else if (flag == 2)
{
DBFolder ="local://DeCalibDB"; // create directory DeCalibDB in current directory
firstRun = 0;
lastRun = 12; // Why 12 ?
lastRun = AliCDBRunRange::Infinity();
objFormat = "EMCAL random pedestals and gausian ADC gain factors (12x48x24)";
}

Expand All @@ -109,11 +109,8 @@ void SetCC(Int_t flag=0)
{
Int_t nCol = AliEMCALGeoParams::fgkEMCALCols;
Int_t nRow = AliEMCALGeoParams::fgkEMCALRows;
if(supermodule /2 == 5)
nRow = nRow/2;
if(supermodule > 11)//not good solution
nCol = nCol*2/3;

// Set all the channels even the known to not exist in 1/3 sm and DCAL
for(Int_t column=0; column< nCol; column++)
{
for(Int_t row=0; row< nRow; row++)
Expand Down Expand Up @@ -247,10 +244,10 @@ void GetCC(Int_t flag=0)
Int_t nCol = AliEMCALGeoParams::fgkEMCALCols;
Int_t nRow = AliEMCALGeoParams::fgkEMCALRows;

if(supermodule /2 == 5)
nRow = nRow/2;
if(supermodule > 11)
nCol = nCol*2/3;
// if(supermodule /2 == 5)
// nRow = nRow/2;
// if(supermodule > 11)
// nCol = nCol*2/3;

TString namePed="hPed";
namePed+=supermodule;
Expand Down

0 comments on commit d0133d4

Please sign in to comment.