|
|
Go to the documentation of this file.
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;
226 if (fedHandle.
isValid() && emap !=
nullptr) {
230 <<
"\nrequested in configuration, but not found in the event."
231 <<
"\nQuit returning empty product." << std::endl;
T const * product() const
HcalTriggerPrimitiveAlgo theAlgo_
T const * product() const
void overrideParameters(const edm::ParameterSet &ps)
edm::EDGetTokenT< QIE10DigiCollection > tok_hf_up_
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 setUpgradeFlags(bool hb, bool he, bool hf)
edm::EDGetTokenT< QIE11DigiCollection > tok_hbhe_up_
T getUntrackedParameter(std::string const &, T const &) const
void setNCTScaleShift(int)
const HcalElectronicsMap * getHcalMapping() const
std::shared_ptr< const HcalTPGCompressor > getHcalCompressor() const
void setRCTScaleShift(int)
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void runZS(HcalTrigPrimDigiCollection &tp)
bool runFrontEndFormatError_
edm::InputTag inputTagFEDRaw_
input tag for FEDRawDataCollection
bool exists(std::string const ¶meterName) const
checks if a parameter exists
HcalTrigPrimDigiProducer(const edm::ParameterSet &ps)
edm::ParameterSet LongShortCut_
std::vector< edm::InputTag > inputUpgradeLabel_
void produce(edm::Event &e, const edm::EventSetup &c) override
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
T getParameter(std::string const &) const
void setPeakFinderAlgorithm(int algo)
edm::EDGetTokenT< HFDigiCollection > tok_hf_
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection