CMS 3D CMS Logo

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