CMS 3D CMS Logo

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

#include <HGCalConcentratorThresholdImpl.h>

Public Member Functions

 HGCalConcentratorThresholdImpl (const edm::ParameterSet &conf)
 
void select (const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
 
void setGeometry (const HGCalTriggerGeometryBase *const geom)
 

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

Member Function Documentation

◆ 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.

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

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 }
bool isScintillator(const DetId &id) const

◆ setGeometry()

void HGCalConcentratorThresholdImpl::setGeometry ( const HGCalTriggerGeometryBase *const  geom)
inline

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 select(), and setGeometry().