30 theAlgo_(ps.getParameter<
bool>(
"peakFilter"),
31 ps.getParameter<
std::vector<double> >(
"weights"),
32 ps.getParameter<
int>(
"latency"),
33 ps.getParameter<uint32_t>(
"FG_threshold"),
34 ps.getParameter<uint32_t>(
"FG_HF_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 inputUpgradeLabel_(ps.getParameter<
std::vector<
edm::InputTag> >(
"inputUpgradeLabel")),
45 inputTagFEDRaw_(ps.getParameter<
edm::InputTag> (
"InputTagFEDRaw")),
46 runZS_(ps.getParameter<
bool>(
"RunZS")),
47 runFrontEndFormatError_(ps.getParameter<
bool>(
"FrontEndFormatError"))
53 if (ps.
exists(
"parameters")) {
84 produces<HcalTrigPrimDigiCollection>();
128 <<
"\nWarning: HBHEDigiCollection with input tag " 130 <<
"\nrequested in configuration, but not found in the event." 131 <<
"\nQuit returning empty product." << std::endl;
141 <<
"\nWarning: HFDigiCollection with input tag " 143 <<
"\nrequested in configuration, but not found in the event." 144 <<
"\nQuit returning empty product." << std::endl;
159 <<
"\nWarning: Upgrade HBHEDigiCollection with input tag " 161 <<
"\nrequested in configuration, but not found in the event." 162 <<
"\nQuit returning empty product." << std::endl;
172 <<
"\nWarning: HFDigiCollection with input tag " 174 <<
"\nrequested in configuration, but not found in the event." 175 <<
"\nQuit returning empty product." << std::endl;
198 *
result, &(*pG), rctlsb, hfembit, *hbheDigis, *hfDigis);
199 }
else if (
legacy_ and upgrade_) {
201 *
result, &(*pG), rctlsb, hfembit, *hbheDigis, *hfDigis, *hbheUpDigis, *hfUpDigis);
204 *
result, &(*pG), rctlsb, hfembit, *hbheUpDigis, *hfUpDigis);
217 if (fedHandle.
isValid() && emap !=
nullptr) {
221 <<
"\nWarning: FEDRawDataCollection with input tag " 223 <<
"\nrequested in configuration, but not found in the event." 224 <<
"\nQuit returning empty product." << std::endl;
227 std::unique_ptr < HcalTrigPrimDigiCollection > emptyResult(
T getParameter(std::string const &) const
edm::InputTag inputTagFEDRaw_
input tag for FEDRawDataCollection
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::Event &e, const edm::EventSetup &c) override
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
boost::shared_ptr< const HcalTPGCompressor > getHcalCompressor() const
HcalTrigPrimDigiProducer(const edm::ParameterSet &ps)
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< edm::InputTag > inputUpgradeLabel_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
HcalTriggerPrimitiveAlgo theAlgo_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
edm::ParameterSet LongShortCut_
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HcalDbService *conditions, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb, const HcalFeatureBit *LongvrsShortCut, const Digis &...digis)
void runZS(HcalTrigPrimDigiCollection &tp)
edm::EDGetTokenT< QIE10DigiCollection > tok_hf_up_
void setNCTScaleShift(int)
edm::EDGetTokenT< QIE11DigiCollection > tok_hbhe_up_
T const * product() const
const HcalElectronicsMap * getHcalMapping() const
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void setRCTScaleShift(int)
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
bool runFrontEndFormatError_
T const * product() const
void setUpgradeFlags(bool hb, bool he, bool hf)
void overrideParameters(const edm::ParameterSet &ps)
void setPeakFinderAlgorithm(int algo)
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_