CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalTrigPrimDigiProducer Class Reference

#include <HcalTrigPrimDigiProducer.h>

Inheritance diagram for HcalTrigPrimDigiProducer:
edm::stream::EDProducer<>

Public Member Functions

void beginRun (const edm::Run &r, const edm::EventSetup &c) override
 
 HcalTrigPrimDigiProducer (const edm::ParameterSet &ps)
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 
 ~HcalTrigPrimDigiProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

bool HFEMB_
 
std::vector< edm::InputTaginputLabel_
 input tags for HCAL digis More...
 
edm::InputTag inputTagFEDRaw_
 input tag for FEDRawDataCollection More...
 
std::vector< edm::InputTaginputUpgradeLabel_
 
bool legacy_
 
edm::ParameterSet LongShortCut_
 
double LongShortOffset_
 
double LongShortSlope_
 
double MinLongEnergy_
 
double MinShortEnergy_
 
bool overrideDBweightsAndFilterHB_
 
bool overrideDBweightsAndFilterHE_
 
bool runFrontEndFormatError_
 
bool runZS_
 
HcalTriggerPrimitiveAlgo theAlgo_
 
edm::ESGetToken< HcalDbService, HcalDbRecordtok_dbService_
 
edm::ESGetToken< HcalDbService, HcalDbRecordtok_dbService_beginRun_
 
edm::EDGetTokenT< HBHEDigiCollectiontok_hbhe_
 
edm::EDGetTokenT< QIE11DigiCollectiontok_hbhe_up_
 
edm::ESGetToken< HcalTopology, HcalRecNumberingRecordtok_hcalTopo_
 
edm::EDGetTokenT< HFDigiCollectiontok_hf_
 
edm::EDGetTokenT< QIE10DigiCollectiontok_hf_up_
 
edm::ESGetToken< HcalLutMetadata, HcalLutMetadataRcdtok_lutMetadata_
 
edm::EDGetTokenT< FEDRawDataCollectiontok_raw_
 
edm::ESGetToken< HcalTPGCoder, HcalTPGRecordtok_tpgCoder_
 
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecordtok_tpgTranscoder_
 
edm::ESGetToken< HcalTrigTowerGeometry, CaloGeometryRecordtok_trigTowerGeom_
 
bool upgrade_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 27 of file HcalTrigPrimDigiProducer.h.

Constructor & Destructor Documentation

◆ HcalTrigPrimDigiProducer()

HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer ( const edm::ParameterSet ps)
explicit

Definition at line 17 of file HcalTrigPrimDigiProducer.cc.

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")),
33  inputLabel_(ps.getParameter<std::vector<edm::InputTag> >("inputLabel")),
34  inputUpgradeLabel_(ps.getParameter<std::vector<edm::InputTag> >("inputUpgradeLabel")),
35  inputTagFEDRaw_(ps.getParameter<edm::InputTag>("InputTagFEDRaw")),
36  runZS_(ps.getParameter<bool>("RunZS")),
37  runFrontEndFormatError_(ps.getParameter<bool>("FrontEndFormatError")) {
38  std::vector<bool> upgrades = {
39  ps.getParameter<bool>("upgradeHB"), ps.getParameter<bool>("upgradeHE"), ps.getParameter<bool>("upgradeHF")};
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; });
42 
43  overrideDBweightsAndFilterHE_ = ps.getParameter<bool>("overrideDBweightsAndFilterHE");
44  overrideDBweightsAndFilterHB_ = ps.getParameter<bool>("overrideDBweightsAndFilterHB");
45 
47 
48  if (ps.exists("parameters")) {
49  auto pset = ps.getUntrackedParameter<edm::ParameterSet>("parameters");
51  }
52  theAlgo_.setUpgradeFlags(upgrades[0], upgrades[1], upgrades[2]);
53  theAlgo_.setFixSaturationFlag(ps.getParameter<bool>("applySaturationFix"));
54 
55  HFEMB_ = false;
56  if (ps.exists("LSConfig")) {
58  HFEMB_ = LongShortCut_.getParameter<bool>("HcalFeatureHFEMBit");
59  MinLongEnergy_ = LongShortCut_.getParameter<double>("Min_Long_Energy"); //minimum long energy
60  MinShortEnergy_ = LongShortCut_.getParameter<double>("Min_Short_Energy"); //minimum short energy
62  LongShortCut_.getParameter<double>("Long_vrs_Short_Slope"); //slope of the line that cuts are based on
63  LongShortOffset_ = LongShortCut_.getParameter<double>("Long_Short_Offset"); //offset of line
64  }
65  tok_tpgCoder_ = esConsumes<HcalTPGCoder, HcalTPGRecord>();
66  tok_tpgTranscoder_ = esConsumes<CaloTPGTranscoder, CaloTPGRecord>();
67  tok_lutMetadata_ = esConsumes<HcalLutMetadata, HcalLutMetadataRcd>();
68  tok_trigTowerGeom_ = esConsumes<HcalTrigTowerGeometry, CaloGeometryRecord>();
69  tok_hcalTopo_ = esConsumes<HcalTopology, HcalRecNumberingRecord, edm::Transition::BeginRun>();
70 
71  // register for data access
73  tok_raw_ = consumes<FEDRawDataCollection>(inputTagFEDRaw_);
74  }
75 
76  if (legacy_) {
77  tok_hbhe_ = consumes<HBHEDigiCollection>(inputLabel_[0]);
78  tok_hf_ = consumes<HFDigiCollection>(inputLabel_[1]);
79  }
80 
81  if (upgrade_) {
82  tok_hbhe_up_ = consumes<QIE11DigiCollection>(inputUpgradeLabel_[0]);
83  tok_hf_up_ = consumes<QIE10DigiCollection>(inputUpgradeLabel_[1]);
84  }
85  tok_dbService_ = esConsumes<HcalDbService, HcalDbRecord>();
86  tok_dbService_beginRun_ = esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>();
87  produces<HcalTrigPrimDigiCollection>();
88  theAlgo_.setPeakFinderAlgorithm(ps.getParameter<int>("PeakFinderAlgorithm"));
89 
90  edm::ParameterSet hfSS = ps.getParameter<edm::ParameterSet>("tpScales").getParameter<edm::ParameterSet>("HF");
91 
92  theAlgo_.setNCTScaleShift(hfSS.getParameter<int>("NCTShift"));
93  theAlgo_.setRCTScaleShift(hfSS.getParameter<int>("RCTShift"));
94 }

References a, mps_fire::end, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HFEMB_, inputLabel_, inputTagFEDRaw_, inputUpgradeLabel_, legacy_, LongShortCut_, LongShortOffset_, LongShortSlope_, MinLongEnergy_, MinShortEnergy_, overrideDBweightsAndFilterHB_, overrideDBweightsAndFilterHE_, HcalTriggerPrimitiveAlgo::overrideParameters(), muonDTDigis_cfi::pset, runFrontEndFormatError_, HcalTriggerPrimitiveAlgo::setFixSaturationFlag(), HcalTriggerPrimitiveAlgo::setNCTScaleShift(), HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm(), HcalTriggerPrimitiveAlgo::setRCTScaleShift(), HcalTriggerPrimitiveAlgo::setUpgradeFlags(), HcalTriggerPrimitiveAlgo::setWeightsQIE11(), theAlgo_, tok_dbService_, tok_dbService_beginRun_, tok_hbhe_, tok_hbhe_up_, tok_hcalTopo_, tok_hf_, tok_hf_up_, tok_lutMetadata_, tok_raw_, tok_tpgCoder_, tok_tpgTranscoder_, tok_trigTowerGeom_, and upgrade_.

◆ ~HcalTrigPrimDigiProducer()

HcalTrigPrimDigiProducer::~HcalTrigPrimDigiProducer ( )
inlineoverride

Definition at line 30 of file HcalTrigPrimDigiProducer.h.

30 {}

Member Function Documentation

◆ beginRun()

void HcalTrigPrimDigiProducer::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
override

Produces the EDM products,

Definition at line 96 of file HcalTrigPrimDigiProducer.cc.

96  {
98  const HcalTopology* topo = &eventSetup.getData(tok_hcalTopo_);
99 
100  const HcalElectronicsMap* emap = db->getHcalMapping();
101 
102  int lastHERing = topo->lastHERing();
103  int lastHBRing = topo->lastHBRing();
104 
105  // First, determine if we should configure for the filter scheme
106  // Check the tp version to make this determination
107  bool foundHB = false;
108  bool foundHE = false;
109  bool newHBtp = false;
110  bool newHEtp = false;
111  std::vector<HcalElectronicsId> vIds = emap->allElectronicsIdTrigger();
112  for (std::vector<HcalElectronicsId>::const_iterator eId = vIds.begin(); eId != vIds.end(); eId++) {
113  // The first HB or HE id is enough to tell whether to use new scheme in HB or HE
114  if (foundHB and foundHE)
115  break;
116 
117  HcalTrigTowerDetId hcalTTDetId(emap->lookupTrigger(*eId));
118  if (hcalTTDetId.null())
119  continue;
120 
121  int aieta = abs(hcalTTDetId.ieta());
122  int tp_version = hcalTTDetId.version();
123 
124  if (aieta <= lastHBRing) {
125  foundHB = true;
126  if (tp_version > 1)
127  newHBtp = true;
128  } else if (aieta > lastHBRing and aieta < lastHERing) {
129  foundHE = true;
130  if (tp_version > 1)
131  newHEtp = true;
132  }
133  }
134 
135  std::vector<HcalElectronicsId> eIds = emap->allElectronicsIdPrecision();
136  for (std::vector<HcalElectronicsId>::const_iterator eId = eIds.begin(); eId != eIds.end(); eId++) {
137  HcalGenericDetId gid(emap->lookup(*eId));
138  if (gid.null() or (gid.genericSubdet() != HcalGenericDetId::HcalGenBarrel and
139  gid.genericSubdet() != HcalGenericDetId::HcalGenEndcap))
140  continue;
141 
142  HcalDetId hcalDetId(emap->lookup(*eId));
143  if (hcalDetId.null())
144  continue;
145 
146  int aieta = abs(hcalDetId.ieta());
147 
148  // Do not let ieta 29 in the map
149  // If the aieta already has a weight in the map, then move on
150  if (aieta < lastHERing) {
151  // Filter weight represented in fixed point 8 bit
152  int fixedPointWeight = db->getHcalTPChannelParameter(hcalDetId)->getauxi1();
153 
154  if (aieta <= lastHBRing) {
155  // Fix number of filter presamples to one if we are using DB weights
156  // Size of filter is already known when using DB weights
157  // Weight from DB represented as 8-bit integer
159  if (newHBtp) {
161  theAlgo_.setWeightQIE11(aieta, -static_cast<double>(fixedPointWeight) / 256.0);
162  } else {
164  theAlgo_.setWeightQIE11(aieta, 1.0);
165  }
166  }
167  } else if (aieta > lastHBRing) {
169  if (newHEtp) {
171  theAlgo_.setWeightQIE11(aieta, -static_cast<double>(fixedPointWeight) / 256.0);
172  } else {
174  theAlgo_.setWeightQIE11(aieta, 1.0);
175  }
176  }
177  }
178  }
179  }
180 }

References funct::abs(), HcalElectronicsMap::allElectronicsIdPrecision(), HcalElectronicsMap::allElectronicsIdTrigger(), dqmiodatasetharvest::db, edm::EventSetup::getData(), edm::EventSetup::getHandle(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalTopology::lastHBRing(), HcalTopology::lastHERing(), HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), or, overrideDBweightsAndFilterHB_, overrideDBweightsAndFilterHE_, HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHBQIE11(), HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHEQIE11(), HcalTriggerPrimitiveAlgo::setWeightQIE11(), theAlgo_, tok_dbService_beginRun_, and tok_hcalTopo_.

◆ produce()

void HcalTrigPrimDigiProducer::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 182 of file HcalTrigPrimDigiProducer.cc.

182  {
183  // Step A: get the conditions, for the decoding
184  edm::ESHandle<HcalTPGCoder> inputCoder = eventSetup.getHandle(tok_tpgCoder_);
185 
186  edm::ESHandle<CaloTPGTranscoder> outTranscoder = eventSetup.getHandle(tok_tpgTranscoder_);
187 
188  edm::ESHandle<HcalLutMetadata> lutMetadata = eventSetup.getHandle(tok_lutMetadata_);
189  float rctlsb = lutMetadata->getRctLsb();
190 
191  edm::ESHandle<HcalTrigTowerGeometry> pG = eventSetup.getHandle(tok_trigTowerGeom_);
192 
193  // Step B: Create empty output
194  std::unique_ptr<HcalTrigPrimDigiCollection> result(new HcalTrigPrimDigiCollection());
195 
198 
201 
202  if (legacy_) {
203  iEvent.getByToken(tok_hbhe_, hbheDigis);
204  iEvent.getByToken(tok_hf_, hfDigis);
205 
206  // protect here against missing input collections
207  // there is no protection in HcalTriggerPrimitiveAlgo
208 
209  if (!hbheDigis.isValid() and legacy_) {
210  edm::LogInfo("HcalTrigPrimDigiProducer") << "\nWarning: HBHEDigiCollection with input tag " << inputLabel_[0]
211  << "\nrequested in configuration, but not found in the event."
212  << "\nQuit returning empty product." << std::endl;
213 
214  // put empty HcalTrigPrimDigiCollection in the event
215  iEvent.put(std::move(result));
216 
217  return;
218  }
219 
220  if (!hfDigis.isValid() and legacy_) {
221  edm::LogInfo("HcalTrigPrimDigiProducer") << "\nWarning: HFDigiCollection with input tag " << inputLabel_[1]
222  << "\nrequested in configuration, but not found in the event."
223  << "\nQuit returning empty product." << std::endl;
224 
225  // put empty HcalTrigPrimDigiCollection in the event
226  iEvent.put(std::move(result));
227 
228  return;
229  }
230  }
231 
232  if (upgrade_) {
233  iEvent.getByToken(tok_hbhe_up_, hbheUpDigis);
234  iEvent.getByToken(tok_hf_up_, hfUpDigis);
235 
236  if (!hbheUpDigis.isValid() and upgrade_) {
237  edm::LogInfo("HcalTrigPrimDigiProducer")
238  << "\nWarning: Upgrade HBHEDigiCollection with input tag " << inputUpgradeLabel_[0]
239  << "\nrequested in configuration, but not found in the event."
240  << "\nQuit returning empty product." << std::endl;
241 
242  // put empty HcalTrigPrimDigiCollection in the event
243  iEvent.put(std::move(result));
244 
245  return;
246  }
247 
248  if (!hfUpDigis.isValid() and upgrade_) {
249  edm::LogInfo("HcalTrigPrimDigiProducer") << "\nWarning: HFDigiCollection with input tag " << inputUpgradeLabel_[1]
250  << "\nrequested in configuration, but not found in the event."
251  << "\nQuit returning empty product." << std::endl;
252 
253  // put empty HcalTrigPrimDigiCollection in the event
254  iEvent.put(std::move(result));
255 
256  return;
257  }
258  }
259 
260  edm::ESHandle<HcalDbService> pSetup = eventSetup.getHandle(tok_dbService_);
261 
262  HcalFeatureBit* hfembit = nullptr;
263 
264  if (HFEMB_) {
265  hfembit = new HcalFeatureHFEMBit(MinShortEnergy_,
269  *pSetup); //inputs values that cut will be based on
270  }
271 
272  // Step C: Invoke the algorithm, passing in inputs and getting back outputs.
273  if (legacy_ and not upgrade_) {
274  theAlgo_.run(inputCoder.product(),
275  outTranscoder->getHcalCompressor().get(),
276  pSetup.product(),
277  *result,
278  &(*pG),
279  rctlsb,
280  hfembit,
281  *hbheDigis,
282  *hfDigis);
283  } else if (legacy_ and upgrade_) {
284  theAlgo_.run(inputCoder.product(),
285  outTranscoder->getHcalCompressor().get(),
286  pSetup.product(),
287  *result,
288  &(*pG),
289  rctlsb,
290  hfembit,
291  *hbheDigis,
292  *hfDigis,
293  *hbheUpDigis,
294  *hfUpDigis);
295  } else {
296  theAlgo_.run(inputCoder.product(),
297  outTranscoder->getHcalCompressor().get(),
298  pSetup.product(),
299  *result,
300  &(*pG),
301  rctlsb,
302  hfembit,
303  *hbheUpDigis,
304  *hfUpDigis);
305  }
306 
307  // Step C.1: Run FE Format Error / ZS for real data.
309  const HcalElectronicsMap* emap = pSetup->getHcalMapping();
310 
312  iEvent.getByToken(tok_raw_, fedHandle);
313 
314  if (fedHandle.isValid() && emap != nullptr) {
315  theAlgo_.runFEFormatError(fedHandle.product(), emap, *result);
316  } else {
317  edm::LogInfo("HcalTrigPrimDigiProducer") << "\nWarning: FEDRawDataCollection with input tag " << inputTagFEDRaw_
318  << "\nrequested in configuration, but not found in the event."
319  << "\nQuit returning empty product." << std::endl;
320 
321  // produce empty HcalTrigPrimDigiCollection and put it in the event
322  std::unique_ptr<HcalTrigPrimDigiCollection> emptyResult(new HcalTrigPrimDigiCollection());
323 
324  iEvent.put(std::move(emptyResult));
325 
326  return;
327  }
328  }
329 
330  if (runZS_)
332 
333  // edm::LogInfo("HcalTrigPrimDigiProducer") << "HcalTrigPrims: " << result->size();
334 
335  // Step D: Put outputs into event
336  iEvent.put(std::move(result));
337 }

References edm::EventSetup::getHandle(), CaloTPGTranscoder::getHcalCompressor(), HcalDbService::getHcalMapping(), HcalLutMetadata::getRctLsb(), hcaltpdigi_cfi::HcalFeatureHFEMBit, HFEMB_, iEvent, inputLabel_, inputTagFEDRaw_, inputUpgradeLabel_, edm::HandleBase::isValid(), legacy_, LongShortOffset_, LongShortSlope_, MinLongEnergy_, MinShortEnergy_, eostools::move(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), mps_fire::result, HcalTriggerPrimitiveAlgo::run(), HcalTriggerPrimitiveAlgo::runFEFormatError(), runFrontEndFormatError_, HcalTriggerPrimitiveAlgo::runZS(), runZS_, theAlgo_, tok_dbService_, tok_hbhe_, tok_hbhe_up_, tok_hf_, tok_hf_up_, tok_lutMetadata_, tok_raw_, tok_tpgCoder_, tok_tpgTranscoder_, tok_trigTowerGeom_, and upgrade_.

Member Data Documentation

◆ HFEMB_

bool HcalTrigPrimDigiProducer::HFEMB_
private

Definition at line 64 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ inputLabel_

std::vector<edm::InputTag> HcalTrigPrimDigiProducer::inputLabel_
private

input tags for HCAL digis

Definition at line 40 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ inputTagFEDRaw_

edm::InputTag HcalTrigPrimDigiProducer::inputTagFEDRaw_
private

input tag for FEDRawDataCollection

Definition at line 53 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ inputUpgradeLabel_

std::vector<edm::InputTag> HcalTrigPrimDigiProducer::inputUpgradeLabel_
private

Definition at line 41 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ legacy_

bool HcalTrigPrimDigiProducer::legacy_
private

Definition at line 62 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ LongShortCut_

edm::ParameterSet HcalTrigPrimDigiProducer::LongShortCut_
private

Definition at line 65 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer().

◆ LongShortOffset_

double HcalTrigPrimDigiProducer::LongShortOffset_
private

Definition at line 55 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ LongShortSlope_

double HcalTrigPrimDigiProducer::LongShortSlope_
private

Definition at line 55 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ MinLongEnergy_

double HcalTrigPrimDigiProducer::MinLongEnergy_
private

Definition at line 55 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ MinShortEnergy_

double HcalTrigPrimDigiProducer::MinShortEnergy_
private

Definition at line 55 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ overrideDBweightsAndFilterHB_

bool HcalTrigPrimDigiProducer::overrideDBweightsAndFilterHB_
private

Definition at line 50 of file HcalTrigPrimDigiProducer.h.

Referenced by beginRun(), and HcalTrigPrimDigiProducer().

◆ overrideDBweightsAndFilterHE_

bool HcalTrigPrimDigiProducer::overrideDBweightsAndFilterHE_
private

Definition at line 49 of file HcalTrigPrimDigiProducer.h.

Referenced by beginRun(), and HcalTrigPrimDigiProducer().

◆ runFrontEndFormatError_

bool HcalTrigPrimDigiProducer::runFrontEndFormatError_
private

Definition at line 59 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ runZS_

bool HcalTrigPrimDigiProducer::runZS_
private

Definition at line 57 of file HcalTrigPrimDigiProducer.h.

Referenced by produce().

◆ theAlgo_

HcalTriggerPrimitiveAlgo HcalTrigPrimDigiProducer::theAlgo_
private

Definition at line 37 of file HcalTrigPrimDigiProducer.h.

Referenced by beginRun(), HcalTrigPrimDigiProducer(), and produce().

◆ tok_dbService_

edm::ESGetToken<HcalDbService, HcalDbRecord> HcalTrigPrimDigiProducer::tok_dbService_
private

Definition at line 71 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_dbService_beginRun_

edm::ESGetToken<HcalDbService, HcalDbRecord> HcalTrigPrimDigiProducer::tok_dbService_beginRun_
private

Definition at line 72 of file HcalTrigPrimDigiProducer.h.

Referenced by beginRun(), and HcalTrigPrimDigiProducer().

◆ tok_hbhe_

edm::EDGetTokenT<HBHEDigiCollection> HcalTrigPrimDigiProducer::tok_hbhe_
private

Definition at line 46 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_hbhe_up_

edm::EDGetTokenT<QIE11DigiCollection> HcalTrigPrimDigiProducer::tok_hbhe_up_
private

Definition at line 43 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_hcalTopo_

edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> HcalTrigPrimDigiProducer::tok_hcalTopo_
private

Definition at line 70 of file HcalTrigPrimDigiProducer.h.

Referenced by beginRun(), and HcalTrigPrimDigiProducer().

◆ tok_hf_

edm::EDGetTokenT<HFDigiCollection> HcalTrigPrimDigiProducer::tok_hf_
private

Definition at line 47 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_hf_up_

edm::EDGetTokenT<QIE10DigiCollection> HcalTrigPrimDigiProducer::tok_hf_up_
private

Definition at line 44 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_lutMetadata_

edm::ESGetToken<HcalLutMetadata, HcalLutMetadataRcd> HcalTrigPrimDigiProducer::tok_lutMetadata_
private

Definition at line 68 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_raw_

edm::EDGetTokenT<FEDRawDataCollection> HcalTrigPrimDigiProducer::tok_raw_
private

Definition at line 54 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_tpgCoder_

edm::ESGetToken<HcalTPGCoder, HcalTPGRecord> HcalTrigPrimDigiProducer::tok_tpgCoder_
private

Definition at line 66 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_tpgTranscoder_

edm::ESGetToken<CaloTPGTranscoder, CaloTPGRecord> HcalTrigPrimDigiProducer::tok_tpgTranscoder_
private

Definition at line 67 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ tok_trigTowerGeom_

edm::ESGetToken<HcalTrigTowerGeometry, CaloGeometryRecord> HcalTrigPrimDigiProducer::tok_trigTowerGeom_
private

Definition at line 69 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

◆ upgrade_

bool HcalTrigPrimDigiProducer::upgrade_
private

Definition at line 61 of file HcalTrigPrimDigiProducer.h.

Referenced by HcalTrigPrimDigiProducer(), and produce().

HcalTrigPrimDigiProducer::runZS_
bool runZS_
Definition: HcalTrigPrimDigiProducer.h:57
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalTrigPrimDigiProducer::theAlgo_
HcalTriggerPrimitiveAlgo theAlgo_
Definition: HcalTrigPrimDigiProducer.h:37
edm::Handle::product
T const * product() const
Definition: Handle.h:70
HcalTriggerPrimitiveAlgo::overrideParameters
void overrideParameters(const edm::ParameterSet &ps)
Definition: HcalTriggerPrimitiveAlgo.cc:81
HcalTrigPrimDigiProducer::tok_hcalTopo_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_hcalTopo_
Definition: HcalTrigPrimDigiProducer.h:70
HcalGenericDetId
Definition: HcalGenericDetId.h:15
HcalTrigPrimDigiProducer::tok_hf_up_
edm::EDGetTokenT< QIE10DigiCollection > tok_hf_up_
Definition: HcalTrigPrimDigiProducer.h:44
hcaltpdigi_cfi.HcalFeatureHFEMBit
HcalFeatureHFEMBit
Definition: hcaltpdigi_cfi.py:10
HcalTriggerPrimitiveAlgo::run
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HcalDbService *conditions, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb, const HcalFeatureBit *LongvrsShortCut, const Digis &... digis)
Definition: HcalTriggerPrimitiveAlgo.h:252
HcalTriggerPrimitiveAlgo::setUpgradeFlags
void setUpgradeFlags(bool hb, bool he, bool hf)
Definition: HcalTriggerPrimitiveAlgo.cc:73
HcalTriggerPrimitiveAlgo::setWeightsQIE11
void setWeightsQIE11(const edm::ParameterSet &weightsQIE11)
Definition: HcalTriggerPrimitiveAlgo.cc:928
HcalTrigPrimDigiProducer::tok_hbhe_up_
edm::EDGetTokenT< QIE11DigiCollection > tok_hbhe_up_
Definition: HcalTrigPrimDigiProducer.h:43
HcalTopology
Definition: HcalTopology.h:26
HcalGenericDetId::HcalGenEndcap
Definition: HcalGenericDetId.h:20
HcalTrigPrimDigiProducer::MinLongEnergy_
double MinLongEnergy_
Definition: HcalTrigPrimDigiProducer.h:55
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
HcalTriggerPrimitiveAlgo::setNCTScaleShift
void setNCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:950
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
HcalTrigPrimDigiProducer::LongShortSlope_
double LongShortSlope_
Definition: HcalTrigPrimDigiProducer.h:55
edm::Handle
Definition: AssociativeIterator.h:50
HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHEQIE11
void setNumFilterPresamplesHEQIE11(int presamples)
Definition: HcalTriggerPrimitiveAlgo.h:89
HcalTriggerPrimitiveAlgo::setWeightQIE11
void setWeightQIE11(int aieta, double weight)
Definition: HcalTriggerPrimitiveAlgo.cc:938
HcalDbService::getHcalMapping
const HcalElectronicsMap * getHcalMapping() const
Definition: HcalDbService.cc:343
CaloTPGTranscoder::getHcalCompressor
std::shared_ptr< const HcalTPGCompressor > getHcalCompressor() const
Definition: CaloTPGTranscoder.h:55
HcalElectronicsMap::lookupTrigger
const DetId lookupTrigger(HcalElectronicsId fId) const
brief lookup the trigger logical detid associated with the given electronics id
Definition: HcalElectronicsMap.cc:80
dqmiodatasetharvest.db
db
Definition: dqmiodatasetharvest.py:119
HcalTriggerPrimitiveAlgo::setRCTScaleShift
void setRCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:952
HcalLutMetadata::getRctLsb
float getRctLsb() const
Definition: HcalLutMetadata.h:25
HcalTrigPrimDigiProducer::tok_hbhe_
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
Definition: HcalTrigPrimDigiProducer.h:46
mps_fire.end
end
Definition: mps_fire.py:242
HcalTrigPrimDigiProducer::tok_raw_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
Definition: HcalTrigPrimDigiProducer.h:54
edm::ESHandle< HcalDbService >
HcalTrigPrimDigiProducer::MinShortEnergy_
double MinShortEnergy_
Definition: HcalTrigPrimDigiProducer.h:55
HcalElectronicsMap::allElectronicsIdTrigger
std::vector< HcalElectronicsId > allElectronicsIdTrigger() const
Definition: HcalElectronicsMap.cc:130
HcalTriggerPrimitiveAlgo::runZS
void runZS(HcalTrigPrimDigiCollection &tp)
Definition: HcalTriggerPrimitiveAlgo.cc:761
HcalTriggerPrimitiveAlgo::setFixSaturationFlag
void setFixSaturationFlag(bool fix_saturation)
Definition: HcalTriggerPrimitiveAlgo.cc:79
HcalTrigPrimDigiProducer::runFrontEndFormatError_
bool runFrontEndFormatError_
Definition: HcalTrigPrimDigiProducer.h:59
HcalTrigPrimDigiProducer::inputTagFEDRaw_
edm::InputTag inputTagFEDRaw_
input tag for FEDRawDataCollection
Definition: HcalTrigPrimDigiProducer.h:53
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
HcalTrigPrimDigiProducer::tok_dbService_
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbService_
Definition: HcalTrigPrimDigiProducer.h:71
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
HcalTrigPrimDigiProducer::LongShortCut_
edm::ParameterSet LongShortCut_
Definition: HcalTrigPrimDigiProducer.h:65
HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHBQIE11
void setNumFilterPresamplesHBQIE11(int presamples)
Definition: HcalTriggerPrimitiveAlgo.h:87
HcalTrigPrimDigiProducer::tok_trigTowerGeom_
edm::ESGetToken< HcalTrigTowerGeometry, CaloGeometryRecord > tok_trigTowerGeom_
Definition: HcalTrigPrimDigiProducer.h:69
HcalDetId
Definition: HcalDetId.h:12
HcalTrigPrimDigiProducer::inputUpgradeLabel_
std::vector< edm::InputTag > inputUpgradeLabel_
Definition: HcalTrigPrimDigiProducer.h:41
iEvent
int iEvent
Definition: GenABIO.cc:224
HcalTrigPrimDigiProducer::tok_dbService_beginRun_
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbService_beginRun_
Definition: HcalTrigPrimDigiProducer.h:72
HcalFeatureBit
Definition: HcalFeatureBit.h:8
HcalGenericDetId::HcalGenBarrel
Definition: HcalGenericDetId.h:19
HcalTopology::lastHERing
int lastHERing() const
Definition: HcalTopology.h:94
HcalElectronicsMap::allElectronicsIdPrecision
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
Definition: HcalElectronicsMap.cc:122
HcalTrigPrimDigiProducer::legacy_
bool legacy_
Definition: HcalTrigPrimDigiProducer.h:62
HcalTrigPrimDigiProducer::inputLabel_
std::vector< edm::InputTag > inputLabel_
input tags for HCAL digis
Definition: HcalTrigPrimDigiProducer.h:40
HcalTrigPrimDigiProducer::LongShortOffset_
double LongShortOffset_
Definition: HcalTrigPrimDigiProducer.h:55
HcalTrigPrimDigiProducer::HFEMB_
bool HFEMB_
Definition: HcalTrigPrimDigiProducer.h:64
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
HcalTrigPrimDigiProducer::tok_tpgTranscoder_
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecord > tok_tpgTranscoder_
Definition: HcalTrigPrimDigiProducer.h:67
HcalTrigPrimDigiProducer::upgrade_
bool upgrade_
Definition: HcalTrigPrimDigiProducer.h:61
eostools.move
def move(src, dest)
Definition: eostools.py:511
HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm
void setPeakFinderAlgorithm(int algo)
Definition: HcalTriggerPrimitiveAlgo.cc:944
HcalElectronicsMap::lookup
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: HcalElectronicsMap.cc:70
HcalTrigPrimDigiProducer::tok_tpgCoder_
edm::ESGetToken< HcalTPGCoder, HcalTPGRecord > tok_tpgCoder_
Definition: HcalTrigPrimDigiProducer.h:66
HcalTrigPrimDigiProducer::tok_hf_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
Definition: HcalTrigPrimDigiProducer.h:47
HcalTrigPrimDigiProducer::tok_lutMetadata_
edm::ESGetToken< HcalLutMetadata, HcalLutMetadataRcd > tok_lutMetadata_
Definition: HcalTrigPrimDigiProducer.h:68
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HcalTriggerPrimitiveAlgo::runFEFormatError
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
Definition: HcalTriggerPrimitiveAlgo.cc:777
mps_fire.result
result
Definition: mps_fire.py:311
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
HcalTrigPrimDigiProducer::overrideDBweightsAndFilterHB_
bool overrideDBweightsAndFilterHB_
Definition: HcalTrigPrimDigiProducer.h:50
edm::InputTag
Definition: InputTag.h:15
HcalTrigPrimDigiCollection
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
Definition: HcalDigiCollections.h:24
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HcalTrigPrimDigiProducer::overrideDBweightsAndFilterHE_
bool overrideDBweightsAndFilterHE_
Definition: HcalTrigPrimDigiProducer.h:49
HcalTopology::lastHBRing
int lastHBRing() const
Definition: HcalTopology.h:92
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14