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<
bool>(
"useTDCInMinBiasBits"),
41 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
42 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")
44 inputLabel_(ps.getParameter<
std::vector<
edm::InputTag> >(
"inputLabel")),
45 inputUpgradeLabel_(ps.getParameter<
std::vector<
edm::InputTag> >(
"inputUpgradeLabel")),
46 inputTagFEDRaw_(ps.getParameter<
edm::InputTag> (
"InputTagFEDRaw")),
47 runZS_(ps.getParameter<
bool>(
"RunZS")),
48 runFrontEndFormatError_(ps.getParameter<
bool>(
"FrontEndFormatError"))
54 if (ps.
exists(
"parameters")) {
85 produces<HcalTrigPrimDigiCollection>();
129 <<
"\nWarning: HBHEDigiCollection with input tag " 131 <<
"\nrequested in configuration, but not found in the event." 132 <<
"\nQuit returning empty product." << std::endl;
142 <<
"\nWarning: HFDigiCollection with input tag " 144 <<
"\nrequested in configuration, but not found in the event." 145 <<
"\nQuit returning empty product." << std::endl;
160 <<
"\nWarning: Upgrade HBHEDigiCollection with input tag " 162 <<
"\nrequested in configuration, but not found in the event." 163 <<
"\nQuit returning empty product." << std::endl;
173 <<
"\nWarning: HFDigiCollection with input tag " 175 <<
"\nrequested in configuration, but not found in the event." 176 <<
"\nQuit returning empty product." << std::endl;
199 *
result, &(*pG), rctlsb, hfembit, *hbheDigis, *hfDigis);
200 }
else if (
legacy_ and upgrade_) {
202 *
result, &(*pG), rctlsb, hfembit, *hbheDigis, *hfDigis, *hbheUpDigis, *hfUpDigis);
205 *
result, &(*pG), rctlsb, hfembit, *hbheUpDigis, *hfUpDigis);
218 if (fedHandle.
isValid() && emap !=
nullptr) {
222 <<
"\nWarning: FEDRawDataCollection with input tag " 224 <<
"\nrequested in configuration, but not found in the event." 225 <<
"\nQuit returning empty product." << std::endl;
228 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_