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,
40  uint32_t minSignalThreshold = 0,
41  uint32_t PMT_NoiseThreshold = 0);
43 
44  template <typename... Digis>
45  void run(const HcalTPGCoder* incoder,
46  const HcalTPGCompressor* outcoder,
49  const HcalTrigTowerGeometry* trigTowerGeometry,
50  float rctlsb,
52  const Digis&... digis);
53 
54  template <typename T, typename... Args>
55  void addDigis(const T& collection, const Args&... digis) {
57  addDigis(digis...);
58  };
59 
60  template <typename T>
61  void addDigis(const T& collection) {
62  for (const auto& digi : collection) {
63  addSignal(digi);
64  }
65  };
66 
67  template <typename D>
69  for (auto i = collection.begin(); i != collection.end(); ++i) {
70  D digi(*i);
71  addSignal(digi);
72  }
73  };
74 
76  void runFEFormatError(const FEDRawDataCollection* rawraw,
77  const HcalElectronicsMap* emap,
79  void setPeakFinderAlgorithm(int algo);
81  void setWeightQIE11(int aieta, double weight);
82  void setNCTScaleShift(int);
83  void setRCTScaleShift(int);
84 
86 
88 
89  void setUpgradeFlags(bool hb, bool he, bool hf);
90  void overrideParameters(const edm::ParameterSet& ps);
91 
92 private:
94  void addSignal(const HBHEDataFrame& frame);
95  void addSignal(const HFDataFrame& frame);
96  void addSignal(const QIE10DataFrame& frame);
97  void addSignal(const QIE11DataFrame& frame);
99  void addFG(const HcalTrigTowerDetId& id, std::vector<bool>& msb);
100  void addUpgradeFG(const HcalTrigTowerDetId& id, int depth, const std::vector<std::bitset<2>>& bits);
101 
102  bool passTDC(const QIE10DataFrame& digi, int ts) const;
103  bool validUpgradeFG(const HcalTrigTowerDetId& id, int depth) const;
104  bool validChannel(const QIE10DataFrame& digi, int ts) const;
105  bool needLegacyFG(const HcalTrigTowerDetId& id) const;
106  bool needUpgradeID(const HcalTrigTowerDetId& id, int depth) const;
107 
110  // 2017 and later: QIE11
112  // Version 0: RCT
113  void analyzeHF(IntegerCaloSamples& samples, HcalTriggerPrimitiveDigi& result, const int hf_lumi_shift);
114  // Version 1: 1x1
115  void analyzeHF2016(const IntegerCaloSamples& SAMPLES,
117  const int HF_LUMI_SHIFT,
118  const HcalFeatureBit* HCALFEM);
119  // With dual anode readout
120  void analyzeHFQIE10(const IntegerCaloSamples& SAMPLES,
122  const int HF_LUMI_SHIFT,
123  const HcalFeatureBit* HCALFEM);
124 
125  // Member initialized by constructor
129  double theThreshold;
130  bool peakfind_;
131  std::vector<double> weights_;
132  std::array<std::array<double, 2>, 29> weightsQIE11_;
133  int latency_;
134  uint32_t FG_threshold_;
135  std::vector<uint32_t> FG_HF_thresholds_;
136  uint32_t ZS_threshold_;
149 
150  // Algo1: isPeak = TS[i-1] < TS[i] && TS[i] >= TS[i+1]
151  // Algo2: isPeak = TSS[i-1] < TSS[i] && TSS[i] >= TSS[i+1],
152  // TSS[i] = TS[i] + TS[i+1]
153  // Default: Algo2
155 
156  // Member not initialzed
157  //std::vector<HcalTrigTowerDetId> towerIds(const HcalDetId & id) const;
158 
160 
161  typedef std::map<HcalTrigTowerDetId, IntegerCaloSamples> SumMap;
163 
164  struct HFDetails {
169  };
170  typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, HFDetails>> HFDetailMap;
172 
176  std::vector<bool> validity;
177  std::vector<std::bitset<2>> fgbits;
178  std::vector<bool> passTDC;
179  };
180  typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, std::array<HFUpgradeDetails, 4>>> HFUpgradeDetailMap;
182 
183  typedef std::vector<IntegerCaloSamples> SumFGContainer;
184  typedef std::map<HcalTrigTowerDetId, SumFGContainer> TowerMapFGSum;
186 
187  // ==============================
188  // = HF Veto
189  // ==============================
190  // Sum = Long + Short;" // intermediate calculation.
191  // if ((Short < MinSignalThresholdET OR Long < MinSignalThresholdET)
192  // AND Sum > PMTNoiseThresholdET) VetoedSum = 0;
193  // else VetoedSum = Sum;
194  // ==============================
195  // Map from FG id to veto booleans
197  typedef std::map<uint32_t, std::vector<bool>> TowerMapVeto;
199 
200  typedef std::map<HcalTrigTowerDetId, std::vector<bool>> FGbitMap;
202 
203  typedef std::vector<HcalFinegrainBit::Tower> FGUpgradeContainer;
204  typedef std::map<HcalTrigTowerDetId, FGUpgradeContainer> FGUpgradeMap;
206 
207  bool upgrade_hb_ = false;
208  bool upgrade_he_ = false;
209  bool upgrade_hf_ = false;
210 
212 
213  bool override_adc_hf_ = false;
215  bool override_tdc_hf_ = false;
216  unsigned long long override_tdc_hf_value_;
217 
218  // HE constants
219  static const int HBHE_OVERLAP_TOWER = 16;
220  static const int FIRST_DEPTH7_TOWER = 26;
221  static const int LAST_FINEGRAIN_DEPTH = 6;
222  static const int LAST_FINEGRAIN_TOWER = 28;
223 
224  // Fine-grain in HF ignores tower 29, and starts with 30
225  static const int FIRST_FINEGRAIN_TOWER = 30;
226 
230  // Consider CaloTPGTranscoderULUT.h for values
231  static const int QIE10_MAX_LINEARIZATION_ET = 0x7FF;
232  static const int QIE11_MAX_LINEARIZATION_ET = 0x7FF;
233 };
234 
235 template <typename... Digis>
237  const HcalTPGCompressor* outcoder,
238  const HcalDbService* conditions,
240  const HcalTrigTowerGeometry* trigTowerGeometry,
241  float rctlsb,
242  const HcalFeatureBit* LongvrsShortCut,
243  const Digis&... digis) {
244  theTrigTowerGeometry = trigTowerGeometry;
245 
246  incoder_ = dynamic_cast<const HcaluLUTTPGCoder*>(incoder);
247  outcoder_ = outcoder;
249 
250  theSumMap.clear();
251  theTowerMapFGSum.clear();
252  HF_Veto.clear();
253  fgMap_.clear();
254  fgUpgradeMap_.clear();
255  theHFDetailMap.clear();
256  theHFUpgradeDetailMap.clear();
257 
258  // Add all digi collections
259  addDigis(digis...);
260 
261  // Prepare the fine-grain calculation algorithm for HB/HE
262  int version = 0;
265  if (override_parameters_.exists("FGVersionHBHE"))
266  version = override_parameters_.getParameter<uint32_t>("FGVersionHBHE");
267  HcalFinegrainBit fg_algo(version);
268 
269  // VME produces additional bits on the front used by lumi but not the
270  // trigger, this shift corrects those out by right shifting over them.
271  for (auto& item : theSumMap) {
272  result.push_back(HcalTriggerPrimitiveDigi(item.first));
273  HcalTrigTowerDetId detId(item.second.id());
274  if (detId.ietaAbs() >= theTrigTowerGeometry->firstHFTower(detId.version())) {
275  if (detId.version() == 0) {
276  analyzeHF(item.second, result.back(), RCTScaleShift);
277  } else if (detId.version() == 1) {
278  if (upgrade_hf_)
280  else
282  } else {
283  // Things are going to go poorly
284  }
285  } else {
286  // Determine which energy reconstruction path to take based on the
287  // fine-grain availability:
288  // * QIE8 TP add entries into fgMap_
289  // * QIE11 TP add entries into fgUpgradeMap_
290  // (not for tower 16 unless HB is upgraded, too)
291  if (fgMap_.find(item.first) != fgMap_.end()) {
292  analyze(item.second, result.back());
293  } else if (fgUpgradeMap_.find(item.first) != fgUpgradeMap_.end()) {
294  analyzeQIE11(item.second, result.back(), fg_algo);
295  }
296  }
297  }
298 
299  // Free up some memory
300  theSumMap.clear();
301  theTowerMapFGSum.clear();
302  HF_Veto.clear();
303  fgMap_.clear();
304  fgUpgradeMap_.clear();
305  theHFDetailMap.clear();
306  theHFUpgradeDetailMap.clear();
307 
308  return;
309 }
310 
311 #endif
HcalElectronicsMap.h
HcalTriggerPrimitiveAlgo::numberOfSamplesHF_
int numberOfSamplesHF_
Definition: HcalTriggerPrimitiveAlgo.h:142
hcaltpdigi_cfi.numberOfSamplesHF
numberOfSamplesHF
Definition: hcaltpdigi_cfi.py:56
HcalTriggerPrimitiveAlgo::addFG
void addFG(const HcalTrigTowerDetId &id, std::vector< bool > &msb)
Definition: HcalTriggerPrimitiveAlgo.cc:786
mps_fire.i
i
Definition: mps_fire.py:428
HcalTriggerPrimitiveAlgo::HFUpgradeDetails
Definition: HcalTriggerPrimitiveAlgo.h:173
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
HcalTriggerPrimitiveAlgo::weightsQIE11_
std::array< std::array< double, 2 >, 29 > weightsQIE11_
Definition: HcalTriggerPrimitiveAlgo.h:132
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::fgbits
std::vector< std::bitset< 2 > > fgbits
Definition: HcalTriggerPrimitiveAlgo.h:177
config_102169_raw_cff.latency
latency
Definition: config_102169_raw_cff.py:29
HcalTriggerPrimitiveAlgo::overrideParameters
void overrideParameters(const edm::ParameterSet &ps)
Definition: HcalTriggerPrimitiveAlgo.cc:79
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const T &collection)
Definition: HcalTriggerPrimitiveAlgo.h:61
HcalTriggerPrimitiveAlgo::HFDetails::LongDigi
HFDataFrame LongDigi
Definition: HcalTriggerPrimitiveAlgo.h:168
HcalTriggerPrimitiveAlgo::override_adc_hf_value_
uint32_t override_adc_hf_value_
Definition: HcalTriggerPrimitiveAlgo.h:214
HcalTriggerPrimitiveAlgo::HF_Veto
TowerMapVeto HF_Veto
Definition: HcalTriggerPrimitiveAlgo.h:198
HcaluLUTTPGCoder::QIE8_LUT_BITMASK
static const int QIE8_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:86
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:236
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
HcaluLUTTPGCoder::QIE10_LUT_BITMASK
static const int QIE10_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:87
HcalTriggerPrimitiveAlgo::setUpgradeFlags
void setUpgradeFlags(bool hb, bool he, bool hf)
Definition: HcalTriggerPrimitiveAlgo.cc:73
HcalTriggerPrimitiveAlgo::upgrade_he_
bool upgrade_he_
Definition: HcalTriggerPrimitiveAlgo.h:208
HcalTriggerPrimitiveAlgo::setWeightsQIE11
void setWeightsQIE11(const edm::ParameterSet &weightsQIE11)
Definition: HcalTriggerPrimitiveAlgo.cc:859
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const T &collection, const Args &... digis)
Definition: HcalTriggerPrimitiveAlgo.h:55
HcalTriggerPrimitiveAlgo::FIRST_FINEGRAIN_TOWER
static const int FIRST_FINEGRAIN_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:225
HcalTriggerPrimitiveAlgo::addUpgradeFG
void addUpgradeFG(const HcalTrigTowerDetId &id, int depth, const std::vector< std::bitset< 2 >> &bits)
Definition: HcalTriggerPrimitiveAlgo.cc:825
HcalTriggerPrimitiveAlgo::ZS_threshold_
uint32_t ZS_threshold_
Definition: HcalTriggerPrimitiveAlgo.h:136
HcalTriggerPrimitiveAlgo::numberOfPresamples_
int numberOfPresamples_
Definition: HcalTriggerPrimitiveAlgo.h:139
HcalTriggerPrimitiveAlgo::conditions_
const HcalDbService * conditions_
Definition: HcalTriggerPrimitiveAlgo.h:128
edm::SortedCollection
Definition: SortedCollection.h:49
HcalTriggerPrimitiveAlgo::FGUpgradeContainer
std::vector< HcalFinegrainBit::Tower > FGUpgradeContainer
Definition: HcalTriggerPrimitiveAlgo.h:203
HcalTriggerPrimitiveAlgo::setNCTScaleShift
void setNCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:881
HcalTriggerPrimitiveAlgo::TowerMapFGSum
std::map< HcalTrigTowerDetId, SumFGContainer > TowerMapFGSum
Definition: HcalTriggerPrimitiveAlgo.h:184
hcaltpdigi_cfi.numberOfPresamples
numberOfPresamples
Definition: hcaltpdigi_cfi.py:55
HcalTPGCompressor.h
HcalTriggerPrimitiveAlgo::TowerMapVeto
std::map< uint32_t, std::vector< bool > > TowerMapVeto
Definition: HcalTriggerPrimitiveAlgo.h:197
HcalTriggerPrimitiveAlgo::override_tdc_hf_value_
unsigned long long override_tdc_hf_value_
Definition: HcalTriggerPrimitiveAlgo.h:216
HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHEQIE11
void setNumFilterPresamplesHEQIE11(int presamples)
Definition: HcalTriggerPrimitiveAlgo.h:87
HcalTriggerPrimitiveAlgo::QIE11_MAX_LINEARIZATION_ET
static const int QIE11_MAX_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:232
IntegerCaloSamples
Definition: IntegerCaloSamples.h:16
HcalTriggerPrimitiveAlgo::setWeightQIE11
void setWeightQIE11(int aieta, double weight)
Definition: HcalTriggerPrimitiveAlgo.cc:869
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:165
HcalTriggerPrimitiveAlgo::setRCTScaleShift
void setRCTScaleShift(int)
Definition: HcalTriggerPrimitiveAlgo.cc:883
HcalTriggerPrimitiveAlgo::HFDetails
Definition: HcalTriggerPrimitiveAlgo.h:164
cmsdt::algo
algo
Definition: constants.h:165
hcaltpdigi_cfi.weightsQIE11
weightsQIE11
hardware algo
Definition: hcaltpdigi_cfi.py:19
HcaluLUTTPGCoder.h
HcalTriggerPrimitiveAlgo::QIE10_MAX_LINEARIZATION_ET
static const int QIE10_MAX_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:231
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:222
HcalTriggerPrimitiveAlgo::passTDC
bool passTDC(const QIE10DataFrame &digi, int ts) const
Definition: HcalTriggerPrimitiveAlgo.cc:576
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:92
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::digi
QIE10DataFrame digi
Definition: HcalTriggerPrimitiveAlgo.h:175
HcalDigiCollections.h
w
const double w
Definition: UKUtility.cc:23
HcalTriggerPrimitiveAlgo::numberOfFilterPresamplesHEQIE11_
int numberOfFilterPresamplesHEQIE11_
Definition: HcalTriggerPrimitiveAlgo.h:141
HcalTriggerPrimitiveAlgo::FG_threshold_
uint32_t FG_threshold_
Definition: HcalTriggerPrimitiveAlgo.h:134
HcalTriggerPrimitiveAlgo::QIE10_LINEARIZATION_ET
static const int QIE10_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:228
hcal_dqm_sourceclient-live_cfg.FG_threshold
FG_threshold
Definition: hcal_dqm_sourceclient-live_cfg.py:104
hcalTTPDigis_cfi.presamples
presamples
Definition: hcalTTPDigis_cfi.py:9
HcalTriggerPrimitiveAlgo::fgUpgradeMap_
FGUpgradeMap fgUpgradeMap_
Definition: HcalTriggerPrimitiveAlgo.h:205
HcalTriggerPrimitiveAlgo::runZS
void runZS(HcalTrigPrimDigiCollection &tp)
Definition: HcalTriggerPrimitiveAlgo.cc:714
HcalTriggerPrimitiveAlgo::addDigis
void addDigis(const HcalDataFrameContainer< D > &collection)
Definition: HcalTriggerPrimitiveAlgo.h:68
HcalFeatureHFEMBit.h
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::passTDC
std::vector< bool > passTDC
Definition: HcalTriggerPrimitiveAlgo.h:178
HcalDbService::getHcalTPParameters
const HcalTPParameters * getHcalTPParameters() const
Definition: HcalDbService.cc:413
HcalTriggerPrimitiveAlgo::~HcalTriggerPrimitiveAlgo
~HcalTriggerPrimitiveAlgo()
Definition: HcalTriggerPrimitiveAlgo.cc:71
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:796
HcalTriggerPrimitiveAlgo::override_parameters_
edm::ParameterSet override_parameters_
Definition: HcalTriggerPrimitiveAlgo.h:211
HcalTrigTowerDetId.h
HcalTriggerPrimitiveAlgo::numberOfFilterPresamplesHBQIE11_
int numberOfFilterPresamplesHBQIE11_
Definition: HcalTriggerPrimitiveAlgo.h:140
HcalTriggerPrimitiveAlgo::minSignalThreshold_
uint32_t minSignalThreshold_
Definition: HcalTriggerPrimitiveAlgo.h:145
HcalTriggerPrimitiveAlgo::HBHE_OVERLAP_TOWER
static const int HBHE_OVERLAP_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:219
HBHEDataFrame
Definition: HBHEDataFrame.h:14
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
HcalTriggerPrimitiveAlgo::PMT_NoiseThreshold_
uint32_t PMT_NoiseThreshold_
Definition: HcalTriggerPrimitiveAlgo.h:146
HcalTriggerPrimitiveDigi
Definition: HcalTriggerPrimitiveDigi.h:13
edm::ParameterSet
Definition: ParameterSet.h:47
HcalTriggerPrimitiveAlgo::theHFUpgradeDetailMap
HFUpgradeDetailMap theHFUpgradeDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:181
HcalTriggerPrimitiveAlgo::theTrigTowerGeometry
const HcalTrigTowerGeometry * theTrigTowerGeometry
Definition: HcalTriggerPrimitiveAlgo.h:159
hcal_dqm_sourceclient-live_cfg.ZS_threshold
ZS_threshold
Definition: hcal_dqm_sourceclient-live_cfg.py:113
HcalTriggerPrimitiveAlgo::theSumMap
SumMap theSumMap
Definition: HcalTriggerPrimitiveAlgo.h:162
HcalTriggerPrimitiveAlgo::peakfind_
bool peakfind_
Definition: HcalTriggerPrimitiveAlgo.h:130
HcaluLUTTPGCoder
Definition: HcaluLUTTPGCoder.h:32
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 numberOfFilterPresamplesHBQIE11, int numberOfFilterPresamplesHEQIE11, int numberOfSamplesHF, int numberOfPresamplesHF, bool useTDCInMinBiasBits, uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0)
Definition: HcalTriggerPrimitiveAlgo.cc:23
HcalTriggerPrimitiveAlgo::setNumFilterPresamplesHBQIE11
void setNumFilterPresamplesHBQIE11(int presamples)
Definition: HcalTriggerPrimitiveAlgo.h:85
hcaltpdigi_cff.FG_HF_thresholds
FG_HF_thresholds
Definition: hcaltpdigi_cff.py:26
HcalTriggerPrimitiveAlgo::analyzeHF
void analyzeHF(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const int hf_lumi_shift)
Definition: HcalTriggerPrimitiveAlgo.cc:461
HcalTriggerPrimitiveAlgo::override_adc_hf_
bool override_adc_hf_
Definition: HcalTriggerPrimitiveAlgo.h:213
HFDataFrame
Definition: HFDataFrame.h:14
HcalTrigTowerGeometry::firstHFTower
int firstHFTower(int version) const
Definition: HcalTrigTowerGeometry.h:18
hcaltpdigi_cfi.numberOfFilterPresamplesHBQIE11
numberOfFilterPresamplesHBQIE11
Definition: hcaltpdigi_cfi.py:58
HcalTriggerPrimitiveAlgo::analyzeHFQIE10
void analyzeHFQIE10(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
Definition: HcalTriggerPrimitiveAlgo.cc:604
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
FEDRawDataCollection.h
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
HcalTriggerPrimitiveAlgo::needLegacyFG
bool needLegacyFG(const HcalTrigTowerDetId &id) const
Definition: HcalTriggerPrimitiveAlgo.cc:806
HcalTriggerPrimitiveAlgo::needUpgradeID
bool needUpgradeID(const HcalTrigTowerDetId &id, int depth) const
Definition: HcalTriggerPrimitiveAlgo.cc:815
HcalFeatureBit
Definition: HcalFeatureBit.h:8
HcalTriggerPrimitiveAlgo::FIRST_DEPTH7_TOWER
static const int FIRST_DEPTH7_TOWER
Definition: HcalTriggerPrimitiveAlgo.h:220
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
HcalTrigTowerGeometry.h
HcalTriggerPrimitiveAlgo::theHFDetailMap
HFDetailMap theHFDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:171
HcalTriggerPrimitiveAlgo::fgMap_
FGbitMap fgMap_
Definition: HcalTriggerPrimitiveAlgo.h:201
hcaltpdigi_cfi.numberOfFilterPresamplesHEQIE11
numberOfFilterPresamplesHEQIE11
Definition: hcaltpdigi_cfi.py:59
HcalTrigTowerGeometry
Definition: HcalTrigTowerGeometry.h:10
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::samples
IntegerCaloSamples samples
Definition: HcalTriggerPrimitiveAlgo.h:174
HcalTriggerPrimitiveAlgo::validChannel
bool validChannel(const QIE10DataFrame &digi, int ts) const
Definition: HcalTriggerPrimitiveAlgo.cc:592
HcalTriggerPrimitiveAlgo::NCTScaleShift
int NCTScaleShift
Definition: HcalTriggerPrimitiveAlgo.h:147
HcalTriggerPrimitiveAlgo::RCTScaleShift
int RCTScaleShift
Definition: HcalTriggerPrimitiveAlgo.h:148
hcalSimParameters_cfi.hb
hb
Definition: hcalSimParameters_cfi.py:60
HcalTriggerPrimitiveAlgo::theThreshold
double theThreshold
Definition: HcalTriggerPrimitiveAlgo.h:129
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
HcalTriggerPrimitiveAlgo::LAST_FINEGRAIN_DEPTH
static const int LAST_FINEGRAIN_DEPTH
Definition: HcalTriggerPrimitiveAlgo.h:221
HcalTriggerPrimitiveAlgo::numberOfPresamplesHF_
int numberOfPresamplesHF_
Definition: HcalTriggerPrimitiveAlgo.h:143
HcalTriggerPrimitiveAlgo::upgrade_hf_
bool upgrade_hf_
Definition: HcalTriggerPrimitiveAlgo.h:209
HcaluLUTTPGCoder::QIE11_LUT_BITMASK
static const int QIE11_LUT_BITMASK
Definition: HcaluLUTTPGCoder.h:88
HcalTriggerPrimitiveAlgo::analyzeQIE11
void analyzeQIE11(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const HcalFinegrainBit &fg_algo)
Definition: HcalTriggerPrimitiveAlgo.cc:373
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
HcalDbService
Definition: HcalDbService.h:26
submitPVValidationJobs.conditions
list conditions
Definition: submitPVValidationJobs.py:674
HcalTriggerPrimitiveAlgo::peak_finder_algorithm_
int peak_finder_algorithm_
Definition: HcalTriggerPrimitiveAlgo.h:154
HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm
void setPeakFinderAlgorithm(int algo)
Definition: HcalTriggerPrimitiveAlgo.cc:875
QIE10DataFrame
Definition: QIE10DataFrame.h:11
hcalSimParameters_cfi.he
he
Definition: hcalSimParameters_cfi.py:79
packedPFCandidateRefMixer_cfi.pf
pf
Definition: packedPFCandidateRefMixer_cfi.py:4
HcalTriggerPrimitiveAlgo::HFDetailMap
std::map< HcalTrigTowerDetId, std::map< uint32_t, HFDetails > > HFDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:170
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:127
HcalTriggerPrimitiveAlgo::FGbitMap
std::map< HcalTrigTowerDetId, std::vector< bool > > FGbitMap
Definition: HcalTriggerPrimitiveAlgo.h:200
HcalTriggerPrimitiveAlgo::HFDetails::ShortDigi
HFDataFrame ShortDigi
Definition: HcalTriggerPrimitiveAlgo.h:167
HcalTriggerPrimitiveAlgo::ZS_threshold_I_
int ZS_threshold_I_
Definition: HcalTriggerPrimitiveAlgo.h:137
HcalTriggerPrimitiveAlgo::latency_
int latency_
Definition: HcalTriggerPrimitiveAlgo.h:133
HcalTriggerPrimitiveAlgo::FGUpgradeMap
std::map< HcalTrigTowerDetId, FGUpgradeContainer > FGUpgradeMap
Definition: HcalTriggerPrimitiveAlgo.h:204
HcalTriggerPrimitiveAlgo::HFDetails::short_fiber
IntegerCaloSamples short_fiber
Definition: HcalTriggerPrimitiveAlgo.h:166
HcalTriggerPrimitiveAlgo::override_tdc_hf_
bool override_tdc_hf_
Definition: HcalTriggerPrimitiveAlgo.h:215
HcalTriggerPrimitiveAlgo
Definition: HcalTriggerPrimitiveAlgo.h:25
hcaltpdigi_cfi.numberOfPresamplesHF
numberOfPresamplesHF
Definition: hcaltpdigi_cfi.py:57
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:730
HcalTriggerPrimitiveAlgo::HFUpgradeDetails::validity
std::vector< bool > validity
Definition: HcalTriggerPrimitiveAlgo.h:176
hcaltpdigi_cfi.useTDCInMinBiasBits
useTDCInMinBiasBits
Definition: hcaltpdigi_cfi.py:60
HcalDbService.h
HcalTriggerPrimitiveAlgo::analyze
void analyze(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result)
adds the actual digis
Definition: HcalTriggerPrimitiveAlgo.cc:291
mps_fire.result
result
Definition: mps_fire.py:311
HcalTriggerPrimitiveAlgo::SumMap
std::map< HcalTrigTowerDetId, IntegerCaloSamples > SumMap
Definition: HcalTriggerPrimitiveAlgo.h:161
HcalTriggerPrimitiveAlgo::theTowerMapFGSum
TowerMapFGSum theTowerMapFGSum
Definition: HcalTriggerPrimitiveAlgo.h:185
HcalTriggerPrimitiveAlgo::useTDCInMinBiasBits_
bool useTDCInMinBiasBits_
Definition: HcalTriggerPrimitiveAlgo.h:144
HcalTriggerPrimitiveAlgo::upgrade_hb_
bool upgrade_hb_
Definition: HcalTriggerPrimitiveAlgo.h:207
HcalTriggerPrimitiveAlgo::FG_HF_thresholds_
std::vector< uint32_t > FG_HF_thresholds_
Definition: HcalTriggerPrimitiveAlgo.h:135
HcalTriggerPrimitiveAlgo::numberOfSamples_
int numberOfSamples_
Definition: HcalTriggerPrimitiveAlgo.h:138
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:515
HcalTriggerPrimitiveAlgo::SumFGContainer
std::vector< IntegerCaloSamples > SumFGContainer
Definition: HcalTriggerPrimitiveAlgo.h:183
numberOfSamples
Definition: TotemSampicFrame.h:53
weight
Definition: weight.py:1
HcalTriggerPrimitiveAlgo::QIE11_LINEARIZATION_ET
static const int QIE11_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:229
HcalTriggerPrimitiveAlgo::LongvrsShortCut
HcalFeatureBit * LongvrsShortCut
Definition: HcalTriggerPrimitiveAlgo.h:196
HcalTriggerPrimitiveAlgo::QIE8_LINEARIZATION_ET
static const int QIE8_LINEARIZATION_ET
Definition: HcalTriggerPrimitiveAlgo.h:227
HcalTriggerPrimitiveAlgo::HFUpgradeDetailMap
std::map< HcalTrigTowerDetId, std::map< uint32_t, std::array< HFUpgradeDetails, 4 > > > HFUpgradeDetailMap
Definition: HcalTriggerPrimitiveAlgo.h:180
HcalTriggerPrimitiveAlgo::weights_
std::vector< double > weights_
Definition: HcalTriggerPrimitiveAlgo.h:131
HcalTriggerPrimitiveAlgo::incoder_
const HcaluLUTTPGCoder * incoder_
Definition: HcalTriggerPrimitiveAlgo.h:126
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14