|
| modGains (const edm::ParameterSet &) |
|
| ~modGains () override |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () override |
|
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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 22 of file modGains.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 59 of file modGains.cc.
References HcalCondObjectContainer< Item >::addValues(), beam_dqm_sourceclient-live_cfg::cerr, ewkTauDQM_cfi::channels, 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().
66 std::ifstream inStream(
fileIn.c_str());
75 std::ifstream inCorr(
fileCorr.c_str());
82 std::vector<DetId>
channels = gainsIn.getAllChannels();
83 std::cerr <<
"size = " << channels.size() << std::endl;
84 for (
unsigned i = 0;
i < channels.size();
i++) {
92 if (corrsIn.exists(
id)) {
93 val = corrsIn.getValues(
id)->getValue();
96 std::cerr <<
"Vector operation, " <<
i <<
"th channel: using val=" <<
val << std::endl;
99 std::unique_ptr<HcalGain> p_item;
101 p_item = std::make_unique<HcalGain>(
id,
102 gainsIn.getValues(
id)->getValue(0) +
val,
103 gainsIn.getValues(
id)->getValue(1) +
val,
104 gainsIn.getValues(
id)->getValue(2) +
val,
105 gainsIn.getValues(
id)->getValue(3) +
val);
108 p_item = std::make_unique<HcalGain>(
id,
109 gainsIn.getValues(
id)->getValue(0) -
val,
110 gainsIn.getValues(
id)->getValue(1) -
val,
111 gainsIn.getValues(
id)->getValue(2) -
val,
112 gainsIn.getValues(
id)->getValue(3) -
val);
115 p_item = std::make_unique<HcalGain>(
id,
116 gainsIn.getValues(
id)->getValue(0) *
val,
117 gainsIn.getValues(
id)->getValue(1) *
val,
118 gainsIn.getValues(
id)->getValue(2) *
val,
119 gainsIn.getValues(
id)->getValue(3) *
val);
122 p_item = std::make_unique<HcalGain>(
id,
123 gainsIn.getValues(
id)->getValue(0) /
val,
124 gainsIn.getValues(
id)->getValue(1) /
val,
125 gainsIn.getValues(
id)->getValue(2) /
val,
126 gainsIn.getValues(
id)->getValue(3) /
val);
130 gainsOut.addValues(*p_item);
134 std::ofstream outStream(
fileOut.c_str());
bool getObject(std::istream &fInput, HcalPedestals *fObject)
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)