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 }
HGCalConcentratorThresholdImpl::HGCalConcentratorThresholdImpl
HGCalConcentratorThresholdImpl(const edm::ParameterSet &conf)
Definition: HGCalConcentratorThresholdImpl.cc:3
HGCalTriggerTools::isScintillator
bool isScintillator(const DetId &id) const
Definition: HGCalTriggerTools.h:46
edm::ParameterSet
Definition: ParameterSet.h:36
HGCalConcentratorThresholdImpl::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalConcentratorThresholdImpl.h:23
HGCalConcentratorThresholdImpl::select
void select(const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
Definition: HGCalConcentratorThresholdImpl.cc:7
HGCalConcentratorThresholdImpl::threshold_scintillator_
double threshold_scintillator_
Definition: HGCalConcentratorThresholdImpl.h:21
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:426
HGCalConcentratorThresholdImpl.h
HGCalConcentratorThresholdImpl::threshold_silicon_
double threshold_silicon_
Definition: HGCalConcentratorThresholdImpl.h:20