27 theAlgo_(ps.getParameter<bool>(
"peakFilter"),
28 ps.getParameter<std::vector<double> >(
"weights"),
29 ps.getParameter<int>(
"latency"),
30 ps.getParameter<uint32_t>(
"FG_threshold"),
31 ps.getParameter<uint32_t>(
"ZS_threshold"),
32 ps.getParameter<int>(
"numberOfSamples"),
33 ps.getParameter<int>(
"numberOfPresamples"),
34 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
35 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")
37 inputLabel_(ps.getParameter<std::vector<edm::InputTag> >(
"inputLabel")),
38 inputTagFEDRaw_(ps.getParameter<edm::InputTag> (
"InputTagFEDRaw")),
39 runZS_(ps.getParameter<bool>(
"RunZS")),
40 runFrontEndFormatError_(ps.getParameter<bool>(
"FrontEndFormatError"))
47 produces<HcalTrigPrimDigiCollection>();
64 float rctlsb = lutMetadata->getRctLsb();
83 <<
"\nWarning: HBHEDigiCollection with input tag "
85 <<
"\nrequested in configuration, but not found in the event."
86 <<
"\nQuit returning empty product." << std::endl;
91 outTranscoder->releaseSetup();
98 <<
"\nWarning: HFDigiCollection with input tag "
100 <<
"\nrequested in configuration, but not found in the event."
101 <<
"\nQuit returning empty product." << std::endl;
106 outTranscoder->releaseSetup();
114 *hbheDigis, *hfDigis, *
result, &(*pG), rctlsb);
126 if (fedHandle.
isValid() && emap != 0) {
130 <<
"\nWarning: FEDRawDataCollection with input tag "
132 <<
"\nrequested in configuration, but not found in the event."
133 <<
"\nQuit returning empty product." << std::endl;
136 std::auto_ptr < HcalTrigPrimDigiCollection > emptyResult(
139 iEvent.
put(emptyResult);
141 outTranscoder->releaseSetup();
155 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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
HcalTriggerPrimitiveAlgo theAlgo_
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HBHEDigiCollection &hbheDigis, const HFDigiCollection &hfDigis, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb)
edm::EDGetTokenT< HFDigiCollection > tok_hf_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void runZS(HcalTrigPrimDigiCollection &tp)
T const * product() const
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
bool runFrontEndFormatError_
void setPeakFinderAlgorithm(int algo)
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_