|
| TkVoltageMapCreator (const edm::ParameterSet &) |
|
| ~TkVoltageMapCreator () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
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 |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 96 of file TkVoltageMapCreator.cc.
References _hvfile, _hvtkmapname, _lvfile, _lvtkmapname, cond::rpcobgas::detid, TkHistoMap::dumpInTkMap(), TkHistoMap::fill(), TkHistoMap::save(), TrackerMap::save(), TrackerMap::setPalette(), and AlCaHLTBitMon_QueryRunRegistry::string.
100 TkHistoMap lvhisto(
"LV_Status",
"LV_Status",-1);
101 TkHistoMap hvhisto(
"HV_Status",
"HV_Status",-1);
103 std::ifstream lvdata(
_lvfile.c_str());
104 std::ifstream hvdata(
_hvfile.c_str());
111 while(lvdata >> detid >> lvstatus) {
113 if(lvstatus==
"ON") cha = 0.5;
114 if(lvstatus==
"OFF") cha = 1.;
115 lvhisto.fill(detid,cha);
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);
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 |
| ) |
|
|
overrideprivatevirtual |
const std::string TkVoltageMapCreator::_hvfile |
|
private |
const std::string TkVoltageMapCreator::_hvtkmapname |
|
private |
const std::string TkVoltageMapCreator::_lvfile |
|
private |
const std::string TkVoltageMapCreator::_lvtkmapname |
|
private |