CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Info, false > LogInfo
bool equalPayloads(edm::ESHandle< EcalADCToGeVConstant > const &payloadHandle, edm::ESHandle< EcalADCToGeVConstant > const &payloadRefHandle) override