5#include "FairRootManager.h"
24 fStr(NULL), fChannelMap()
31 : FairTask(name, iVerbose),
36 fStr(NULL), fChannelMap()
44 map<Int_t, Float_t> tmp;
45 TString fname=filename; gSystem->ExpandPathName(fname);
54 f >> ch;
if (f.eof())
break;
55 f >> adc;
if (f.eof())
break;
60 Info(
"LoadChannelMap",
"%d records read", i);
68 FairRootManager* manager=FairRootManager::Instance();
71 Fatal(
"Init()",
"Can't find IOManager.");
78 Fatal(
"Init()",
"Can't find calorimeter structure in the system.");
94 list<ecalCell*> cells;
96 list<ecalCell*>::const_iterator p=cells.begin();
99 for(;p!=cells.end();++p)
107 Error(
"Exec",
"Channel %d not found in map. Using default value!", cell->
GetCellNumber());
Int_t GetCellNumber() const
void SetEnergy(Float_t energy)
Float_t GetEnergy() const
void SetChannelMap(std::map< Int_t, Float_t > map)
virtual void Exec(Option_t *option)
virtual InitStatus Init()
void InitPython(ecalStructure *structure)
std::map< Int_t, Float_t > fChannelMap
void LoadChannelMap(const char *filename)
void GetCells(std::list< ecalCell * > &cells) const
ClassImp(ecalContFact) ecalContFact