CondTools
Ecal
plugins
EcalADCToGeVConstantBTransitionAnalyzer.cc
Go to the documentation of this file.
1
#include "
CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h
"
2
#include "
CondFormats/DataRecord/interface/EcalADCToGeVConstantRcd.h
"
3
#include "
CondTools/RunInfo/interface/BTransitionAnalyzer.h
"
4
#include <sstream>
5
6
class
EcalADCToGeVConstantBTransitionAnalyzer
7
:
public
cond::BTransitionAnalyzer
<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> {
8
public
:
9
EcalADCToGeVConstantBTransitionAnalyzer
(
edm::ParameterSet
const
&
pset
)
10
:
cond
::
BTransitionAnalyzer
<
EcalADCToGeVConstant
,
EcalADCToGeVConstantRcd
>(
pset
) {}
11
bool
equalPayloads
(
edm::ESHandle<EcalADCToGeVConstant>
const
& payloadHandle,
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
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
DEFINE_FWK_MODULE
(
EcalADCToGeVConstantBTransitionAnalyzer
);
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
Generated for CMSSW Reference Manual by
1.8.16