5#include "FairRootManager.h"
22 fStr(NULL), fChannelMap()
29 : FairTask(name, iVerbose),
33 fStr(NULL), fChannelMap()
41 map<Int_t, Float_t> tmp;
42 TString fname=filename; gSystem->ExpandPathName(fname);
51 f >> ch;
if (f.eof())
break;
52 f >> adc;
if (f.eof())
break;
57 Info(
"LoadChannelMap",
"%d records read", i);
65 FairRootManager* manager=FairRootManager::Instance();
68 Fatal(
"Init()",
"Can't find IOManager.");
75 Fatal(
"Init()",
"Can't find calorimeter structure in the system.");
91 list<ecalCell*> cells;
93 list<ecalCell*>::const_iterator p=cells.begin();
96 for(;p!=cells.end();++p)
106 Error(
"Exec",
"Channel %d not found in map. Using default value!", cell->
GetCellNumber());
Int_t GetCellNumber() const
void SetEnergy(Float_t energy)
std::map< Int_t, Float_t > fChannelMap
void LoadChannelMap(const char *filename)
virtual InitStatus Init()
virtual void Exec(Option_t *option)
void SetChannelMap(std::map< Int_t, Float_t > map)
void InitPython(ecalStructure *structure)
void GetCells(std::list< ecalCell * > &cells) const
ClassImp(ecalContFact) ecalContFact