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  std::vector<l1t::HGCalTriggerCell>& trigCellVecNotSelected) {
10  for (const auto& trigCell : trigCellVecInput) {
11  bool isScintillator = triggerTools_.isScintillator(trigCell.detId());
12  double threshold = (isScintillator ? threshold_scintillator_ : threshold_silicon_);
13  if (trigCell.mipPt() >= threshold) {
14  trigCellVecOutput.push_back(trigCell);
15  } else {
16  trigCellVecNotSelected.push_back(trigCell);
17  }
18  }
19 }
bool isScintillator(const DetId &id) const
void select(const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
HGCalConcentratorThresholdImpl(const edm::ParameterSet &conf)