|
| modGains (const edm::ParameterSet &) |
|
| ~modGains () |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &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 21 of file modGains.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 62 of file modGains.cc.
References HcalCondObjectContainer< Item >::addValues(), ecal_dqm_sourceclient-live_cfg::cerr, HcalDbASCIIIO::dumpObject(), HcalCondObjectContainer< Item >::exists(), fileCorr, fileIn, fileOut, edm::EventSetup::get(), HcalDbASCIIIO::getObject(), HcalRespCorr::getValue(), HcalCondObjectContainer< Item >::getValues(), i, s_operation, val, and vectorop.
70 std::ifstream inStream (
fileIn.c_str());
77 std::ifstream inCorr (
fileCorr.c_str());
83 std::vector<DetId> channels = gainsIn.getAllChannels ();
84 std::cerr <<
"size = " << channels.size() << std::endl;
85 for (
unsigned i = 0;
i < channels.size();
i++) {
91 if (corrsIn.exists(
id)) {
92 val = corrsIn.getValues(
id)->getValue();
95 std::cerr <<
"Vector operation, " <<
i <<
"th channel: using val=" <<
val << std::endl;
100 p_item =
new HcalGain(
id, gainsIn.getValues(
id)->getValue(0) +
val, gainsIn.getValues(
id)->getValue(1) +
val,
101 gainsIn.getValues(
id)->getValue(2) +
val, gainsIn.getValues(
id)->getValue(3) +
val);
104 p_item =
new HcalGain(
id, gainsIn.getValues(
id)->getValue(0) -
val, gainsIn.getValues(
id)->getValue(1) -
val,
105 gainsIn.getValues(
id)->getValue(2) -
val, gainsIn.getValues(
id)->getValue(3) -
val);
108 p_item =
new HcalGain(
id, gainsIn.getValues(
id)->getValue(0) *
val, gainsIn.getValues(
id)->getValue(1) *
val,
109 gainsIn.getValues(
id)->getValue(2) *
val, gainsIn.getValues(
id)->getValue(3) *
val);
112 p_item =
new HcalGain(
id, gainsIn.getValues(
id)->getValue(0) /
val, gainsIn.getValues(
id)->getValue(1) /
val,
113 gainsIn.getValues(
id)->getValue(2) /
val, gainsIn.getValues(
id)->getValue(3) /
val);
117 if (p_item) gainsOut.addValues(*p_item);
121 std::ofstream outStream (
fileOut.c_str());
bool getObject(std::istream &fInput, HcalPedestals *fObject)
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)