|
|
Go to the documentation of this file.
18 : theAlgo_(ps.getParameter<
bool>(
"peakFilter"),
19 ps.getParameter<
std::
vector<double> >(
"weights"),
20 ps.getParameter<
int>(
"latency"),
21 ps.getParameter<uint32_t>(
"FG_threshold"),
22 ps.getParameter<
std::
vector<uint32_t> >(
"FG_HF_thresholds"),
23 ps.getParameter<uint32_t>(
"ZS_threshold"),
24 ps.getParameter<
int>(
"numberOfSamples"),
25 ps.getParameter<
int>(
"numberOfPresamples"),
26 ps.getParameter<
int>(
"numberOfFilterPresamplesHBQIE11"),
27 ps.getParameter<
int>(
"numberOfFilterPresamplesHEQIE11"),
28 ps.getParameter<
int>(
"numberOfSamplesHF"),
29 ps.getParameter<
int>(
"numberOfPresamplesHF"),
30 ps.getParameter<
bool>(
"useTDCInMinBiasBits"),
31 ps.getParameter<uint32_t>(
"MinSignalThreshold"),
32 ps.getParameter<uint32_t>(
"PMTNoiseThreshold")),
35 inputTagFEDRaw_(ps.getParameter<
edm::
InputTag>(
"InputTagFEDRaw")),
36 runZS_(ps.getParameter<
bool>(
"RunZS")),
37 runFrontEndFormatError_(ps.getParameter<
bool>(
"FrontEndFormatError")) {
38 std::vector<bool> upgrades = {
40 upgrade_ = std::any_of(std::begin(upgrades),
std::end(upgrades), [](
bool a) {
return a; });
41 legacy_ = std::any_of(std::begin(upgrades),
std::end(upgrades), [](
bool a) {
return !
a; });
43 if (ps.
exists(
"parameters")) {
51 if (ps.
exists(
"LSConfig")) {
79 produces<HcalTrigPrimDigiCollection>();
117 <<
"\nrequested in configuration, but not found in the event."
118 <<
"\nQuit returning empty product." << std::endl;
128 <<
"\nrequested in configuration, but not found in the event."
129 <<
"\nQuit returning empty product." << std::endl;
145 <<
"\nrequested in configuration, but not found in the event."
146 <<
"\nQuit returning empty product." << std::endl;
156 <<
"\nrequested in configuration, but not found in the event."
157 <<
"\nQuit returning empty product." << std::endl;
220 if (fedHandle.
isValid() && emap !=
nullptr) {
224 <<
"\nrequested in configuration, but not found in the event."
225 <<
"\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)
void setWeightsQIE11(const edm::ParameterSet &weightsQIE11)
edm::EDGetTokenT< QIE11DigiCollection > tok_hbhe_up_
T getUntrackedParameter(std::string const &, T const &) const
void setNCTScaleShift(int)
Log< level::Info, false > LogInfo
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
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbService_
HcalTrigPrimDigiProducer(const edm::ParameterSet &ps)
edm::ParameterSet LongShortCut_
edm::ESGetToken< HcalTrigTowerGeometry, CaloGeometryRecord > tok_trigTowerGeom_
std::vector< edm::InputTag > inputUpgradeLabel_
void produce(edm::Event &e, const edm::EventSetup &c) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecord > tok_tpgTranscoder_
void setPeakFinderAlgorithm(int algo)
edm::ESGetToken< HcalTPGCoder, HcalTPGRecord > tok_tpgCoder_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
edm::ESGetToken< HcalLutMetadata, HcalLutMetadataRcd > tok_lutMetadata_
T getParameter(std::string const &) const
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection