31 std::vector<EcalTBTDCRecInfoAlgo::EcalTBTDCRanges>
tdcRanges;
33 typedef std::vector< edm::ParameterSet >
Parameters;
35 for(Parameters::iterator itRanges = ranges.begin(); itRanges != ranges.end(); ++itRanges)
38 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
39 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
40 aRange.
tdcMin = itRanges->getParameter< std::vector<double> >(
"tdcMin");
41 aRange.
tdcMax = itRanges->getParameter< std::vector<double> >(
"tdcMax");
42 tdcRanges.push_back(aRange);
66 ecalTDCRawInfo = ecalRawTDC.
product();
69 if (! ecalTDCRawInfo )
75 if ( (*ecalTDCRawInfo).size() < 1 )
86 ecalEventHeader = tbEventHeader.
product();
89 if (! ecalEventHeader )
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string eventHeaderProducer_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string rawInfoCollection_
EcalTBTDCRecInfo reconstruct(const EcalTBTDCRawInfo &TDCRawInfo, const EcalTBEventHeader &eventHeader, bool use2004OffsetConvention) const
std::vector< double > tdcMax
virtual ~EcalTBTDCRecInfoProducer()
std::string eventHeaderCollection_
std::vector< double > tdcMin
vector< ParameterSet > Parameters
EcalTBTDCRecInfoAlgo * algo_
EcalTBTDCRecInfoProducer(const edm::ParameterSet &ps)
std::string recInfoCollection_
bool use2004OffsetConvention_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string rawInfoProducer_
std::pair< int, int > runRanges
virtual void produce(edm::Event &e, const edm::EventSetup &es)
T const * product() const