Definition at line 30 of file TkVoltageMapCreator.cc.
Definition at line 63 of file TkVoltageMapCreator.cc.
T getParameter(std::string const &) const
const std::string _hvfile
const std::string _lvtkmapname
const std::string _hvtkmapname
const std::string _lvfile
TkVoltageMapCreator::~TkVoltageMapCreator |
( |
| ) |
|
void TkVoltageMapCreator::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 96 of file TkVoltageMapCreator.cc.
References _hvfile, _hvtkmapname, _lvfile, _lvtkmapname, cond::rpcobgas::detid, TkHistoMap::dumpInTkMap(), TkHistoMap::fill(), TrackerMap::save(), TkHistoMap::save(), and TrackerMap::setPalette().
100 TkHistoMap lvhisto(
"LV_Status",
"LV_Status",-1);
101 TkHistoMap hvhisto(
"HV_Status",
"HV_Status",-1);
103 ifstream lvdata(
_lvfile.c_str());
104 ifstream hvdata(
_hvfile.c_str());
109 std::string lvstatus;
111 while(lvdata >> detid >> lvstatus) {
113 if(lvstatus==
"ON") cha = 0.5;
114 if(lvstatus==
"OFF") cha = 1.;
115 lvhisto.fill(detid,cha);
118 std::string hvstatus;
120 while(hvdata >> detid >> hvstatus) {
122 if(hvstatus==
"ON") cha = 0.5;
123 if(hvstatus==
"OFF") cha = 1.;
124 hvhisto.fill(detid,cha);
130 lvhisto.dumpInTkMap(&lvmap);
131 hvhisto.dumpInTkMap(&hvmap);
137 std::string rootmapname =
"VoltageStatus.root";
138 lvhisto.save(rootmapname);
139 hvhisto.save(rootmapname);
const std::string _hvfile
const std::string _lvtkmapname
const std::string _hvtkmapname
void setPalette(int numpalette)
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
const std::string _lvfile
void TkVoltageMapCreator::endJob |
( |
void |
| ) |
|
|
privatevirtual |
const std::string TkVoltageMapCreator::_hvfile |
|
private |
const std::string TkVoltageMapCreator::_hvtkmapname |
|
private |
const std::string TkVoltageMapCreator::_lvfile |
|
private |
const std::string TkVoltageMapCreator::_lvtkmapname |
|
private |