30 theAlgo_(ps.getParameter<bool>(
"peakFilter"),
31 ps.getParameter<std::vector<double> >(
"weights"),
32 ps.getParameter<int>(
"latency"),
33 ps.getParameter<bool>(
"FG_MinimumBias"),
34 ps.getParameter<uint32_t>(
"FG_threshold"),
35 ps.getParameter<uint32_t>(
"ZS_threshold"),
36 ps.getParameter<int>(
"numberOfSamples"),
37 ps.getParameter<int>(
"numberOfPresamples"),
38 ps.getParameter<int>(
"numberOfSamplesHF"),
39 ps.getParameter<int>(
"numberOfPresamplesHF"),
40 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
41 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")
43 inputLabel_(ps.getParameter<std::vector<edm::
InputTag> >(
"inputLabel")),
44 inputTagFEDRaw_(ps.getParameter<edm::
InputTag> (
"InputTagFEDRaw")),
45 runZS_(ps.getParameter<bool>(
"RunZS")),
46 runFrontEndFormatError_(ps.getParameter<bool>(
"FrontEndFormatError"))
65 produces<HcalTrigPrimDigiCollection>();
86 float rctlsb = lutMetadata->getRctLsb();
105 <<
"\nWarning: HBHEDigiCollection with input tag "
107 <<
"\nrequested in configuration, but not found in the event."
108 <<
"\nQuit returning empty product." << std::endl;
118 <<
"\nWarning: HFDigiCollection with input tag "
120 <<
"\nrequested in configuration, but not found in the event."
121 <<
"\nQuit returning empty product." << std::endl;
139 *hbheDigis, *hfDigis, *
result, &(*pG), rctlsb, hfembit);
145 *hbheDigis, *hfDigis, *
result, &(*pG), rctlsb);
160 if (fedHandle.
isValid() && emap != 0) {
164 <<
"\nWarning: FEDRawDataCollection with input tag "
166 <<
"\nrequested in configuration, but not found in the event."
167 <<
"\nQuit returning empty product." << std::endl;
170 std::auto_ptr < HcalTrigPrimDigiCollection > emptyResult(
173 iEvent.
put(emptyResult);
T getParameter(std::string const &) const
edm::InputTag inputTagFEDRaw_
input tag for FEDRawDataCollection
T getUntrackedParameter(std::string const &, T const &) const
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
bool exists(std::string const ¶meterName) const
checks if a parameter exists
HcalTriggerPrimitiveAlgo theAlgo_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
edm::ParameterSet LongShortCut_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void runZS(HcalTrigPrimDigiCollection &tp)
void setNCTScaleShift(int)
T const * product() const
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void setRCTScaleShift(int)
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
bool runFrontEndFormatError_
void setPeakFinderAlgorithm(int algo)
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HBHEDigiCollection &hbheDigis, const HFDigiCollection &hfDigis, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb, const HcalFeatureBit *LongvrsShortCut=0)