CMS 3D CMS Logo

EcalADCToGeVConstantBTransitionAnalyzer.cc
Go to the documentation of this file.
4 #include <sstream>
5 
7  : public cond::BTransitionAnalyzer<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> {
8 public:
12  edm::ESHandle<EcalADCToGeVConstant> const& payloadRefHandle) override {
13  bool areEquals = false;
14  std::ostringstream os;
15  os << "["
16  << "EcalADCToGeVConstantBTransitionAnalyzer::" << __func__ << "]: "
17  << "Payload extracted starting from magnetic field value: ";
18  payloadHandle->print(os);
19  os << "\nReference payload from the target tag: ";
20  payloadRefHandle->print(os);
21  edm::LogInfo("EcalADCToGeVConstantBTransitionAnalyzer") << os.str();
22  if (payloadHandle->getEBValue() == payloadRefHandle->getEBValue() &&
23  payloadHandle->getEEValue() == payloadRefHandle->getEEValue())
24  areEquals = true;
25  return areEquals;
26  }
27 };
28 
EcalADCToGeVConstantBTransitionAnalyzer::equalPayloads
bool equalPayloads(edm::ESHandle< EcalADCToGeVConstant > const &payloadHandle, edm::ESHandle< EcalADCToGeVConstant > const &payloadRefHandle) override
Definition: EcalADCToGeVConstantBTransitionAnalyzer.cc:11
EcalADCToGeVConstantBTransitionAnalyzer::EcalADCToGeVConstantBTransitionAnalyzer
EcalADCToGeVConstantBTransitionAnalyzer(edm::ParameterSet const &pset)
Definition: EcalADCToGeVConstantBTransitionAnalyzer.cc:9
edm::LogInfo
Definition: MessageLogger.h:254
EcalADCToGeVConstant
Definition: EcalADCToGeVConstant.h:13
cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >::BTransitionAnalyzer
BTransitionAnalyzer(const edm::ParameterSet &pset)
Definition: BTransitionAnalyzer.h:19
BTransitionAnalyzer.h
MakerMacros.h
cond::BTransitionAnalyzer
Definition: BTransitionAnalyzer.h:17
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
EcalADCToGeVConstantBTransitionAnalyzer
Definition: EcalADCToGeVConstantBTransitionAnalyzer.cc:6
edm::ESHandle< EcalADCToGeVConstant >
EcalADCToGeVConstant::print
void print(std::ostream &s) const
Definition: EcalADCToGeVConstant.h:22
EcalADCToGeVConstant.h
cond
Definition: plugin.cc:23
edm::ParameterSet
Definition: ParameterSet.h:36
EcalADCToGeVConstant::getEEValue
float getEEValue() const
Definition: EcalADCToGeVConstant.h:21
EcalADCToGeVConstantRcd.h
EcalADCToGeVConstant::getEBValue
float getEBValue() const
Definition: EcalADCToGeVConstant.h:20
EcalADCToGeVConstantRcd
Definition: EcalADCToGeVConstantRcd.h:5
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27