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)
 

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 ( 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")) {}
T getParameter(std::string const &) const

Member Function Documentation

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

Definition at line 16 of file HGCalConcentratorThresholdImpl.h.

References HGCalTriggerTools::eventSetup(), and triggerTools_.

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

Definition at line 7 of file HGCalConcentratorThresholdImpl.cc.

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

8  {
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

Member Data Documentation

double HGCalConcentratorThresholdImpl::threshold_scintillator_
private

Definition at line 20 of file HGCalConcentratorThresholdImpl.h.

Referenced by select().

double HGCalConcentratorThresholdImpl::threshold_silicon_
private

Definition at line 19 of file HGCalConcentratorThresholdImpl.h.

Referenced by select().

HGCalTriggerTools HGCalConcentratorThresholdImpl::triggerTools_
private

Definition at line 22 of file HGCalConcentratorThresholdImpl.h.

Referenced by eventSetup(), and select().