CMS 3D CMS Logo

HGCalConcentratorThresholdImpl.cc
Go to the documentation of this file.
2 
4  : threshold_silicon_(conf.getParameter<double>("threshold_silicon")),
5  threshold_scintillator_(conf.getParameter<double>("threshold_scintillator")) {}
6 
7 void HGCalConcentratorThresholdImpl::select(const std::vector<l1t::HGCalTriggerCell>& trigCellVecInput,
8  std::vector<l1t::HGCalTriggerCell>& trigCellVecOutput) {
9  for (const auto& trigCell : trigCellVecInput) {
10  bool isScintillator = triggerTools_.isScintillator(trigCell.detId());
11  double threshold = (isScintillator ? threshold_scintillator_ : threshold_silicon_);
12  if (trigCell.mipPt() >= threshold) {
13  trigCellVecOutput.push_back(trigCell);
14  }
15  }
16 }
bool isScintillator(const DetId &id) const
HGCalConcentratorThresholdImpl(const edm::ParameterSet &conf)
void select(const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput)