26 : theAlgo_(ps.getParameter<
bool>(
"peakFilter"),
27 ps.getParameter<
std::vector<double> >(
"weights"),
28 ps.getParameter<
int>(
"latency"),
29 ps.getParameter<uint32_t>(
"FG_threshold"),
30 ps.getParameter<
std::vector<uint32_t> >(
"FG_HF_thresholds"),
31 ps.getParameter<uint32_t>(
"ZS_threshold"),
32 ps.getParameter<
int>(
"numberOfSamples"),
33 ps.getParameter<
int>(
"numberOfPresamples"),
34 ps.getParameter<
int>(
"numberOfSamplesHF"),
35 ps.getParameter<
int>(
"numberOfPresamplesHF"),
36 ps.getParameter<
bool>(
"useTDCInMinBiasBits"),
37 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
38 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")),
39 inputLabel_(ps.getParameter<
std::vector<
edm::
InputTag> >(
"inputLabel")),
40 inputUpgradeLabel_(ps.getParameter<
std::vector<
edm::
InputTag> >(
"inputUpgradeLabel")),
41 inputTagFEDRaw_(ps.getParameter<
edm::
InputTag>(
"InputTagFEDRaw")),
42 runZS_(ps.getParameter<
bool>(
"RunZS")),
43 runFrontEndFormatError_(ps.getParameter<
bool>(
"FrontEndFormatError")) {
44 std::vector<bool> upgrades = {
49 if (ps.
exists(
"parameters")) {
56 if (ps.
exists(
"LSConfig")) {
80 produces<HcalTrigPrimDigiCollection>();
122 <<
"\nrequested in configuration, but not found in the event." 123 <<
"\nQuit returning empty product." << std::endl;
133 <<
"\nrequested in configuration, but not found in the event." 134 <<
"\nQuit returning empty product." << std::endl;
150 <<
"\nrequested in configuration, but not found in the event." 151 <<
"\nQuit returning empty product." << std::endl;
161 <<
"\nrequested in configuration, but not found in the event." 162 <<
"\nQuit returning empty product." << std::endl;
195 }
else if (
legacy_ and upgrade_) {
226 if (fedHandle.
isValid() && emap !=
nullptr) {
230 <<
"\nrequested in configuration, but not found in the event." 231 <<
"\nQuit returning empty product." << std::endl;
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.
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_
std::shared_ptr< const HcalTPGCompressor > getHcalCompressor() const
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_