message: offline-online conversion
diff: @@ -55,7 +55,6 @@ public:
  ClassDef(TCalSM, 1); // CalSM class
  };
  -
  class TCalInfo : public TObject {
  public:
  TCalInfo() : fRunNo(0), fAvTime(0), fFirstTime(0), fLastTime(0), fMinT(0), fMaxT(0), fFracS(0), fSMs("TCalSM"), fCells("TCalCell") {}
  @@ -71,18 +70,14 @@ class TCalInfo : public TObject {
  TClonesArray fCells; // array with cells
  ClassDef(TCalInfo, 2); // CalInfo class
  };
  -
  -
  #endif
  -void createTree(
  - const char *period,
  +void createTree(const char *period,
  const char *ofile = "treeout.root",
  Bool_t doprint = 0,
  Bool_t appBC = kFALSE, // boolean to switch on bad channel
  - TString badpath = "$ALICE_ROOT/OADB/EMCAL" // location of bad channel map
  - ){
  -
  + TString badpath = "$ALICE_ROOT/OADB/EMCAL") // location of bad channel map
  +{
  TDraw td(period);
  td.Compute();
  LDraw ld(period);
  @@ -235,22 +230,25 @@ void createTree(
  for (Int_t col=0; col<ncol; ++col) {
  for (Int_t row=0; row<nrow; ++row) {
  Int_t id = g->GetAbsCellIdFromCellIndexes(sm,row,col);
  - Int_t ns = TInfo::SensId(sm,row,col);
  TCalCell *cell = (TCalCell*)carr.At(id);
  cell->fId = id;
  -
  Int_t badcell = 0;
  if (appBC && badmaps[sm])
  badcell = badmaps[sm]->GetBinContent(col,row);
  -
  cell->fSM = sm;
  cell->fRow = row;
  cell->fCol = col;
  cell->fBad = badcell;
  - cell->fLedM = hledm->GetBinContent(hledm->FindBin(col,row));
  - cell->fLedR = hledm->GetBinError(hledm->FindBin(col,row));
  - cell->fMonM = hmonm->GetBinContent(hmonm->FindBin(col/2));
  - cell->fMonR = hmonm->GetBinError(hmonm->FindBin(col/2));
  +
  + Int_t orow=row;
  + Int_t ocol=col;
  + // shift to online col(phi)/row(eta0
  + g->ShiftOfflineToOnlineCellIndexes(sm, ocol, orow);
  + Int_t ns = TInfo::SensId(sm,orow,ocol);
  + cell->fLedM = hledm->GetBinContent(hledm->FindBin(ocol,orow));
  + cell->fLedR = hledm->GetBinError(hledm->FindBin(ocol,orow));
  + cell->fMonM = hmonm->GetBinContent(hmonm->FindBin(ocol/2));
  + cell->fMonR = hmonm->GetBinError(hmonm->FindBin(ocol/2));
  cell->fLocT = tinfo->T(ns,3);
  cell->fSMT = avg[sm];
  }
  