CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
HcalTriggerPrimitiveAlgo Class Reference

#include <HcalTriggerPrimitiveAlgo.h>

Classes

struct  HFDetails
 
struct  HFUpgradeDetails
 

Public Member Functions

template<typename T , typename... Args>
void addDigis (const T &collection, const Args &...digis)
 
template<typename T >
void addDigis (const T &collection)
 
template<typename D >
void addDigis (const HcalDataFrameContainer< D > &collection)
 
 HcalTriggerPrimitiveAlgo (bool pf, const std::vector< double > &w, int latency, uint32_t FG_threshold, uint32_t FG_HF_threshold, uint32_t ZS_threshold, int numberOfSamples, int numberOfPresamples, int numberOfSamplesHF, int numberOfPresamplesHF, uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0)
 
void overrideParameters (const edm::ParameterSet &ps)
 
template<typename... Digis>
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 runFEFormatError (const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
 
void runZS (HcalTrigPrimDigiCollection &tp)
 
void setNCTScaleShift (int)
 
void setPeakFinderAlgorithm (int algo)
 
void setRCTScaleShift (int)
 
void setUpgradeFlags (bool hb, bool he, bool hf)
 
 ~HcalTriggerPrimitiveAlgo ()
 

Private Types

typedef std::map< HcalTrigTowerDetId, std::vector< bool > > FGbitMap
 
typedef std::vector< HcalFinegrainBit::TowerFGUpgradeContainer
 
typedef std::map< HcalTrigTowerDetId, FGUpgradeContainerFGUpgradeMap
 
typedef std::map< HcalTrigTowerDetId, std::map< uint32_t, HFDetails > > HFDetailMap
 
typedef std::map< HcalTrigTowerDetId, std::map< uint32_t, std::array< HFUpgradeDetails, 4 > > > HFUpgradeDetailMap
 
typedef std::vector< IntegerCaloSamplesSumFGContainer
 
typedef std::map< HcalTrigTowerDetId, IntegerCaloSamplesSumMap
 
typedef std::map< HcalTrigTowerDetId, SumFGContainerTowerMapFGSum
 
typedef std::map< uint32_t, std::vector< bool > > TowerMapVeto
 

Private Member Functions

void addFG (const HcalTrigTowerDetId &id, std::vector< bool > &msb)
 
void addSignal (const HBHEDataFrame &frame)
 adds the signal to the map More...
 
void addSignal (const HFDataFrame &frame)
 
void addSignal (const QIE10DataFrame &frame)
 
void addSignal (const QIE11DataFrame &frame)
 
void addSignal (const IntegerCaloSamples &samples)
 
void addUpgradeFG (const HcalTrigTowerDetId &id, int depth, const std::vector< std::bitset< 2 >> &bits)
 
void analyze (IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result)
 adds the actual RecHits More...
 
void analyze2017 (IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const HcalFinegrainBit &fg_algo)
 
void analyzeHF (IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const int hf_lumi_shift)
 
void analyzeHF2016 (const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
 
void analyzeHF2017 (const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
 
bool validChannel (const QIE10DataFrame &digi, int ts) const
 
bool validUpgradeFG (const HcalTrigTowerDetId &id, int depth) const
 

Private Attributes

const HcalDbServiceconditions_
 
uint32_t FG_HF_threshold_
 
uint32_t FG_threshold_
 
FGbitMap fgMap_
 
FGUpgradeMap fgUpgradeMap_
 
TowerMapVeto HF_Veto
 
const HcaluLUTTPGCoderincoder_
 
int latency_
 
HcalFeatureBitLongvrsShortCut
 
uint32_t minSignalThreshold_
 
int NCTScaleShift
 
int numberOfPresamples_
 
int numberOfPresamplesHF_
 
int numberOfSamples_
 
int numberOfSamplesHF_
 
const HcalTPGCompressoroutcoder_
 
bool override_adc_hf_ = false
 
uint32_t override_adc_hf_value_
 
edm::ParameterSet override_parameters_
 
bool override_tdc_hf_ = false
 
unsigned long long override_tdc_hf_value_
 
int peak_finder_algorithm_
 
bool peakfind_
 
uint32_t PMT_NoiseThreshold_
 
int RCTScaleShift
 
HFDetailMap theHFDetailMap
 
HFUpgradeDetailMap theHFUpgradeDetailMap
 
SumMap theSumMap
 
double theThreshold
 
TowerMapFGSum theTowerMapFGSum
 
const HcalTrigTowerGeometrytheTrigTowerGeometry
 
bool upgrade_hb_ = false
 
bool upgrade_he_ = false
 
bool upgrade_hf_ = false
 
std::vector< double > weights_
 
uint32_t ZS_threshold_
 
int ZS_threshold_I_
 

Static Private Attributes

static const int FIRST_FINEGRAIN_TOWER = 30
 
static const int HBHE_OVERLAP_TOWER = 16
 
static const int LAST_FINEGRAIN_DEPTH = 6
 
static const int LAST_FINEGRAIN_TOWER = 28
 
static const int QIE10_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE10_LUT_BITMASK
 
static const int QIE10_MAX_LINEARIZATION_ET = 0x7FF
 
static const int QIE11_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE11_LUT_BITMASK
 
static const int QIE11_MAX_LINEARIZATION_ET = 0x7FF
 
static const int QIE8_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE8_LUT_BITMASK
 

Detailed Description

Definition at line 25 of file HcalTriggerPrimitiveAlgo.h.

Member Typedef Documentation

typedef std::map<HcalTrigTowerDetId, std::vector<bool> > HcalTriggerPrimitiveAlgo::FGbitMap
private

Definition at line 179 of file HcalTriggerPrimitiveAlgo.h.

Definition at line 182 of file HcalTriggerPrimitiveAlgo.h.

Definition at line 183 of file HcalTriggerPrimitiveAlgo.h.

typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, HFDetails> > HcalTriggerPrimitiveAlgo::HFDetailMap
private

Definition at line 151 of file HcalTriggerPrimitiveAlgo.h.

typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, std::array<HFUpgradeDetails, 4> > > HcalTriggerPrimitiveAlgo::HFUpgradeDetailMap
private

Definition at line 159 of file HcalTriggerPrimitiveAlgo.h.

Definition at line 162 of file HcalTriggerPrimitiveAlgo.h.

Definition at line 142 of file HcalTriggerPrimitiveAlgo.h.

Definition at line 163 of file HcalTriggerPrimitiveAlgo.h.

typedef std::map<uint32_t, std::vector<bool> > HcalTriggerPrimitiveAlgo::TowerMapVeto
private

Definition at line 176 of file HcalTriggerPrimitiveAlgo.h.

Constructor & Destructor Documentation

HcalTriggerPrimitiveAlgo::HcalTriggerPrimitiveAlgo ( bool  pf,
const std::vector< double > &  w,
int  latency,
uint32_t  FG_threshold,
uint32_t  FG_HF_threshold,
uint32_t  ZS_threshold,
int  numberOfSamples,
int  numberOfPresamples,
int  numberOfSamplesHF,
int  numberOfPresamplesHF,
uint32_t  minSignalThreshold = 0,
uint32_t  PMT_NoiseThreshold = 0 
)

Definition at line 23 of file HcalTriggerPrimitiveAlgo.cc.

References numberOfPresamples_, numberOfPresamplesHF_, numberOfSamples_, numberOfSamplesHF_, peakfind_, ZS_threshold_, and ZS_threshold_I_.

29  : incoder_(0), outcoder_(0),
36  minSignalThreshold_(minSignalThreshold),
37  PMT_NoiseThreshold_(PMT_NoiseThreshold),
41 {
42  //No peak finding setting (for Fastsim)
43  if (!peakfind_){
44  numberOfSamples_ = 1;
46  numberOfSamplesHF_ = 1;
48  }
49  // Switch to integer for comparisons - remove compiler warning
51 }
const double w
Definition: UKUtility.cc:23
const HcalTPGCompressor * outcoder_
numberOfSamples
threshold for setting fine grain bit
FG_HF_threshold
threshold for setting fine grain bit
ZS_threshold
threshold for setting fine grain bit
const HcaluLUTTPGCoder * incoder_
latency
hardware algo
HcalTriggerPrimitiveAlgo::~HcalTriggerPrimitiveAlgo ( )

Definition at line 54 of file HcalTriggerPrimitiveAlgo.cc.

54  {
55 }

Member Function Documentation

template<typename T , typename... Args>
void HcalTriggerPrimitiveAlgo::addDigis ( const T collection,
const Args &...  digis 
)
inline

Definition at line 44 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run().

44  {
46  addDigis(digis...);
47  };
void addDigis(const T &collection, const Args &...digis)
template<typename T >
void HcalTriggerPrimitiveAlgo::addDigis ( const T collection)
inline

Definition at line 50 of file HcalTriggerPrimitiveAlgo.h.

References addSignal().

50  {
51  for (const auto& digi: collection) {
52  addSignal(digi);
53  }
54  };
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
template<typename D >
void HcalTriggerPrimitiveAlgo::addDigis ( const HcalDataFrameContainer< D > &  collection)
inline
void HcalTriggerPrimitiveAlgo::addFG ( const HcalTrigTowerDetId id,
std::vector< bool > &  msb 
)
private

Definition at line 716 of file HcalTriggerPrimitiveAlgo.cc.

References fgMap_, mps_fire::i, and hcalTTPDigis_cfi::id.

Referenced by addDigis(), and addSignal().

716  {
717  FGbitMap::iterator itr = fgMap_.find(id);
718  if (itr != fgMap_.end()){
719  std::vector<bool>& _msb = itr->second;
720  for (size_t i=0; i<msb.size(); ++i)
721  _msb[i] = _msb[i] || msb[i];
722  }
723  else fgMap_[id] = msb;
724 }
void HcalTriggerPrimitiveAlgo::addSignal ( const HBHEDataFrame frame)
private

adds the signal to the map

Definition at line 83 of file HcalTriggerPrimitiveAlgo.cc.

References HcaluLUTTPGCoder::adc2Linear(), addFG(), HcalDetId::depth(), mps_fire::i, HBHEDataFrame::id(), incoder_, HcaluLUTTPGCoder::lookupMSB(), HBHEDataFrame::presamples(), HBHEDataFrame::size(), theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().

Referenced by addDigis(), and addSignal().

83  {
84  // TODO: Need to add support for seperate 28, 29 in HE
85  //Hack for 300_pre10, should be removed.
86  if (frame.id().depth()==5) return;
87 
88  std::vector<HcalTrigTowerDetId> ids = theTrigTowerGeometry->towerIds(frame.id());
89  assert(ids.size() == 1 || ids.size() == 2);
90  IntegerCaloSamples samples1(ids[0], int(frame.size()));
91 
92  samples1.setPresamples(frame.presamples());
93  incoder_->adc2Linear(frame, samples1);
94 
95  std::vector<bool> msb;
96  incoder_->lookupMSB(frame, msb);
97 
98  if(ids.size() == 2) {
99  // make a second trigprim for the other one, and split the energy
100  IntegerCaloSamples samples2(ids[1], samples1.size());
101  for(int i = 0; i < samples1.size(); ++i) {
102  samples1[i] = uint32_t(samples1[i]*0.5);
103  samples2[i] = samples1[i];
104  }
105  samples2.setPresamples(frame.presamples());
106  addSignal(samples2);
107  addFG(ids[1], msb);
108  }
109  addSignal(samples1);
110  addFG(ids[0], msb);
111 }
virtual void adc2Linear(const HBHEDataFrame &df, IntegerCaloSamples &ics) const override
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
void addFG(const HcalTrigTowerDetId &id, std::vector< bool > &msb)
int depth() const
get the tower depth
Definition: HcalDetId.cc:108
const HcalTrigTowerGeometry * theTrigTowerGeometry
void lookupMSB(const HBHEDataFrame &df, std::vector< bool > &msb) const
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HBHEDataFrame.h:28
const HcaluLUTTPGCoder * incoder_
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
void HcalTriggerPrimitiveAlgo::addSignal ( const HFDataFrame frame)
private

Definition at line 114 of file HcalTriggerPrimitiveAlgo.cc.

References HcaluLUTTPGCoder::adc2Linear(), addSignal(), HcalDetId::depth(), HF_Veto, mps_fire::i, HFDataFrame::id(), incoder_, HcalTriggerPrimitiveAlgo::HFDetails::long_fiber, HcalTriggerPrimitiveAlgo::HFDetails::LongDigi, HcalDetId::maskDepth(), minSignalThreshold_, HFDataFrame::presamples(), hcalTTPDigis_cfi::samples, IntegerCaloSamples::setPresamples(), HcalTriggerPrimitiveAlgo::HFDetails::short_fiber, HcalTriggerPrimitiveAlgo::HFDetails::ShortDigi, HFDataFrame::size(), theHFDetailMap, theTowerMapFGSum, theTrigTowerGeometry, HcalTrigTowerGeometry::towerIds(), and HcalTrigTowerDetId::version().

114  {
115  if(frame.id().depth() == 1 || frame.id().depth() == 2) {
116  std::vector<HcalTrigTowerDetId> ids = theTrigTowerGeometry->towerIds(frame.id());
117  std::vector<HcalTrigTowerDetId>::const_iterator it;
118  for (it = ids.begin(); it != ids.end(); ++it) {
119  HcalTrigTowerDetId trig_tower_id = *it;
120  IntegerCaloSamples samples(trig_tower_id, frame.size());
121  samples.setPresamples(frame.presamples());
122  incoder_->adc2Linear(frame, samples);
123 
124  // Don't add to final collection yet
125  // HF PMT veto sum is calculated in analyzerHF()
126  IntegerCaloSamples zero_samples(trig_tower_id, frame.size());
127  zero_samples.setPresamples(frame.presamples());
128  addSignal(zero_samples);
129 
130  // Pre-LS1 Configuration
131  if (trig_tower_id.version() == 0) {
132  // Mask off depths: fgid is the same for both depths
133  uint32_t fgid = (frame.id().maskDepth());
134 
135  if ( theTowerMapFGSum.find(trig_tower_id) == theTowerMapFGSum.end() ) {
136  SumFGContainer sumFG;
137  theTowerMapFGSum.insert(std::pair<HcalTrigTowerDetId, SumFGContainer>(trig_tower_id, sumFG));
138  }
139 
140  SumFGContainer& sumFG = theTowerMapFGSum[trig_tower_id];
141  SumFGContainer::iterator sumFGItr;
142  for ( sumFGItr = sumFG.begin(); sumFGItr != sumFG.end(); ++sumFGItr) {
143  if (sumFGItr->id() == fgid) { break; }
144  }
145  // If find
146  if (sumFGItr != sumFG.end()) {
147  for (int i=0; i<samples.size(); ++i) {
148  (*sumFGItr)[i] += samples[i];
149  }
150  }
151  else {
152  //Copy samples (change to fgid)
153  IntegerCaloSamples sumFGSamples(DetId(fgid), samples.size());
154  sumFGSamples.setPresamples(samples.presamples());
155  for (int i=0; i<samples.size(); ++i) {
156  sumFGSamples[i] = samples[i];
157  }
158  sumFG.push_back(sumFGSamples);
159  }
160 
161  // set veto to true if Long or Short less than threshold
162  if (HF_Veto.find(fgid) == HF_Veto.end()) {
163  vector<bool> vetoBits(samples.size(), false);
164  HF_Veto[fgid] = vetoBits;
165  }
166  for (int i=0; i<samples.size(); ++i) {
167  if (samples[i] < minSignalThreshold_) {
168  HF_Veto[fgid][i] = true;
169  }
170  }
171  }
172  // HF 1x1
173  else if (trig_tower_id.version() == 1) {
174  uint32_t fgid = (frame.id().maskDepth());
175  HFDetails& details = theHFDetailMap[trig_tower_id][fgid];
176  // Check the frame type to determine long vs short
177  if (frame.id().depth() == 1) { // Long
178  details.long_fiber = samples;
179  details.LongDigi = frame;
180  } else if (frame.id().depth() == 2) { // Short
181  details.short_fiber = samples;
182  details.ShortDigi = frame;
183  } else {
184  // Neither long nor short... So we have no idea what to do
185  edm::LogWarning("HcalTPAlgo") << "Unable to figure out what to do with data frame for " << frame.id();
186  return;
187  }
188  }
189  // Uh oh, we are in a bad/unknown state! Things will start crashing.
190  else {
191  return;
192  }
193  }
194  }
195 }
virtual void adc2Linear(const HBHEDataFrame &df, IntegerCaloSamples &ics) const override
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
void setPresamples(int pre)
set presample information
uint32_t maskDepth() const
get the tower depth
Definition: HcalDetId.cc:121
std::vector< IntegerCaloSamples > SumFGContainer
int depth() const
get the tower depth
Definition: HcalDetId.cc:108
const HcalTrigTowerGeometry * theTrigTowerGeometry
Definition: DetId.h:18
int size() const
total number of samples in the digi
Definition: HFDataFrame.h:26
int version() const
get the version code for the trigger tower
const HcaluLUTTPGCoder * incoder_
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HFDataFrame.h:28
const HcalDetId & id() const
Definition: HFDataFrame.h:22
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
void HcalTriggerPrimitiveAlgo::addSignal ( const QIE10DataFrame frame)
private

Definition at line 198 of file HcalTriggerPrimitiveAlgo.cc.

References HcaluLUTTPGCoder::adc2Linear(), addSignal(), hcalTTPDigis_cfi::id, QIE10DataFrame::id(), training_settings::idx, incoder_, QIE10DataFrame::presamples(), hcalTTPDigis_cfi::samples, QIE10DataFrame::samples(), IntegerCaloSamples::setPresamples(), theHFUpgradeDetailMap, theTrigTowerGeometry, HcalTrigTowerGeometry::towerIds(), validChannel(), and jetIDSelector_cfi::version.

199 {
200  auto ids = theTrigTowerGeometry->towerIds(frame.id());
201  for (const auto& id: ids) {
202  if (id.version() == 0) {
203  edm::LogError("HcalTPAlgo") << "Encountered QIE10 data frame mapped to TP version 0:" << id;
204  continue;
205  }
206 
207  IntegerCaloSamples samples(id, frame.samples());
208  samples.setPresamples(frame.presamples());
209  incoder_->adc2Linear(frame, samples);
210 
211  // Don't add to final collection yet
212  // HF PMT veto sum is calculated in analyzerHF()
213  IntegerCaloSamples zero_samples(id, frame.samples());
214  zero_samples.setPresamples(frame.presamples());
215  addSignal(zero_samples);
216 
217  auto fid = HcalDetId(frame.id());
218  auto& details = theHFUpgradeDetailMap[id][fid.maskDepth()];
219  details[fid.depth() - 1].samples = samples;
220  details[fid.depth() - 1].digi = frame;
221  details[fid.depth() - 1].validity.resize(frame.samples());
222  for (int idx = 0; idx < frame.samples(); ++idx)
223  details[fid.depth() - 1].validity[idx] = validChannel(frame, idx);
224  }
225 }
int samples() const
total number of samples in the digi
virtual void adc2Linear(const HBHEDataFrame &df, IntegerCaloSamples &ics) const override
HFUpgradeDetailMap theHFUpgradeDetailMap
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
int presamples() const
for backward compatibility
edm::DataFrame::id_type id() const
void setPresamples(int pre)
set presample information
bool validChannel(const QIE10DataFrame &digi, int ts) const
const HcalTrigTowerGeometry * theTrigTowerGeometry
const HcaluLUTTPGCoder * incoder_
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
void HcalTriggerPrimitiveAlgo::addSignal ( const QIE11DataFrame frame)
private

Definition at line 228 of file HcalTriggerPrimitiveAlgo.cc.

References HcaluLUTTPGCoder::adc2Linear(), addSignal(), addUpgradeFG(), mps_fire::i, QIE11DataFrame::id(), incoder_, HcaluLUTTPGCoder::lookupMSB(), QIE11DataFrame::presamples(), QIE11DataFrame::samples(), theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().

229 {
230  HcalDetId detId(frame.id());
231  std::vector<HcalTrigTowerDetId> ids = theTrigTowerGeometry->towerIds(detId);
232  assert(ids.size() == 1 || ids.size() == 2);
233  IntegerCaloSamples samples1(ids[0], int(frame.samples()));
234 
235  samples1.setPresamples(frame.presamples());
236  incoder_->adc2Linear(frame, samples1);
237 
238  std::vector<std::bitset<2>> msb(frame.samples(), 0);
239  incoder_->lookupMSB(frame, msb);
240 
241  if(ids.size() == 2) {
242  // make a second trigprim for the other one, and share the energy
243  IntegerCaloSamples samples2(ids[1], samples1.size());
244  for(int i = 0; i < samples1.size(); ++i) {
245  samples1[i] = uint32_t(samples1[i]);
246  samples2[i] = samples1[i];
247  }
248  samples2.setPresamples(frame.presamples());
249  addSignal(samples2);
250  addUpgradeFG(ids[1], detId.depth(), msb);
251  }
252  addSignal(samples1);
253  addUpgradeFG(ids[0], detId.depth(), msb);
254 }
virtual void adc2Linear(const HBHEDataFrame &df, IntegerCaloSamples &ics) const override
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
const HcalTrigTowerGeometry * theTrigTowerGeometry
void lookupMSB(const HBHEDataFrame &df, std::vector< bool > &msb) const
edm::DataFrame::id_type id() const
void addUpgradeFG(const HcalTrigTowerDetId &id, int depth, const std::vector< std::bitset< 2 >> &bits)
int presamples() const
for backward compatibility
const HcaluLUTTPGCoder * incoder_
int samples() const
total number of samples in the digi
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
void HcalTriggerPrimitiveAlgo::addSignal ( const IntegerCaloSamples samples)
private

Definition at line 256 of file HcalTriggerPrimitiveAlgo.cc.

References mps_fire::i, hcalTTPDigis_cfi::id, IntegerCaloSamples::id(), IntegerCaloSamples::size(), and theSumMap.

256  {
257  HcalTrigTowerDetId id(samples.id());
258  SumMap::iterator itr = theSumMap.find(id);
259  if(itr == theSumMap.end()) {
260  theSumMap.insert(std::make_pair(id, samples));
261  }
262  else {
263  // wish CaloSamples had a +=
264  for(int i = 0; i < samples.size(); ++i) {
265  (itr->second)[i] += samples[i];
266  }
267  }
268 }
int size() const
get the size
DetId id() const
get the (generic) id
void HcalTriggerPrimitiveAlgo::addUpgradeFG ( const HcalTrigTowerDetId id,
int  depth,
const std::vector< std::bitset< 2 >> &  bits 
)
private

Definition at line 739 of file HcalTriggerPrimitiveAlgo.cc.

References bits, particleFlowClusterECALTimeSelected_cfi::depth, fgUpgradeMap_, mps_fire::i, and validUpgradeFG().

Referenced by addDigis(), and addSignal().

740 {
741  if (not validUpgradeFG(id, depth)) {
742  return;
743  }
744 
745  auto it = fgUpgradeMap_.find(id);
746  if (it == fgUpgradeMap_.end()) {
747  FGUpgradeContainer element;
748  element.resize(bits.size());
749  it = fgUpgradeMap_.insert(std::make_pair(id, element)).first;
750  }
751  for (unsigned int i = 0; i < bits.size(); ++i) {
752  it->second[i][0][depth] = bits[i][0];
753  it->second[i][1][depth] = bits[i][1];
754  }
755 }
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
std::vector< HcalFinegrainBit::Tower > FGUpgradeContainer
bool validUpgradeFG(const HcalTrigTowerDetId &id, int depth) const
void HcalTriggerPrimitiveAlgo::analyze ( IntegerCaloSamples samples,
HcalTriggerPrimitiveDigi result 
)
private

adds the actual RecHits

Definition at line 271 of file HcalTriggerPrimitiveAlgo.cc.

References HcalTPGCompressor::compress(), fgMap_, mps_fire::i, IntegerCaloSamples::id(), training_settings::idx, createfilelist::int, numberOfPresamples_, numberOfSamples_, outcoder_, convertSQLitetoXML_cfg::output, peak_finder_algorithm_, peakfind_, IntegerCaloSamples::presamples(), QIE8_LINEARIZATION_ET, edm::shift, IntegerCaloSamples::size(), theThreshold, and weights_.

Referenced by addDigis(), and run().

271  {
272  int shrink = weights_.size() - 1;
273  std::vector<bool>& msb = fgMap_[samples.id()];
274  IntegerCaloSamples sum(samples.id(), samples.size());
275 
276  //slide algo window
277  for(int ibin = 0; ibin < int(samples.size())- shrink; ++ibin) {
278  int algosumvalue = 0;
279  for(unsigned int i = 0; i < weights_.size(); i++) {
280  //add up value * scale factor
281  algosumvalue += int(samples[ibin+i] * weights_[i]);
282  }
283  if (algosumvalue<0) sum[ibin]=0; // low-side
284  //high-side
285  //else if (algosumvalue>QIE8_LINEARIZATION_ET) sum[ibin]=QIE8_LINEARIZATION_ET;
286  else sum[ibin] = algosumvalue; //assign value to sum[]
287  }
288 
289  // Align digis and TP
290  int dgPresamples=samples.presamples();
291  int tpPresamples=numberOfPresamples_;
292  int shift = dgPresamples - tpPresamples;
293  int dgSamples=samples.size();
294  int tpSamples=numberOfSamples_;
295  if(peakfind_){
296  if((shift<shrink) || (shift + tpSamples + shrink > dgSamples - (peak_finder_algorithm_ - 1) ) ){
297  edm::LogInfo("HcalTriggerPrimitiveAlgo::analyze") <<
298  "TP presample or size from the configuration file is out of the accessible range. Using digi values from data instead...";
299  shift=shrink;
300  tpPresamples=dgPresamples-shrink;
301  tpSamples=dgSamples-(peak_finder_algorithm_-1)-shrink-shift;
302  }
303  }
304 
305  std::vector<int> finegrain(tpSamples,false);
306 
307  IntegerCaloSamples output(samples.id(), tpSamples);
308  output.setPresamples(tpPresamples);
309 
310  for (int ibin = 0; ibin < tpSamples; ++ibin) {
311  // ibin - index for output TP
312  // idx - index for samples + shift
313  int idx = ibin + shift;
314 
315  //Peak finding
316  if (peakfind_) {
317  bool isPeak = false;
318  switch (peak_finder_algorithm_) {
319  case 1 :
320  isPeak = (samples[idx] > samples[idx-1] && samples[idx] >= samples[idx+1] && samples[idx] > theThreshold);
321  break;
322  case 2:
323  isPeak = (sum[idx] > sum[idx-1] && sum[idx] >= sum[idx+1] && sum[idx] > theThreshold);
324  break;
325  default:
326  break;
327  }
328 
329  if (isPeak){
330  output[ibin] = std::min<unsigned int>(sum[idx],QIE8_LINEARIZATION_ET);
331  finegrain[ibin] = msb[idx];
332  }
333  // Not a peak
334  else output[ibin] = 0;
335  }
336  else { // No peak finding, just output running sum
337  output[ibin] = std::min<unsigned int>(sum[idx],QIE8_LINEARIZATION_ET);
338  finegrain[ibin] = msb[idx];
339  }
340 
341  // Only Pegged for 1-TS algo.
342  if (peak_finder_algorithm_ == 1) {
343  if (samples[idx] >= QIE8_LINEARIZATION_ET)
345  }
346  }
347  outcoder_->compress(output, finegrain, result);
348 }
int presamples() const
access presample information
const HcalTPGCompressor * outcoder_
int size() const
get the size
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
static unsigned int const shift
DetId id() const
get the (generic) id
void HcalTriggerPrimitiveAlgo::analyze2017 ( IntegerCaloSamples samples,
HcalTriggerPrimitiveDigi result,
const HcalFinegrainBit fg_algo 
)
private

Definition at line 352 of file HcalTriggerPrimitiveAlgo.cc.

References HcalTPGCompressor::compress(), HcalFinegrainBit::compute(), fgUpgradeMap_, mps_fire::i, IntegerCaloSamples::id(), training_settings::idx, createfilelist::int, numberOfPresamples_, numberOfSamples_, outcoder_, convertSQLitetoXML_cfg::output, peak_finder_algorithm_, IntegerCaloSamples::presamples(), QIE11_MAX_LINEARIZATION_ET, edm::shift, IntegerCaloSamples::size(), theThreshold, theTrigTowerGeometry, HcalTrigTowerGeometry::towerIds(), and weights_.

Referenced by addDigis(), and run().

353 {
354  int shrink = weights_.size() - 1;
355  auto& msb = fgUpgradeMap_[samples.id()];
356  IntegerCaloSamples sum(samples.id(), samples.size());
357 
358  HcalDetId detId(samples.id());
359  std::vector<HcalTrigTowerDetId> ids = theTrigTowerGeometry->towerIds(detId);
360  //slide algo window
361  for(int ibin = 0; ibin < int(samples.size())- shrink; ++ibin) {
362  int algosumvalue = 0;
363  for(unsigned int i = 0; i < weights_.size(); i++) {
364  //add up value * scale factor
365  // In addition, divide by two in the 10 degree phi segmentation region
366  // to mimic 5 degree segmentation for the trigger
367  if(ids.size()==2) algosumvalue += int(samples[ibin+i] * 0.5 * weights_[i]);
368  else algosumvalue += int(samples[ibin+i] * weights_[i]);
369  }
370  if (algosumvalue<0) sum[ibin]=0; // low-side
371  //high-side
372  //else if (algosumvalue>QIE11_LINEARIZATION_ET) sum[ibin]=QIE11_LINEARIZATION_ET;
373  else sum[ibin] = algosumvalue; //assign value to sum[]
374  }
375 
376  // Align digis and TP
377  int dgPresamples=samples.presamples();
378  int tpPresamples=numberOfPresamples_;
379  int shift = dgPresamples - tpPresamples;
380  int dgSamples=samples.size();
381  int tpSamples=numberOfSamples_;
382 
383  if((shift<shrink) || (shift + tpSamples + shrink > dgSamples - (peak_finder_algorithm_ - 1) ) ){
384  edm::LogInfo("HcalTriggerPrimitiveAlgo::analyze") <<
385  "TP presample or size from the configuration file is out of the accessible range. Using digi values from data instead...";
386  shift=shrink;
387  tpPresamples=dgPresamples-shrink;
388  tpSamples=dgSamples-(peak_finder_algorithm_-1)-shrink-shift;
389  }
390 
391  std::vector<int> finegrain(tpSamples,false);
392 
393  IntegerCaloSamples output(samples.id(), tpSamples);
394  output.setPresamples(tpPresamples);
395 
396  for (int ibin = 0; ibin < tpSamples; ++ibin) {
397  // ibin - index for output TP
398  // idx - index for samples + shift
399  int idx = ibin + shift;
400  bool isPeak = (sum[idx] > sum[idx-1] && sum[idx] >= sum[idx+1] && sum[idx] > theThreshold);
401 
402  if (isPeak){
403  output[ibin] = std::min<unsigned int>(sum[idx],QIE11_MAX_LINEARIZATION_ET);
404  finegrain[ibin] = fg_algo.compute(msb[idx]).to_ulong();
405  } else {
406  // Not a peak
407  output[ibin] = 0;
408  finegrain[ibin] = 0;
409  }
410  }
411  outcoder_->compress(output, finegrain, result);
412 }
int presamples() const
access presample information
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
const HcalTPGCompressor * outcoder_
int size() const
get the size
const HcalTrigTowerGeometry * theTrigTowerGeometry
std::bitset< 4 > compute(const Tower &) const
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
static const int QIE11_MAX_LINEARIZATION_ET
static unsigned int const shift
DetId id() const
get the (generic) id
void HcalTriggerPrimitiveAlgo::analyzeHF ( IntegerCaloSamples samples,
HcalTriggerPrimitiveDigi result,
const int  hf_lumi_shift 
)
private

Definition at line 415 of file HcalTriggerPrimitiveAlgo.cc.

References HcalTPGCompressor::compress(), FG_threshold_, HF_Veto, IntegerCaloSamples::id(), training_settings::idx, createfilelist::int, numberOfPresamplesHF_, numberOfSamplesHF_, outcoder_, convertSQLitetoXML_cfg::output, PMT_NoiseThreshold_, IntegerCaloSamples::presamples(), QIE8_LINEARIZATION_ET, edm::shift, IntegerCaloSamples::size(), theTowerMapFGSum, and TriggerAnalyzer::veto.

Referenced by addDigis(), and run().

415  {
416  HcalTrigTowerDetId detId(samples.id());
417 
418  // Align digis and TP
419  int dgPresamples=samples.presamples();
420  int tpPresamples=numberOfPresamplesHF_;
421  int shift = dgPresamples - tpPresamples;
422  int dgSamples=samples.size();
423  int tpSamples=numberOfSamplesHF_;
424  if(shift<0 || shift+tpSamples>dgSamples){
425  edm::LogInfo("HcalTriggerPrimitiveAlgo::analyzeHF") <<
426  "TP presample or size from the configuration file is out of the accessible range. Using digi values from data instead...";
427  tpPresamples=dgPresamples;
428  shift=0;
429  tpSamples=dgSamples;
430  }
431 
432  std::vector<int> finegrain(tpSamples, false);
433 
434  TowerMapFGSum::const_iterator tower2fg = theTowerMapFGSum.find(detId);
435  assert(tower2fg != theTowerMapFGSum.end());
436 
437  const SumFGContainer& sumFG = tower2fg->second;
438  // Loop over all L+S pairs that mapped from samples.id()
439  // Note: 1 samples.id() = 6 x (L+S) without noZS
440  for (SumFGContainer::const_iterator sumFGItr = sumFG.begin(); sumFGItr != sumFG.end(); ++sumFGItr) {
441  const std::vector<bool>& veto = HF_Veto[sumFGItr->id().rawId()];
442  for (int ibin = 0; ibin < tpSamples; ++ibin) {
443  int idx = ibin + shift;
444  // if not vetod, add L+S to total sum and calculate FG
445  bool vetoed = idx<int(veto.size()) && veto[idx];
446  if (!(vetoed && (*sumFGItr)[idx] > PMT_NoiseThreshold_)) {
447  samples[idx] += (*sumFGItr)[idx];
448  finegrain[ibin] = (finegrain[ibin] || (*sumFGItr)[idx] >= FG_threshold_);
449  }
450  }
451  }
452 
453  IntegerCaloSamples output(samples.id(), tpSamples);
454  output.setPresamples(tpPresamples);
455 
456  for (int ibin = 0; ibin < tpSamples; ++ibin) {
457  int idx = ibin + shift;
458  output[ibin] = samples[idx] >> hf_lumi_shift;
459  static const int MAX_OUTPUT = QIE8_LINEARIZATION_ET; // QIE8_LINEARIZATION_ET = 1023
460  if (output[ibin] > MAX_OUTPUT) output[ibin] = MAX_OUTPUT;
461  }
462  outcoder_->compress(output, finegrain, result);
463 }
int presamples() const
access presample information
const HcalTPGCompressor * outcoder_
std::vector< IntegerCaloSamples > SumFGContainer
int size() const
get the size
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
static unsigned int const shift
DetId id() const
get the (generic) id
void HcalTriggerPrimitiveAlgo::analyzeHF2016 ( const IntegerCaloSamples SAMPLES,
HcalTriggerPrimitiveDigi result,
const int  HF_LUMI_SHIFT,
const HcalFeatureBit HCALFEM 
)
private

Definition at line 465 of file HcalTriggerPrimitiveAlgo.cc.

References stringResolutionProvider_cfi::bin, HcalTPGCompressor::compress(), FG_HF_threshold_, HcalFeatureBit::fineGrainbit(), FIRST_FINEGRAIN_TOWER, IntegerCaloSamples::id(), min(), numberOfPresamplesHF_, numberOfSamplesHF_, outcoder_, convertSQLitetoXML_cfg::output, IntegerCaloSamples::presamples(), QIE8_LINEARIZATION_ET, IntegerCaloSamples::size(), and theHFDetailMap.

Referenced by addDigis(), and run().

470  {
471  // Align digis and TP
472  const int SHIFT = samples.presamples() - numberOfPresamplesHF_;
473  assert(SHIFT >= 0);
474  assert((SHIFT + numberOfSamplesHF_) <= samples.size());
475 
476  // Try to find the HFDetails from the map corresponding to our samples
477  const HcalTrigTowerDetId detId(samples.id());
478  HFDetailMap::const_iterator it = theHFDetailMap.find(detId);
479  // Missing values will give an empty digi
480  if (it == theHFDetailMap.end()) {
481  return;
482  }
483 
484  std::vector<std::bitset<2>> finegrain(numberOfSamplesHF_, false);
485 
486  // Set up out output of IntergerCaloSamples
488  output.setPresamples(numberOfPresamplesHF_);
489 
490  for (const auto& item: it->second) {
491  auto& details = item.second;
492  for (int ibin = 0; ibin < numberOfSamplesHF_; ++ibin) {
493  const int IDX = ibin + SHIFT;
494  int long_fiber_val = 0;
495  if (IDX < details.long_fiber.size()) {
496  long_fiber_val = details.long_fiber[IDX];
497  }
498  int short_fiber_val = 0;
499  if (IDX < details.short_fiber.size()) {
500  short_fiber_val = details.short_fiber[IDX];
501  }
502  output[ibin] += (long_fiber_val + short_fiber_val);
503 
504  uint32_t ADCLong = details.LongDigi[ibin].adc();
505  uint32_t ADCShort = details.ShortDigi[ibin].adc();
506 
507  if (details.LongDigi.id().ietaAbs() >= FIRST_FINEGRAIN_TOWER) {
508  finegrain[ibin][1] = (ADCLong > FG_HF_threshold_ || ADCShort > FG_HF_threshold_);
509 
510  if (embit != 0)
511  finegrain[ibin][0] = embit->fineGrainbit(details.ShortDigi, details.LongDigi, ibin);
512  }
513  }
514  }
515 
516  for (int bin = 0; bin < numberOfSamplesHF_; ++bin) {
517  static const unsigned int MAX_OUTPUT = QIE8_LINEARIZATION_ET; // QIE8_LINEARIZATION_ET = 1023
518  output[bin] = min({MAX_OUTPUT, output[bin] >> hf_lumi_shift});
519  }
520 
521  std::vector<int> finegrain_converted;
522  for (const auto& fg: finegrain)
523  finegrain_converted.push_back(fg.to_ulong());
524  outcoder_->compress(output, finegrain_converted, result);
525 }
const HcalTPGCompressor * outcoder_
T min(T a, T b)
Definition: MathUtil.h:58
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
bin
set the eta bin as selection string.
void HcalTriggerPrimitiveAlgo::analyzeHF2017 ( const IntegerCaloSamples SAMPLES,
HcalTriggerPrimitiveDigi result,
const int  HF_LUMI_SHIFT,
const HcalFeatureBit HCALFEM 
)
private

Definition at line 549 of file HcalTriggerPrimitiveAlgo.cc.

References stringResolutionProvider_cfi::bin, HcalTPGCompressor::compress(), FG_HF_threshold_, HcalFeatureBit::fineGrainbit(), FIRST_FINEGRAIN_TOWER, mps_fire::i, IntegerCaloSamples::id(), training_settings::idx, createfilelist::int, min(), numberOfPresamplesHF_, numberOfSamplesHF_, or, outcoder_, convertSQLitetoXML_cfg::output, IntegerCaloSamples::presamples(), QIE10_LINEARIZATION_ET, QIE10_MAX_LINEARIZATION_ET, edm::shift, IntegerCaloSamples::size(), and theHFUpgradeDetailMap.

Referenced by addDigis(), and run().

552 {
553  // Align digis and TP
554  const int shift = samples.presamples() - numberOfPresamplesHF_;
555  assert(shift >= 0);
556  assert((shift + numberOfSamplesHF_) <= samples.size());
557 
558  // Try to find the HFDetails from the map corresponding to our samples
559  const HcalTrigTowerDetId detId(samples.id());
560  auto it = theHFUpgradeDetailMap.find(detId);
561  // Missing values will give an empty digi
562  if (it == theHFUpgradeDetailMap.end()) {
563  return;
564  }
565 
566  std::vector<std::bitset<2>> finegrain(numberOfSamplesHF_, false);
567 
568  // Set up out output of IntergerCaloSamples
570  output.setPresamples(numberOfPresamplesHF_);
571 
572  for (const auto& item: it->second) {
573  auto& details = item.second;
574  for (int ibin = 0; ibin < numberOfSamplesHF_; ++ibin) {
575  const int idx = ibin + shift;
576 
577  int long_fiber_val = 0;
578  int long_fiber_count = 0;
579  int short_fiber_val = 0;
580  int short_fiber_count = 0;
581 
582  bool saturated = false;
583 
584  for (auto i: {0, 2}) {
585  if (idx < details[i].samples.size() and details[i].validity[idx]) {
586  long_fiber_val += details[i].samples[idx];
587  saturated = saturated || (details[i].samples[idx] == QIE10_LINEARIZATION_ET);
588  ++long_fiber_count;
589  }
590  }
591  for (auto i: {1, 3}) {
592  if (idx < details[i].samples.size() and details[i].validity[idx]) {
593  short_fiber_val += details[i].samples[idx];
594  saturated = saturated || (details[i].samples[idx] == QIE10_LINEARIZATION_ET);
595  ++short_fiber_count;
596  }
597  }
598 
599  if (saturated) {
601  } else {
602  // For details of the energy handling, see:
603  // https://cms-docdb.cern.ch/cgi-bin/DocDB/ShowDocument?docid=12306
604  //
605  // If a channel for one fiber is invalid, use the value of the
606  // other channel (by doubling the sum) to calculate the
607  // energy in the fiber
608  if (long_fiber_count == 1)
609  long_fiber_val *= 2;
610  if (short_fiber_count == 1)
611  short_fiber_val *= 2;
612 
613  auto sum = long_fiber_val + short_fiber_val;
614  // Similar to above, if a fiber is invalid (i.e., both
615  // channels for the fiber invalid), substitute the value of
616  // the other fiber by doubling the sum.
617  if (long_fiber_count == 0 or short_fiber_count == 0)
618  sum *= 2;
619 
620  output[ibin] += sum;
621  }
622 
623  for (const auto& detail: details) {
624  if (idx < int(detail.digi.size()) and detail.validity[idx] and HcalDetId(detail.digi.id()).ietaAbs() >= FIRST_FINEGRAIN_TOWER) {
625  finegrain[ibin][1] = finegrain[ibin][1] or (detail.digi[idx].adc() > (int) FG_HF_threshold_);
626  }
627  }
628 
629  if (embit != 0) {
630  finegrain[ibin][0] = embit->fineGrainbit(
631  details[1].digi, details[3].digi,
632  details[0].digi, details[2].digi,
633  details[1].validity[idx], details[3].validity[idx],
634  details[0].validity[idx], details[2].validity[idx],
635  idx
636  );
637  }
638  }
639  }
640 
641  for (int bin = 0; bin < numberOfSamplesHF_; ++bin) {
642  output[bin] = min({(unsigned int) QIE10_MAX_LINEARIZATION_ET, output[bin]}) >> hf_lumi_shift;
643  }
644  std::vector<int> finegrain_converted;
645  for (const auto& fg: finegrain)
646  finegrain_converted.push_back(fg.to_ulong());
647  outcoder_->compress(output, finegrain_converted, result);
648 }
HFUpgradeDetailMap theHFUpgradeDetailMap
static const int QIE10_MAX_LINEARIZATION_ET
const HcalTPGCompressor * outcoder_
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
T min(T a, T b)
Definition: MathUtil.h:58
void compress(const IntegerCaloSamples &ics, const std::vector< int > &fineGrain, HcalTriggerPrimitiveDigi &digi) const
bin
set the eta bin as selection string.
static unsigned int const shift
void HcalTriggerPrimitiveAlgo::overrideParameters ( const edm::ParameterSet ps)

Definition at line 68 of file HcalTriggerPrimitiveAlgo.cc.

References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), override_adc_hf_, override_adc_hf_value_, override_parameters_, override_tdc_hf_, and override_tdc_hf_value_.

Referenced by addDigis(), and HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().

69 {
71 
72  if (override_parameters_.exists("ADCThresholdHF")) {
73  override_adc_hf_ = true;
74  override_adc_hf_value_ = override_parameters_.getParameter<uint32_t>("ADCThresholdHF");
75  }
76  if (override_parameters_.exists("TDCMaskHF")) {
77  override_tdc_hf_ = true;
78  override_tdc_hf_value_ = override_parameters_.getParameter<unsigned long long>("TDCMaskHF");
79  }
80 }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
unsigned long long override_tdc_hf_value_
template<typename... Digis>
void HcalTriggerPrimitiveAlgo::run ( const HcalTPGCoder incoder,
const HcalTPGCompressor outcoder,
const HcalDbService conditions,
HcalTrigPrimDigiCollection result,
const HcalTrigTowerGeometry trigTowerGeometry,
float  rctlsb,
const HcalFeatureBit LongvrsShortCut,
const Digis &...  digis 
)

Definition at line 214 of file HcalTriggerPrimitiveAlgo.h.

References addDigis(), analyze(), analyze2017(), analyzeHF(), analyzeHF2016(), analyzeHF2017(), edm::SortedCollection< T, SORT >::back(), conditions_, edm::ParameterSet::exists(), fgMap_, fgUpgradeMap_, HcalTrigTowerGeometry::firstHFTower(), HcalTPParameters::getFGVersionHBHE(), HcalDbService::getHcalTPParameters(), edm::ParameterSet::getParameter(), HF_Veto, incoder_, LongvrsShortCut, NCTScaleShift, or, outcoder_, override_parameters_, edm::SortedCollection< T, SORT >::push_back(), RCTScaleShift, theHFDetailMap, theHFUpgradeDetailMap, theSumMap, theTowerMapFGSum, theTrigTowerGeometry, upgrade_hb_, upgrade_he_, upgrade_hf_, and jetIDSelector_cfi::version.

Referenced by HcalTrigPrimDigiProducer::produce().

220  {
221  theTrigTowerGeometry = trigTowerGeometry;
222 
223  incoder_ = dynamic_cast<const HcaluLUTTPGCoder*>(incoder);
224  outcoder_ = outcoder;
225  conditions_ = conditions;
226 
227  theSumMap.clear();
228  theTowerMapFGSum.clear();
229  HF_Veto.clear();
230  fgMap_.clear();
231  fgUpgradeMap_.clear();
232  theHFDetailMap.clear();
233  theHFUpgradeDetailMap.clear();
234 
235  // Add all digi collections
236  addDigis(digis...);
237 
238  // Prepare the fine-grain calculation algorithm for HB/HE
239  int version = 0;
242  if (override_parameters_.exists("FGVersionHBHE"))
243  version = override_parameters_.getParameter<uint32_t>("FGVersionHBHE");
244  HcalFinegrainBit fg_algo(version);
245 
246  // VME produces additional bits on the front used by lumi but not the
247  // trigger, this shift corrects those out by right shifting over them.
248  for (auto& item: theSumMap) {
249  result.push_back(HcalTriggerPrimitiveDigi(item.first));
250  HcalTrigTowerDetId detId(item.second.id());
251  if(detId.ietaAbs() >= theTrigTowerGeometry->firstHFTower(detId.version())) {
252  if (detId.version() == 0) {
253  analyzeHF(item.second, result.back(), RCTScaleShift);
254  } else if (detId.version() == 1) {
255  if (upgrade_hf_)
256  analyzeHF2017(item.second, result.back(), NCTScaleShift, LongvrsShortCut);
257  else
258  analyzeHF2016(item.second, result.back(), NCTScaleShift, LongvrsShortCut);
259  } else {
260  // Things are going to go poorly
261  }
262  }
263  else {
264  // Determine which energy reconstruction path to take based on the
265  // fine-grain availability:
266  // * QIE8 TP add entries into fgMap_
267  // * QIE11 TP add entries into fgUpgradeMap_
268  // (not for tower 16 unless HB is upgraded, too)
269  if (fgMap_.find(item.first) != fgMap_.end()) {
270  analyze(item.second, result.back());
271  } else if (fgUpgradeMap_.find(item.first) != fgUpgradeMap_.end()) {
272  analyze2017(item.second, result.back(), fg_algo);
273  }
274  }
275  }
276 
277  // Free up some memory
278  theSumMap.clear();
279  theTowerMapFGSum.clear();
280  HF_Veto.clear();
281  fgMap_.clear();
282  fgUpgradeMap_.clear();
283  theHFDetailMap.clear();
284  theHFUpgradeDetailMap.clear();
285 
286  return;
287 }
T getParameter(std::string const &) const
void analyze(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result)
adds the actual RecHits
HFUpgradeDetailMap theHFUpgradeDetailMap
void analyzeHF(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const int hf_lumi_shift)
void analyzeHF2016(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
bool exists(std::string const &parameterName) const
checks if a parameter exists
void push_back(T const &t)
const HcalTPGCompressor * outcoder_
const HcalTrigTowerGeometry * theTrigTowerGeometry
const HcalDbService * conditions_
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
int getFGVersionHBHE() const
get FineGrain Algorithm Version for HBHE
void addDigis(const T &collection, const Args &...digis)
const HcalTPParameters * getHcalTPParameters() const
const HcaluLUTTPGCoder * incoder_
void analyzeHF2017(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
const_reference back() const
void analyze2017(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const HcalFinegrainBit &fg_algo)
int firstHFTower(int version) const
void HcalTriggerPrimitiveAlgo::runFEFormatError ( const FEDRawDataCollection rawraw,
const HcalElectronicsMap emap,
HcalTrigPrimDigiCollection result 
)

Definition at line 664 of file HcalTriggerPrimitiveAlgo.cc.

References edm::SortedCollection< T, SORT >::begin(), HcalHTRData::check(), FEDRawData::data(), DetId::det(), runTauDisplay::eid, edm::SortedCollection< T, SORT >::end(), FEDRawDataCollection::FEDData(), HcalHTRData::getErrorsWord(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalBarrel, HcalEndcap, HcalForward, HcalHTRData::htrSlot(), HcalHTRData::htrTopBottom(), mps_fire::i, HcalHTRData::isHistogramEvent(), HcalElectronicsMap::lookup(), FEDNumbering::MAXHCALFEDID, FEDNumbering::MINHCALFEDID, DetId::null(), HcalHTRData::readoutVMECrateId(), HcalElectronicsId::setHTR(), FEDRawData::size(), HcalDCCHeader::SPIGOT_COUNT, DetId::subdetId(), theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().

Referenced by addDigis(), and HcalTrigPrimDigiProducer::produce().

667  {
668  std::set<uint32_t> FrontEndErrors;
669 
671  const FEDRawData& raw = rawraw->FEDData(i);
672  if (raw.size()<12) continue;
673  const HcalDCCHeader* dccHeader=(const HcalDCCHeader*)(raw.data());
674  if(!dccHeader) continue;
675  HcalHTRData htr;
676  for (int spigot=0; spigot<HcalDCCHeader::SPIGOT_COUNT; spigot++) {
677  if (!dccHeader->getSpigotPresent(spigot)) continue;
678  dccHeader->getSpigotData(spigot,htr,raw.size());
679  int dccid = dccHeader->getSourceId();
680  int errWord = htr.getErrorsWord() & 0x1FFFF;
681  bool HTRError = (!htr.check() || htr.isHistogramEvent() || (errWord & 0x800)!=0);
682 
683  if(HTRError) {
684  bool valid =false;
685  for(int fchan=0; fchan<3 && !valid; fchan++) {
686  for(int fib=0; fib<9 && !valid; fib++) {
687  HcalElectronicsId eid(fchan,fib,spigot,dccid-FEDNumbering::MINHCALFEDID);
688  eid.setHTR(htr.readoutVMECrateId(),htr.htrSlot(),htr.htrTopBottom());
689  DetId detId = emap->lookup(eid);
690  if(detId.null()) continue;
691  HcalSubdetector subdet=(HcalSubdetector(detId.subdetId()));
692  if (detId.det()!=4||
693  (subdet!=HcalBarrel && subdet!=HcalEndcap &&
694  subdet!=HcalForward )) continue;
695  std::vector<HcalTrigTowerDetId> ids = theTrigTowerGeometry->towerIds(detId);
696  for (std::vector<HcalTrigTowerDetId>::const_iterator triggerId=ids.begin(); triggerId != ids.end(); ++triggerId) {
697  FrontEndErrors.insert(triggerId->rawId());
698  }
699  //valid = true;
700  }
701  }
702  }
703  }
704  }
705 
706  // Loop over TP collection
707  // Set TP to zero if there is FE Format Error
708  HcalTriggerPrimitiveSample zeroSample(0);
709  for (HcalTrigPrimDigiCollection::iterator tp = result.begin(); tp != result.end(); ++tp){
710  if (FrontEndErrors.find(tp->id().rawId()) != FrontEndErrors.end()) {
711  for (int i=0; i<tp->size(); ++i) tp->setSample(i, zeroSample);
712  }
713  }
714 }
bool check() const
Check for a good event Requires a minimum length, matching wordcount and length, not an empty event...
Definition: HcalHTRData.cc:62
std::vector< HcalTrigTowerDetId > towerIds(const HcalDetId &cellId) const
the mapping to and from DetIds
unsigned int htrTopBottom() const
HcalElectronicsId-style HTR top/bottom (1=top/0=bottom)
Definition: HcalHTRData.cc:342
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
unsigned int htrSlot() const
HcalElectronicsId-style HTR slot.
Definition: HcalHTRData.cc:338
const HcalTrigTowerGeometry * theTrigTowerGeometry
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
HcalSubdetector
Definition: HcalAssistant.h:31
bool getSpigotPresent(unsigned int nspigot) const
Read the "PRESENT" bit for this spigot.
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
std::vector< HcalTriggerPrimitiveDigi >::iterator iterator
const_iterator end() const
int getSourceId() const
Definition: HcalDCCHeader.h:32
Definition: DetId.h:18
unsigned int getErrorsWord() const
Get the errors word.
Definition: HcalHTRData.h:157
bool null() const
is this a null id ?
Definition: DetId.h:45
unsigned int readoutVMECrateId() const
HcalElectronicsId-style VME crate number.
Definition: HcalHTRData.cc:346
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
Readout chain identification for Hcal.
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
bool isHistogramEvent() const
Is this event a histogram event? (do not call standard unpack in this case!!!!!)
Definition: HcalHTRData.cc:385
const_iterator begin() const
void HcalTriggerPrimitiveAlgo::runZS ( HcalTrigPrimDigiCollection tp)

Definition at line 650 of file HcalTriggerPrimitiveAlgo.cc.

References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), mps_fire::i, CaloTPGTranscoder_cfi::ZS, and ZS_threshold_I_.

Referenced by addDigis(), and HcalTrigPrimDigiProducer::produce().

650  {
651  for (HcalTrigPrimDigiCollection::iterator tp = result.begin(); tp != result.end(); ++tp){
652  bool ZS = true;
653  for (int i=0; i<tp->size(); ++i) {
654  if (tp->sample(i).compressedEt() > ZS_threshold_I_) {
655  ZS=false;
656  break;
657  }
658  }
659  if (ZS) tp->setZSInfo(false,true);
660  else tp->setZSInfo(true,false);
661  }
662 }
std::vector< HcalTriggerPrimitiveDigi >::iterator iterator
size_type size() const
void HcalTriggerPrimitiveAlgo::setNCTScaleShift ( int  shift)

Definition at line 763 of file HcalTriggerPrimitiveAlgo.cc.

References NCTScaleShift, and edm::shift.

Referenced by addDigis(), and HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().

763  {
765 }
static unsigned int const shift
void HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm ( int  algo)

Definition at line 757 of file HcalTriggerPrimitiveAlgo.cc.

References patPFMETCorrections_cff::algo, Exception, and peak_finder_algorithm_.

Referenced by addDigis(), and HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().

757  {
758  if (algo <=0 && algo>2)
759  throw cms::Exception("ERROR: Only algo 1 & 2 are supported.") << std::endl;
761 }
void HcalTriggerPrimitiveAlgo::setRCTScaleShift ( int  shift)

Definition at line 767 of file HcalTriggerPrimitiveAlgo.cc.

References RCTScaleShift, and edm::shift.

Referenced by addDigis(), and HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().

767  {
769 }
static unsigned int const shift
void HcalTriggerPrimitiveAlgo::setUpgradeFlags ( bool  hb,
bool  he,
bool  hf 
)
bool HcalTriggerPrimitiveAlgo::validChannel ( const QIE10DataFrame digi,
int  ts 
) const
private

Definition at line 528 of file HcalTriggerPrimitiveAlgo.cc.

References ecalMGPA::adc(), conditions_, HcalDbService::getHcalTPChannelParameter(), HcalDbService::getHcalTPParameters(), HcalTPChannelParameter::getMask(), QIE10DataFrame::id(), RecoTauDiscriminantConfiguration::mask, override_adc_hf_, override_adc_hf_value_, override_tdc_hf_, override_tdc_hf_value_, and metProducer_cfi::parameters.

Referenced by addDigis(), and addSignal().

529 {
531  if (mask)
532  return false;
533 
535  auto adc_threshold = parameters->getADCThresholdHF();
536  auto tdc_mask = parameters->getTDCMaskHF();
537 
538  if (override_adc_hf_)
539  adc_threshold = override_adc_hf_value_;
540  if (override_tdc_hf_)
541  tdc_mask = override_tdc_hf_value_;
542 
543  if (digi[ts].adc() < adc_threshold)
544  return true;
545 
546  return (1ul << digi[ts].le_tdc()) & tdc_mask;
547 }
int adc(sample_type sample)
get the ADC sample (12 bits)
const HcalTPChannelParameter * getHcalTPChannelParameter(const HcalGenericDetId &fId) const
edm::DataFrame::id_type id() const
const HcalDbService * conditions_
unsigned long long override_tdc_hf_value_
const HcalTPParameters * getHcalTPParameters() const
uint32_t getMask() const
get mask for channel validity and self trigger information
bool HcalTriggerPrimitiveAlgo::validUpgradeFG ( const HcalTrigTowerDetId id,
int  depth 
) const
private

Definition at line 727 of file HcalTriggerPrimitiveAlgo.cc.

References HBHE_OVERLAP_TOWER, LAST_FINEGRAIN_DEPTH, LAST_FINEGRAIN_TOWER, and upgrade_hb_.

Referenced by addDigis(), and addUpgradeFG().

728 {
730  return false;
731  if (id.ietaAbs() > LAST_FINEGRAIN_TOWER)
732  return false;
733  if (id.ietaAbs() == HBHE_OVERLAP_TOWER and not upgrade_hb_)
734  return false;
735  return true;
736 }

Member Data Documentation

const HcalDbService* HcalTriggerPrimitiveAlgo::conditions_
private

Definition at line 113 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), and validChannel().

uint32_t HcalTriggerPrimitiveAlgo::FG_HF_threshold_
private

Definition at line 119 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF2016(), and analyzeHF2017().

uint32_t HcalTriggerPrimitiveAlgo::FG_threshold_
private

Definition at line 118 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF().

FGbitMap HcalTriggerPrimitiveAlgo::fgMap_
private

Definition at line 180 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addFG(), analyze(), and run().

FGUpgradeMap HcalTriggerPrimitiveAlgo::fgUpgradeMap_
private

Definition at line 184 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addUpgradeFG(), analyze2017(), and run().

const int HcalTriggerPrimitiveAlgo::FIRST_FINEGRAIN_TOWER = 30
staticprivate

Definition at line 203 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF2016(), and analyzeHF2017().

const int HcalTriggerPrimitiveAlgo::HBHE_OVERLAP_TOWER = 16
staticprivate

Definition at line 198 of file HcalTriggerPrimitiveAlgo.h.

Referenced by validUpgradeFG().

TowerMapVeto HcalTriggerPrimitiveAlgo::HF_Veto
private

Definition at line 177 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), analyzeHF(), and run().

const HcaluLUTTPGCoder* HcalTriggerPrimitiveAlgo::incoder_
private

Definition at line 111 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), and run().

const int HcalTriggerPrimitiveAlgo::LAST_FINEGRAIN_DEPTH = 6
staticprivate

Definition at line 199 of file HcalTriggerPrimitiveAlgo.h.

Referenced by validUpgradeFG().

const int HcalTriggerPrimitiveAlgo::LAST_FINEGRAIN_TOWER = 28
staticprivate

Definition at line 200 of file HcalTriggerPrimitiveAlgo.h.

Referenced by validUpgradeFG().

int HcalTriggerPrimitiveAlgo::latency_
private

Definition at line 117 of file HcalTriggerPrimitiveAlgo.h.

HcalFeatureBit* HcalTriggerPrimitiveAlgo::LongvrsShortCut
private

Definition at line 175 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run().

uint32_t HcalTriggerPrimitiveAlgo::minSignalThreshold_
private

Definition at line 126 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal().

int HcalTriggerPrimitiveAlgo::NCTScaleShift
private

Definition at line 128 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), and setNCTScaleShift().

int HcalTriggerPrimitiveAlgo::numberOfPresamples_
private

Definition at line 123 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), analyze2017(), and HcalTriggerPrimitiveAlgo().

int HcalTriggerPrimitiveAlgo::numberOfPresamplesHF_
private
int HcalTriggerPrimitiveAlgo::numberOfSamples_
private

Definition at line 122 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), analyze2017(), and HcalTriggerPrimitiveAlgo().

int HcalTriggerPrimitiveAlgo::numberOfSamplesHF_
private
const HcalTPGCompressor* HcalTriggerPrimitiveAlgo::outcoder_
private
bool HcalTriggerPrimitiveAlgo::override_adc_hf_ = false
private

Definition at line 192 of file HcalTriggerPrimitiveAlgo.h.

Referenced by overrideParameters(), and validChannel().

uint32_t HcalTriggerPrimitiveAlgo::override_adc_hf_value_
private

Definition at line 193 of file HcalTriggerPrimitiveAlgo.h.

Referenced by overrideParameters(), and validChannel().

edm::ParameterSet HcalTriggerPrimitiveAlgo::override_parameters_
private

Definition at line 190 of file HcalTriggerPrimitiveAlgo.h.

Referenced by overrideParameters(), and run().

bool HcalTriggerPrimitiveAlgo::override_tdc_hf_ = false
private

Definition at line 194 of file HcalTriggerPrimitiveAlgo.h.

Referenced by overrideParameters(), and validChannel().

unsigned long long HcalTriggerPrimitiveAlgo::override_tdc_hf_value_
private

Definition at line 195 of file HcalTriggerPrimitiveAlgo.h.

Referenced by overrideParameters(), and validChannel().

int HcalTriggerPrimitiveAlgo::peak_finder_algorithm_
private

Definition at line 135 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), analyze2017(), and setPeakFinderAlgorithm().

bool HcalTriggerPrimitiveAlgo::peakfind_
private

Definition at line 115 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), and HcalTriggerPrimitiveAlgo().

uint32_t HcalTriggerPrimitiveAlgo::PMT_NoiseThreshold_
private

Definition at line 127 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF().

const int HcalTriggerPrimitiveAlgo::QIE10_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE10_LUT_BITMASK
staticprivate

Definition at line 206 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF2017().

const int HcalTriggerPrimitiveAlgo::QIE10_MAX_LINEARIZATION_ET = 0x7FF
staticprivate

Definition at line 209 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyzeHF2017().

const int HcalTriggerPrimitiveAlgo::QIE11_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE11_LUT_BITMASK
staticprivate

Definition at line 207 of file HcalTriggerPrimitiveAlgo.h.

const int HcalTriggerPrimitiveAlgo::QIE11_MAX_LINEARIZATION_ET = 0x7FF
staticprivate

Definition at line 210 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze2017().

const int HcalTriggerPrimitiveAlgo::QIE8_LINEARIZATION_ET = HcaluLUTTPGCoder::QIE8_LUT_BITMASK
staticprivate

Definition at line 205 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), analyzeHF(), and analyzeHF2016().

int HcalTriggerPrimitiveAlgo::RCTScaleShift
private

Definition at line 129 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), and setRCTScaleShift().

HFDetailMap HcalTriggerPrimitiveAlgo::theHFDetailMap
private

Definition at line 152 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), analyzeHF2016(), and run().

HFUpgradeDetailMap HcalTriggerPrimitiveAlgo::theHFUpgradeDetailMap
private

Definition at line 160 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), analyzeHF2017(), and run().

SumMap HcalTriggerPrimitiveAlgo::theSumMap
private

Definition at line 143 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), and run().

double HcalTriggerPrimitiveAlgo::theThreshold
private

Definition at line 114 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), and analyze2017().

TowerMapFGSum HcalTriggerPrimitiveAlgo::theTowerMapFGSum
private

Definition at line 164 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), analyzeHF(), and run().

const HcalTrigTowerGeometry* HcalTriggerPrimitiveAlgo::theTrigTowerGeometry
private

Definition at line 140 of file HcalTriggerPrimitiveAlgo.h.

Referenced by addSignal(), analyze2017(), run(), and runFEFormatError().

bool HcalTriggerPrimitiveAlgo::upgrade_hb_ = false
private

Definition at line 186 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), setUpgradeFlags(), and validUpgradeFG().

bool HcalTriggerPrimitiveAlgo::upgrade_he_ = false
private

Definition at line 187 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), and setUpgradeFlags().

bool HcalTriggerPrimitiveAlgo::upgrade_hf_ = false
private

Definition at line 188 of file HcalTriggerPrimitiveAlgo.h.

Referenced by run(), and setUpgradeFlags().

std::vector<double> HcalTriggerPrimitiveAlgo::weights_
private

Definition at line 116 of file HcalTriggerPrimitiveAlgo.h.

Referenced by analyze(), and analyze2017().

uint32_t HcalTriggerPrimitiveAlgo::ZS_threshold_
private

Definition at line 120 of file HcalTriggerPrimitiveAlgo.h.

Referenced by HcalTriggerPrimitiveAlgo().

int HcalTriggerPrimitiveAlgo::ZS_threshold_I_
private

Definition at line 121 of file HcalTriggerPrimitiveAlgo.h.

Referenced by HcalTriggerPrimitiveAlgo(), and runZS().