#include <EcalTBTDCRecInfoProducer.h>
Definition at line 15 of file EcalTBTDCRecInfoProducer.h.
◆ EcalTBTDCRecInfoProducer()
Definition at line 11 of file EcalTBTDCRecInfoProducer.cc.
References algo_, eventHeaderCollection_, eventHeaderProducer_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), diffTwoXMLs::ranges, rawInfoCollection_, rawInfoProducer_, recInfoCollection_, EcalTBTDCRecInfoAlgo::EcalTBTDCRanges::runRanges, AlCaHLTBitMon_QueryRunRegistry::string, EcalTBTDCRecInfoAlgo::EcalTBTDCRanges::tdcMax, EcalTBTDCRecInfoAlgo::EcalTBTDCRanges::tdcMin, Ecal2004TBTDCRanges_v1_cff::tdcRanges, and use2004OffsetConvention_.
29 std::vector<EcalTBTDCRecInfoAlgo::EcalTBTDCRanges>
tdcRanges;
31 typedef std::vector<edm::ParameterSet>
Parameters;
33 for (Parameters::iterator itRanges =
ranges.begin(); itRanges !=
ranges.end(); ++itRanges) {
35 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
36 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
37 aRange.
tdcMin = itRanges->getParameter<std::vector<double> >(
"tdcMin");
38 aRange.
tdcMax = itRanges->getParameter<std::vector<double> >(
"tdcMax");
std::string eventHeaderProducer_
T getParameter(std::string const &) const
std::string rawInfoCollection_
std::vector< double > tdcMax
T getUntrackedParameter(std::string const &, T const &) const
std::string eventHeaderCollection_
std::vector< double > tdcMin
vector< ParameterSet > Parameters
EcalTBTDCRecInfoAlgo * algo_
std::string recInfoCollection_
bool use2004OffsetConvention_
std::pair< int, int > runRanges
std::string rawInfoProducer_
◆ ~EcalTBTDCRecInfoProducer()
EcalTBTDCRecInfoProducer::~EcalTBTDCRecInfoProducer |
( |
| ) |
|
|
override |
◆ produce()
Definition at line 54 of file EcalTBTDCRecInfoProducer.cc.
References algo_, MillePedeFileConverter_cfg::e, eventHeaderCollection_, eventHeaderProducer_, edm::HandleBase::isValid(), edm::Handle< T >::product(), rawInfoCollection_, rawInfoProducer_, recInfoCollection_, EcalTBTDCRecInfoAlgo::reconstruct(), and use2004OffsetConvention_.
62 ecalTDCRawInfo = ecalRawTDC.
product();
65 if (!ecalTDCRawInfo) {
70 if ((*ecalTDCRawInfo).size() < 1) {
81 ecalEventHeader = tbEventHeader.
product();
84 if (!ecalEventHeader) {
std::string eventHeaderProducer_
T const * product() const
std::string rawInfoCollection_
Log< level::Error, false > LogError
std::string eventHeaderCollection_
EcalTBTDCRecInfoAlgo * algo_
std::string recInfoCollection_
bool use2004OffsetConvention_
std::string rawInfoProducer_
EcalTBTDCRecInfo reconstruct(const EcalTBTDCRawInfo &TDCRawInfo, const EcalTBEventHeader &eventHeader, bool use2004OffsetConvention) const
◆ algo_
◆ eventHeaderCollection_
std::string EcalTBTDCRecInfoProducer::eventHeaderCollection_ |
|
private |
◆ eventHeaderProducer_
std::string EcalTBTDCRecInfoProducer::eventHeaderProducer_ |
|
private |
◆ rawInfoCollection_
std::string EcalTBTDCRecInfoProducer::rawInfoCollection_ |
|
private |
◆ rawInfoProducer_
std::string EcalTBTDCRecInfoProducer::rawInfoProducer_ |
|
private |
◆ recInfoCollection_
std::string EcalTBTDCRecInfoProducer::recInfoCollection_ |
|
private |
◆ use2004OffsetConvention_
bool EcalTBTDCRecInfoProducer::use2004OffsetConvention_ |
|
private |