CMS 3D CMS Logo

HcalTriggerPrimitiveAlgo.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalTriggerPrimitiveAlgo_h
2 #define HcalSimAlgos_HcalTriggerPrimitiveAlgo_h
3 
6 
11 
13 
15 
18 
19 #include <map>
20 #include <vector>
21 
22 class CaloGeometry;
23 class IntegerCaloSamples;
24 
26 public:
28  const std::vector<double>& w,
29  int latency,
30  uint32_t FG_threshold,
31  const std::vector<uint32_t>& FG_HF_thresholds,
32  uint32_t ZS_threshold,
33  int numberOfSamples,
38  uint32_t minSignalThreshold = 0,
39  uint32_t PMT_NoiseThreshold = 0);
41 
42  template <typename... Digis>
43  void run(const HcalTPGCoder* incoder,
44  const HcalTPGCompressor* outcoder,
45  const HcalDbService* conditions,
47  const HcalTrigTowerGeometry* trigTowerGeometry,
48  float rctlsb,
50  const Digis&... digis);
51 
52  template <typename T, typename... Args>
53  void addDigis(const T& collection, const Args&... digis) {
55  addDigis(digis...);
56  };
57 
58  template <typename T>
59  void addDigis(const T& collection) {
60  for (const auto& digi : collection) {
61  addSignal(digi);
62  }
63  };
64 
65  template <typename D>
67  for (auto i = collection.begin(); i != collection.end(); ++i) {
68  D digi(*i);
69  addSignal(digi);
70  }
71  };
72 
74  void runFEFormatError(const FEDRawDataCollection* rawraw,
75  const HcalElectronicsMap* emap,
77  void setPeakFinderAlgorithm(int algo);
78  void setNCTScaleShift(int);
79  void setRCTScaleShift(int);
80 
81  void setUpgradeFlags(bool hb, bool he, bool hf);
82  void overrideParameters(const edm::ParameterSet& ps);
83 
84 private:
86  void addSignal(const HBHEDataFrame& frame);
87  void addSignal(const HFDataFrame& frame);
88  void addSignal(const QIE10DataFrame& frame);
89  void addSignal(const QIE11DataFrame& frame);
91  void addFG(const HcalTrigTowerDetId& id, std::vector<bool>& msb);
92  void addUpgradeFG(const HcalTrigTowerDetId& id, int depth, const std::vector<std::bitset<2>>& bits);
93 
94  bool passTDC(const QIE10DataFrame& digi, int ts) const;
95  bool validUpgradeFG(const HcalTrigTowerDetId& id, int depth) const;
96  bool validChannel(const QIE10DataFrame& digi, int ts) const;
97  bool needLegacyFG(const HcalTrigTowerDetId& id) const;
98  bool needUpgradeID(const HcalTrigTowerDetId& id, int depth) const;
99 
102  // 2017 and later: QIE11
104  // Version 0: RCT
105  void analyzeHF(IntegerCaloSamples& samples, HcalTriggerPrimitiveDigi& result, const int hf_lumi_shift);
106  // Version 1: 1x1
107  void analyzeHF2016(const IntegerCaloSamples& SAMPLES,
109  const int HF_LUMI_SHIFT,
110  const HcalFeatureBit* HCALFEM);
111  // With dual anode readout
112  void analyzeHFQIE10(const IntegerCaloSamples& SAMPLES,
114  const int HF_LUMI_SHIFT,
115  const HcalFeatureBit* HCALFEM);
116 
117  // Member initialized by constructor
121  double theThreshold;
122  bool peakfind_;
123  std::vector<double> weights_;
124  int latency_;
125  uint32_t FG_threshold_;
126  std::vector<uint32_t> FG_HF_thresholds_;
127  uint32_t ZS_threshold_;
138 
139  // Algo1: isPeak = TS[i-1] < TS[i] && TS[i] >= TS[i+1]
140  // Algo2: isPeak = TSS[i-1] < TSS[i] && TSS[i] >= TSS[i+1],
141  // TSS[i] = TS[i] + TS[i+1]
142  // Default: Algo2
144 
145  // Member not initialzed
146  //std::vector<HcalTrigTowerDetId> towerIds(const HcalDetId & id) const;
147 
149 
150  typedef std::map<HcalTrigTowerDetId, IntegerCaloSamples> SumMap;
152 
153  struct HFDetails {
158  };
159  typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, HFDetails>> HFDetailMap;
161 
165  std::vector<bool> validity;
166  std::vector<std::bitset<2>> fgbits;
167  std::vector<bool> passTDC;
168  };
169  typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, std::array<HFUpgradeDetails, 4>>> HFUpgradeDetailMap;
171 
172  typedef std::vector<IntegerCaloSamples> SumFGContainer;
173  typedef std::map<HcalTrigTowerDetId, SumFGContainer> TowerMapFGSum;
175 
176  // ==============================
177  // = HF Veto
178  // ==============================
179  // Sum = Long + Short;" // intermediate calculation.
180  // if ((Short < MinSignalThresholdET OR Long < MinSignalThresholdET)
181  // AND Sum > PMTNoiseThresholdET) VetoedSum = 0;
182  // else VetoedSum = Sum;
183  // ==============================
184  // Map from FG id to veto booleans
186  typedef std::map<uint32_t, std::vector<bool>> TowerMapVeto;
188 
189  typedef std::map<HcalTrigTowerDetId, std::vector<bool>> FGbitMap;
191 
192  typedef std::vector<HcalFinegrainBit::Tower> FGUpgradeContainer;
193  typedef std::map<HcalTrigTowerDetId, FGUpgradeContainer> FGUpgradeMap;
195 
196  bool upgrade_hb_ = false;
197  bool upgrade_he_ = false;
198  bool upgrade_hf_ = false;
199 
201 
202  bool override_adc_hf_ = false;
204  bool override_tdc_hf_ = false;
205  unsigned long long override_tdc_hf_value_;
206 
207  // HE constants
208  static const int HBHE_OVERLAP_TOWER = 16;
209  static const int FIRST_DEPTH7_TOWER = 26;
210  static const int LAST_FINEGRAIN_DEPTH = 6;
211  static const int LAST_FINEGRAIN_TOWER = 28;
212 
213  // Fine-grain in HF ignores tower 29, and starts with 30
214  static const int FIRST_FINEGRAIN_TOWER = 30;
215 
219  // Consider CaloTPGTranscoderULUT.h for values
220  static const int QIE10_MAX_LINEARIZATION_ET = 0x7FF;
221  static const int QIE11_MAX_LINEARIZATION_ET = 0x7FF;
222 };
223 
224 template <typename... Digis>
226  const HcalTPGCompressor* outcoder,
227  const HcalDbService* conditions,
229  const HcalTrigTowerGeometry* trigTowerGeometry,
230  float rctlsb,
231  const HcalFeatureBit* LongvrsShortCut,
232  const Digis&... digis) {
233  theTrigTowerGeometry = trigTowerGeometry;
234 
235  incoder_ = dynamic_cast<const HcaluLUTTPGCoder*>(incoder);
236  outcoder_ = outcoder;
237  conditions_ = conditions;
238 
239  theSumMap.clear();
240  theTowerMapFGSum.clear();
241  HF_Veto.clear();
242  fgMap_.clear();
243  fgUpgradeMap_.clear();
244  theHFDetailMap.clear();
245  theHFUpgradeDetailMap.clear();
246 
247  // Add all digi collections
248  addDigis(digis...);
249 
250  // Prepare the fine-grain calculation algorithm for HB/HE
251  int version = 0;
254  if (override_parameters_.exists("FGVersionHBHE"))
255  version = override_parameters_.getParameter<uint32_t>("FGVersionHBHE");
256  HcalFinegrainBit fg_algo(version);
257 
258  // VME produces additional bits on the front used by lumi but not the
259  // trigger, this shift corrects those out by right shifting over them.
260  for (auto& item : theSumMap) {
261  result.push_back(HcalTriggerPrimitiveDigi(item.first));
262  HcalTrigTowerDetId detId(item.second.id());
263  if (detId.ietaAbs() >= theTrigTowerGeometry->firstHFTower(detId.version())) {
264  if (detId.version() == 0) {
265  analyzeHF(item.second, result.back(), RCTScaleShift);
266  } else if (detId.version() == 1) {
267  if (upgrade_hf_)
269  else
271  } else {
272  // Things are going to go poorly
273  }
274  } else {
275  // Determine which energy reconstruction path to take based on the
276  // fine-grain availability:
277  // * QIE8 TP add entries into fgMap_
278  // * QIE11 TP add entries into fgUpgradeMap_
279  // (not for tower 16 unless HB is upgraded, too)
280  if (fgMap_.find(item.first) != fgMap_.end()) {
281  analyze(item.second, result.back());
282  } else if (fgUpgradeMap_.find(item.first) != fgUpgradeMap_.end()) {
283  analyzeQIE11(item.second, result.back(), fg_algo);
284  }
285  }
286  }
287 
288  // Free up some memory
289  theSumMap.clear();
290  theTowerMapFGSum.clear();
291  HF_Veto.clear();
292  fgMap_.clear();
293  fgUpgradeMap_.clear();
294  theHFDetailMap.clear();
295  theHFUpgradeDetailMap.clear();
296 
297  return;
298 }
299 
300 #endif
HcalElectronicsMap.h
HcalTriggerPrimitiveAlgo::numberOfSamplesHF_
int numberOfSamplesHF_
Definition: HcalTriggerPrimitiveAlgo.h:131
hcaltpdigi_cfi.numberOfSamplesHF
numberOfSamplesHF
Definition: hcaltpdigi_cfi.py:25
HcalTriggerPrimitiveAlgo::addFG
void addFG(const HcalTrigTowerDetId &id, std::vector< bool > &msb)
Definition: HcalTriggerPrimitiveAlgo.cc:762
mps_fire.i
i
Definition: mps_fire.py:355
HcalTriggerPrimitiveAlgo::HFUpgradeDetails
Definition: HcalTriggerPrimitiveAlgo.h:162
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::fgbits
std::vector< std::bitset< 2 > > fgbits
Definition: HcalTriggerPrimitiveAlgo.h:166
config_102169_raw_cff.latency
latency
Definition: config_102169_raw_cff.py:29
HcalTriggerPrimitiveAlgo::overrideParameters
void overrideParameters(const edm::ParameterSet &ps)
Definition: HcalTriggerPrimitiveAlgo.cc:75
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const T &collection)
Definition: HcalTriggerPrimitiveAlgo.h:59
HcalTriggerPrimitiveAlgo::HFDetails::LongDigi
HFDataFrame LongDigi
Definition: HcalTriggerPrimitiveAlgo.h:157
HcalTriggerPrimitiveAlgo::override_adc_hf_value_
uint32_t override_adc_hf_value_
Definition: HcalTriggerPrimitiveAlgo.h:203
HcalTriggerPrimitiveAlgo::HF_Veto
TowerMapVeto HF_Veto
Definition: HcalTriggerPrimitiveAlgo.h:187
HcaluLUTTPGCoder::QIE8_LUT_BITMASK
static const int QIE8_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:76
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:225
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
HcaluLUTTPGCoder::QIE10_LUT_BITMASK
static const int QIE10_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:77
HcalTriggerPrimitiveAlgo::setUpgradeFlags
void setUpgradeFlags(bool hb, bool he, bool hf)
Definition: HcalTriggerPrimitiveAlgo.cc:69
HcalTriggerPrimitiveAlgo::upgrade_he_
bool upgrade_he_
Definition: HcalTriggerPrimitiveAlgo.h:197
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const T &collection, const Args &... digis)
Definition: HcalTriggerPrimitiveAlgo.h:53
HcalTriggerPrimitiveAlgo::FIRST_FINEGRAIN_TOWER
static const int FIRST_FINEGRAIN_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:214
HcalTriggerPrimitiveAlgo::addUpgradeFG
void addUpgradeFG(const HcalTrigTowerDetId &id, int depth, const std::vector< std::bitset< 2 >> &bits)
Definition: HcalTriggerPrimitiveAlgo.cc:801
HcalTriggerPrimitiveAlgo::ZS_threshold_
uint32_t ZS_threshold_
Definition: HcalTriggerPrimitiveAlgo.h:127
HcalTriggerPrimitiveAlgo::numberOfPresamples_
int numberOfPresamples_
Definition: HcalTriggerPrimitiveAlgo.h:130
HcalTriggerPrimitiveAlgo::conditions_
const HcalDbService * conditions_
Definition: HcalTriggerPrimitiveAlgo.h:120
edm::SortedCollection
Definition: SortedCollection.h:49
HcalTriggerPrimitiveAlgo::FGUpgradeContainer
std::vector< HcalFinegrainBit::Tower > FGUpgradeContainer
Definition: HcalTriggerPrimitiveAlgo.h:192
HcalTriggerPrimitiveAlgo::setNCTScaleShift
void setNCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:841
HcalTriggerPrimitiveAlgo::TowerMapFGSum
std::map< HcalTrigTowerDetId, SumFGContainer > TowerMapFGSum
Definition: HcalTriggerPrimitiveAlgo.h:173
hcaltpdigi_cfi.numberOfPresamples
numberOfPresamples
Definition: hcaltpdigi_cfi.py:24
HcalTPGCompressor.h
HcalTriggerPrimitiveAlgo::TowerMapVeto
std::map< uint32_t, std::vector< bool > > TowerMapVeto
Definition: HcalTriggerPrimitiveAlgo.h:186
HcalTriggerPrimitiveAlgo::override_tdc_hf_value_
unsigned long long override_tdc_hf_value_
Definition: HcalTriggerPrimitiveAlgo.h:205
HcalTriggerPrimitiveAlgo::QIE11_MAX_LINEARIZATION_ET
static const int QIE11_MAX_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:221
IntegerCaloSamples
Definition: IntegerCaloSamples.h:16
HcalTPGCompressor
Definition: HcalTPGCompressor.h:12
HcalTPGCoder
Definition: HcalTPGCoder.h:26
EgammaValidation_cff.samples
samples
Definition: EgammaValidation_cff.py:19
HcalFinegrainBit
Definition: HcalFinegrainBit.h:7
HcalTriggerPrimitiveAlgo::HFDetails::long_fiber
IntegerCaloSamples long_fiber
Definition: HcalTriggerPrimitiveAlgo.h:154
HcalTriggerPrimitiveAlgo::setRCTScaleShift
void setRCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:843
HcalTriggerPrimitiveAlgo::HFDetails
Definition: HcalTriggerPrimitiveAlgo.h:153
cmsdt::algo
algo
Definition: constants.h:164
HcaluLUTTPGCoder.h
HcalTriggerPrimitiveAlgo::QIE10_MAX_LINEARIZATION_ET
static const int QIE10_MAX_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:220
CaloGeometry
Definition: CaloGeometry.h:21
HcalTPParameters::getFGVersionHBHE
int getFGVersionHBHE() const
get FineGrain Algorithm Version for HBHE
Definition: HcalTPParameters.h:19
HcalFinegrainBit.h
HcalTriggerPrimitiveAlgo::LAST_FINEGRAIN_TOWER
static const int LAST_FINEGRAIN_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:211
HcalTriggerPrimitiveAlgo::passTDC
bool passTDC(const QIE10DataFrame &digi, int ts) const
Definition: HcalTriggerPrimitiveAlgo.cc:553
photonIsolationHIProducer_cfi.hf
hf
Definition: photonIsolationHIProducer_cfi.py:9
HcalTriggerPrimitiveAlgo::addSignal
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
Definition: HcalTriggerPrimitiveAlgo.cc:88
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::digi
QIE10DataFrame digi
Definition: HcalTriggerPrimitiveAlgo.h:164
HcalDigiCollections.h
w
const double w
Definition: UKUtility.cc:23
HcalTriggerPrimitiveAlgo::FG_threshold_
uint32_t FG_threshold_
Definition: HcalTriggerPrimitiveAlgo.h:125
HcalTriggerPrimitiveAlgo::QIE10_LINEARIZATION_ET
static const int QIE10_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:217
hcal_dqm_sourceclient-live_cfg.FG_threshold
FG_threshold
Definition: hcal_dqm_sourceclient-live_cfg.py:104
HcalTriggerPrimitiveAlgo::fgUpgradeMap_
FGUpgradeMap fgUpgradeMap_
Definition: HcalTriggerPrimitiveAlgo.h:194
HcalTriggerPrimitiveAlgo::runZS
void runZS(HcalTrigPrimDigiCollection &tp)
Definition: HcalTriggerPrimitiveAlgo.cc:690
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const HcalDataFrameContainer< D > &collection)
Definition: HcalTriggerPrimitiveAlgo.h:66
HcalFeatureHFEMBit.h
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::passTDC
std::vector< bool > passTDC
Definition: HcalTriggerPrimitiveAlgo.h:167
HcalDbService::getHcalTPParameters
const HcalTPParameters * getHcalTPParameters() const
Definition: HcalDbService.cc:412
HcalTriggerPrimitiveAlgo::~HcalTriggerPrimitiveAlgo
~HcalTriggerPrimitiveAlgo()
Definition: HcalTriggerPrimitiveAlgo.cc:67
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
HcalTriggerPrimitiveAlgo::validUpgradeFG
bool validUpgradeFG(const HcalTrigTowerDetId &id, int depth) const
Definition: HcalTriggerPrimitiveAlgo.cc:772
HcalTriggerPrimitiveAlgo::override_parameters_
edm::ParameterSet override_parameters_
Definition: HcalTriggerPrimitiveAlgo.h:200
HcalTrigTowerDetId.h
HcalTriggerPrimitiveAlgo::minSignalThreshold_
uint32_t minSignalThreshold_
Definition: HcalTriggerPrimitiveAlgo.h:134
HcalTriggerPrimitiveAlgo::HBHE_OVERLAP_TOWER
static const int HBHE_OVERLAP_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:208
HBHEDataFrame
Definition: HBHEDataFrame.h:14
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:674
HcalTriggerPrimitiveAlgo::PMT_NoiseThreshold_
uint32_t PMT_NoiseThreshold_
Definition: HcalTriggerPrimitiveAlgo.h:135
HcalTriggerPrimitiveDigi
Definition: HcalTriggerPrimitiveDigi.h:13
edm::ParameterSet
Definition: ParameterSet.h:36
HcalTriggerPrimitiveAlgo::theHFUpgradeDetailMap
HFUpgradeDetailMap theHFUpgradeDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:170
HcalTriggerPrimitiveAlgo::theTrigTowerGeometry
const HcalTrigTowerGeometry * theTrigTowerGeometry
Definition: HcalTriggerPrimitiveAlgo.h:148
hcal_dqm_sourceclient-live_cfg.ZS_threshold
ZS_threshold
Definition: hcal_dqm_sourceclient-live_cfg.py:113
HcalTriggerPrimitiveAlgo::theSumMap
SumMap theSumMap
Definition: HcalTriggerPrimitiveAlgo.h:151
HcalTriggerPrimitiveAlgo::peakfind_
bool peakfind_
Definition: HcalTriggerPrimitiveAlgo.h:122
HcalTriggerPrimitiveAlgo::HcalTriggerPrimitiveAlgo
HcalTriggerPrimitiveAlgo(bool pf, const std::vector< double > &w, int latency, uint32_t FG_threshold, const std::vector< uint32_t > &FG_HF_thresholds, uint32_t ZS_threshold, int numberOfSamples, int numberOfPresamples, int numberOfSamplesHF, int numberOfPresamplesHF, bool useTDCInMinBiasBits, uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0)
Definition: HcalTriggerPrimitiveAlgo.cc:23
HcaluLUTTPGCoder
Definition: HcaluLUTTPGCoder.h:32
hcaltpdigi_cff.FG_HF_thresholds
FG_HF_thresholds
Definition: hcaltpdigi_cff.py:20
HcalTriggerPrimitiveAlgo::analyzeHF
void analyzeHF(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const int hf_lumi_shift)
Definition: HcalTriggerPrimitiveAlgo.cc:439
HcalTriggerPrimitiveAlgo::override_adc_hf_
bool override_adc_hf_
Definition: HcalTriggerPrimitiveAlgo.h:202
HFDataFrame
Definition: HFDataFrame.h:14
HcalTrigTowerGeometry::firstHFTower
int firstHFTower(int version) const
Definition: HcalTrigTowerGeometry.h:18
HcalTriggerPrimitiveAlgo::analyzeHFQIE10
void analyzeHFQIE10(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
Definition: HcalTriggerPrimitiveAlgo.cc:581
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
FEDRawDataCollection.h
HcalTriggerPrimitiveAlgo::needLegacyFG
bool needLegacyFG(const HcalTrigTowerDetId &id) const
Definition: HcalTriggerPrimitiveAlgo.cc:782
HcalTriggerPrimitiveAlgo::needUpgradeID
bool needUpgradeID(const HcalTrigTowerDetId &id, int depth) const
Definition: HcalTriggerPrimitiveAlgo.cc:791
HcalFeatureBit
Definition: HcalFeatureBit.h:8
HcalTriggerPrimitiveAlgo::FIRST_DEPTH7_TOWER
static const int FIRST_DEPTH7_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:209
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
HcalTrigTowerGeometry.h
HcalTriggerPrimitiveAlgo::theHFDetailMap
HFDetailMap theHFDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:160
HcalTriggerPrimitiveAlgo::fgMap_
FGbitMap fgMap_
Definition: HcalTriggerPrimitiveAlgo.h:190
HcalTrigTowerGeometry
Definition: HcalTrigTowerGeometry.h:10
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::samples
IntegerCaloSamples samples
Definition: HcalTriggerPrimitiveAlgo.h:163
HcalTriggerPrimitiveAlgo::validChannel
bool validChannel(const QIE10DataFrame &digi, int ts) const
Definition: HcalTriggerPrimitiveAlgo.cc:569
HcalTriggerPrimitiveAlgo::NCTScaleShift
int NCTScaleShift
Definition: HcalTriggerPrimitiveAlgo.h:136
HcalTriggerPrimitiveAlgo::RCTScaleShift
int RCTScaleShift
Definition: HcalTriggerPrimitiveAlgo.h:137
hcalSimParameters_cfi.hb
hb
Definition: hcalSimParameters_cfi.py:57
HcalTriggerPrimitiveAlgo::theThreshold
double theThreshold
Definition: HcalTriggerPrimitiveAlgo.h:121
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
HcalTriggerPrimitiveAlgo::LAST_FINEGRAIN_DEPTH
static const int LAST_FINEGRAIN_DEPTH
Definition: HcalTriggerPrimitiveAlgo.h:210
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HcalTriggerPrimitiveAlgo::numberOfPresamplesHF_
int numberOfPresamplesHF_
Definition: HcalTriggerPrimitiveAlgo.h:132
HcalTriggerPrimitiveAlgo::upgrade_hf_
bool upgrade_hf_
Definition: HcalTriggerPrimitiveAlgo.h:198
bits
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Definition: EventSelector-behavior.doc:35
HcaluLUTTPGCoder::QIE11_LUT_BITMASK
static const int QIE11_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:78
HcalTriggerPrimitiveAlgo::analyzeQIE11
void analyzeQIE11(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const HcalFinegrainBit &fg_algo)
Definition: HcalTriggerPrimitiveAlgo.cc:369
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
HcalDbService
Definition: HcalDbService.h:26
HcalTriggerPrimitiveAlgo::peak_finder_algorithm_
int peak_finder_algorithm_
Definition: HcalTriggerPrimitiveAlgo.h:143
HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm
void setPeakFinderAlgorithm(int algo)
Definition: HcalTriggerPrimitiveAlgo.cc:835
QIE10DataFrame
Definition: QIE10DataFrame.h:11
hcalSimParameters_cfi.he
he
Definition: hcalSimParameters_cfi.py:75
packedPFCandidateRefMixer_cfi.pf
pf
Definition: packedPFCandidateRefMixer_cfi.py:4
HcalTriggerPrimitiveAlgo::HFDetailMap
std::map< HcalTrigTowerDetId, std::map< uint32_t, HFDetails > > HFDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:159
T
long double T
Definition: Basic3DVectorLD.h:48
amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12
QIE11DataFrame
Definition: QIE11DataFrame.h:11
HcalTriggerPrimitiveAlgo::outcoder_
const HcalTPGCompressor * outcoder_
Definition: HcalTriggerPrimitiveAlgo.h:119
HcalTriggerPrimitiveAlgo::FGbitMap
std::map< HcalTrigTowerDetId, std::vector< bool > > FGbitMap
Definition: HcalTriggerPrimitiveAlgo.h:189
HcalTriggerPrimitiveAlgo::HFDetails::ShortDigi
HFDataFrame ShortDigi
Definition: HcalTriggerPrimitiveAlgo.h:156
HcalTriggerPrimitiveAlgo::ZS_threshold_I_
int ZS_threshold_I_
Definition: HcalTriggerPrimitiveAlgo.h:128
HcalTriggerPrimitiveAlgo::latency_
int latency_
Definition: HcalTriggerPrimitiveAlgo.h:124
HcalTriggerPrimitiveAlgo::FGUpgradeMap
std::map< HcalTrigTowerDetId, FGUpgradeContainer > FGUpgradeMap
Definition: HcalTriggerPrimitiveAlgo.h:193
HcalTriggerPrimitiveAlgo::HFDetails::short_fiber
IntegerCaloSamples short_fiber
Definition: HcalTriggerPrimitiveAlgo.h:155
HcalTriggerPrimitiveAlgo::override_tdc_hf_
bool override_tdc_hf_
Definition: HcalTriggerPrimitiveAlgo.h:204
HcalTriggerPrimitiveAlgo
Definition: HcalTriggerPrimitiveAlgo.h:25
hcaltpdigi_cfi.numberOfPresamplesHF
numberOfPresamplesHF
Definition: hcaltpdigi_cfi.py:26
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
HcalTriggerPrimitiveAlgo::runFEFormatError
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
Definition: HcalTriggerPrimitiveAlgo.cc:706
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::validity
std::vector< bool > validity
Definition: HcalTriggerPrimitiveAlgo.h:165
hcaltpdigi_cfi.useTDCInMinBiasBits
useTDCInMinBiasBits
Definition: hcaltpdigi_cfi.py:27
HcalDbService.h
HcalTriggerPrimitiveAlgo::analyze
void analyze(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result)
adds the actual digis
Definition: HcalTriggerPrimitiveAlgo.cc:287
mps_fire.result
result
Definition: mps_fire.py:303
HcalTriggerPrimitiveAlgo::SumMap
std::map< HcalTrigTowerDetId, IntegerCaloSamples > SumMap
Definition: HcalTriggerPrimitiveAlgo.h:150
HcalTriggerPrimitiveAlgo::theTowerMapFGSum
TowerMapFGSum theTowerMapFGSum
Definition: HcalTriggerPrimitiveAlgo.h:174
HcalTriggerPrimitiveAlgo::useTDCInMinBiasBits_
bool useTDCInMinBiasBits_
Definition: HcalTriggerPrimitiveAlgo.h:133
HcalTriggerPrimitiveAlgo::upgrade_hb_
bool upgrade_hb_
Definition: HcalTriggerPrimitiveAlgo.h:196
HcalTriggerPrimitiveAlgo::FG_HF_thresholds_
std::vector< uint32_t > FG_HF_thresholds_
Definition: HcalTriggerPrimitiveAlgo.h:126
HcalTriggerPrimitiveAlgo::numberOfSamples_
int numberOfSamples_
Definition: HcalTriggerPrimitiveAlgo.h:129
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
HcalTriggerPrimitiveAlgo::analyzeHF2016
void analyzeHF2016(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
Definition: HcalTriggerPrimitiveAlgo.cc:493
HcalTriggerPrimitiveAlgo::SumFGContainer
std::vector< IntegerCaloSamples > SumFGContainer
Definition: HcalTriggerPrimitiveAlgo.h:172
numberOfSamples
Definition: TotemSampicFrame.h:53
HcalTriggerPrimitiveAlgo::QIE11_LINEARIZATION_ET
static const int QIE11_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:218
HcalTriggerPrimitiveAlgo::LongvrsShortCut
HcalFeatureBit * LongvrsShortCut
Definition: HcalTriggerPrimitiveAlgo.h:185
HcalTriggerPrimitiveAlgo::QIE8_LINEARIZATION_ET
static const int QIE8_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:216
HcalTriggerPrimitiveAlgo::HFUpgradeDetailMap
std::map< HcalTrigTowerDetId, std::map< uint32_t, std::array< HFUpgradeDetails, 4 > > > HFUpgradeDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:169
HcalTriggerPrimitiveAlgo::weights_
std::vector< double > weights_
Definition: HcalTriggerPrimitiveAlgo.h:123
HcalTriggerPrimitiveAlgo::incoder_
const HcaluLUTTPGCoder * incoder_
Definition: HcalTriggerPrimitiveAlgo.h:118
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14