|
| 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 |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 21 of file modGains.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 62 of file modGains.cc.
References HcalCondObjectContainer< Item >::addValues(), MessageLogger_cfi::cerr, DEFINE_FWK_MODULE, HcalDbASCIIIO::dumpObject(), HcalCondObjectContainer< Item >::exists(), fileCorr, fileIn, fileOut, edm::EventSetup::get(), HcalDbASCIIIO::getObject(), HcalRespCorr::getValue(), HcalCondObjectContainer< Item >::getValues(), mps_fire::i, s_operation, val, and vectorop.
Referenced by beginRun().
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)