CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HGCalConcentratorThresholdImpl Class Reference

#include <HGCalConcentratorThresholdImpl.h>

Public Member Functions

void eventSetup (const edm::EventSetup &es)
 
 HGCalConcentratorThresholdImpl (const edm::ParameterSet &conf)
 
void select (const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
 

Private Attributes

double threshold_scintillator_
 
double threshold_silicon_
 
HGCalTriggerTools triggerTools_
 

Detailed Description

Definition at line 9 of file HGCalConcentratorThresholdImpl.h.

Constructor & Destructor Documentation

◆ HGCalConcentratorThresholdImpl()

HGCalConcentratorThresholdImpl::HGCalConcentratorThresholdImpl ( const edm::ParameterSet conf)

Definition at line 3 of file HGCalConcentratorThresholdImpl.cc.

4  : threshold_silicon_(conf.getParameter<double>("threshold_silicon")),
5  threshold_scintillator_(conf.getParameter<double>("threshold_scintillator")) {}

Member Function Documentation

◆ eventSetup()

void HGCalConcentratorThresholdImpl::eventSetup ( const edm::EventSetup es)
inline

◆ select()

void HGCalConcentratorThresholdImpl::select ( const std::vector< l1t::HGCalTriggerCell > &  trigCellVecInput,
std::vector< l1t::HGCalTriggerCell > &  trigCellVecOutput,
std::vector< l1t::HGCalTriggerCell > &  trigCellVecNotSelected 
)

Definition at line 7 of file HGCalConcentratorThresholdImpl.cc.

9  {
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 }

References HGCalTriggerTools::isScintillator(), remoteMonitoring_LED_IterMethod_cfg::threshold, threshold_scintillator_, threshold_silicon_, and triggerTools_.

Member Data Documentation

◆ threshold_scintillator_

double HGCalConcentratorThresholdImpl::threshold_scintillator_
private

Definition at line 21 of file HGCalConcentratorThresholdImpl.h.

Referenced by select().

◆ threshold_silicon_

double HGCalConcentratorThresholdImpl::threshold_silicon_
private

Definition at line 20 of file HGCalConcentratorThresholdImpl.h.

Referenced by select().

◆ triggerTools_

HGCalTriggerTools HGCalConcentratorThresholdImpl::triggerTools_
private

Definition at line 23 of file HGCalConcentratorThresholdImpl.h.

Referenced by eventSetup(), and select().

HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalTriggerTools::isScintillator
bool isScintillator(const DetId &id) const
Definition: HGCalTriggerTools.h:46
HGCalConcentratorThresholdImpl::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalConcentratorThresholdImpl.h:23
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HGCalConcentratorThresholdImpl::threshold_scintillator_
double threshold_scintillator_
Definition: HGCalConcentratorThresholdImpl.h:21
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:426
HGCalConcentratorThresholdImpl::threshold_silicon_
double threshold_silicon_
Definition: HGCalConcentratorThresholdImpl.h:20