32 std::vector<EcalTBTDCRecInfoAlgo::EcalTBTDCRanges>
tdcRanges;
34 typedef std::vector< edm::ParameterSet >
Parameters;
36 for(Parameters::iterator itRanges = ranges.begin(); itRanges != ranges.end(); ++itRanges)
39 aRange.
runRanges.first = itRanges->getParameter<
int>(
"startRun");
40 aRange.
runRanges.second = itRanges->getParameter<
int>(
"endRun");
41 aRange.
tdcMin = itRanges->getParameter< std::vector<double> >(
"tdcMin");
42 aRange.
tdcMax = itRanges->getParameter< std::vector<double> >(
"tdcMax");
43 tdcRanges.push_back(aRange);
67 ecalTDCRawInfo = ecalRawTDC.
product();
70 if (! ecalTDCRawInfo )
76 if ( (*ecalTDCRawInfo).size() < 1 )
87 ecalEventHeader = tbEventHeader.
product();
90 if (! ecalEventHeader )
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string eventHeaderProducer_
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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
std::vector< AlignmentParameters * > Parameters