28 theAlgo_(ps.getParameter<bool>(
"peakFilter"),
29 ps.getParameter<std::vector<double> >(
"weights"),
30 ps.getParameter<int>(
"latency"),
31 ps.getParameter<uint32_t>(
"FG_threshold"),
32 ps.getParameter<uint32_t>(
"ZS_threshold"),
33 ps.getParameter<int>(
"numberOfSamples"),
34 ps.getParameter<int>(
"numberOfPresamples"),
35 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
36 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")
38 inputLabel_(ps.getParameter<std::vector<edm::InputTag> >(
"inputLabel")),
39 inputTagFEDRaw_(ps.getParameter<edm::InputTag> (
"InputTagFEDRaw")),
40 runZS_(ps.getParameter<bool>(
"RunZS")),
41 runFrontEndFormatError_(ps.getParameter<bool>(
"FrontEndFormatError"))
43 produces<HcalTrigPrimDigiCollection>();
60 float rctlsb = lutMetadata->getRctLsb();
76 <<
"\nWarning: HBHEDigiCollection with input tag "
78 <<
"\nrequested in configuration, but not found in the event."
79 <<
"\nQuit returning empty product." << std::endl;
84 outTranscoder->releaseSetup();
91 <<
"\nWarning: HFDigiCollection with input tag "
93 <<
"\nrequested in configuration, but not found in the event."
94 <<
"\nQuit returning empty product." << std::endl;
99 outTranscoder->releaseSetup();
107 *hbheDigis, *hfDigis, *
result, rctlsb);
119 if (fedHandle.
isValid() && emap != 0) {
123 <<
"\nWarning: FEDRawDataCollection with input tag "
125 <<
"\nrequested in configuration, but not found in the event."
126 <<
"\nQuit returning empty product." << std::endl;
129 std::auto_ptr < HcalTrigPrimDigiCollection > emptyResult(
132 iEvent.
put(emptyResult);
134 outTranscoder->releaseSetup();
148 outTranscoder->releaseSetup();
T getParameter(std::string const &) const
edm::InputTag inputTagFEDRaw_
input tag for FEDRawDataCollection
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
HcalTrigPrimDigiProducer(const edm::ParameterSet &ps)
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HBHEDigiCollection &hbheDigis, const HFDigiCollection &hfDigis, HcalTrigPrimDigiCollection &result, float rctlsb)
HcalTriggerPrimitiveAlgo theAlgo_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void runZS(HcalTrigPrimDigiCollection &tp)
T const * product() const
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
bool runFrontEndFormatError_
void setPeakFinderAlgorithm(int algo)