CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EtaPhiRegionData< T1 > Class Template Reference
Inheritance diagram for EtaPhiRegionData< T1 >:
EtaPhiRegionDataBase

Public Member Functions

 EtaPhiRegionData (const edm::ParameterSet &para, edm::ConsumesCollector &consumesColl)
 
void getEtaPhiRegions (const edm::Event &, std::vector< EtaPhiRegion > &) const override
 
- Public Member Functions inherited from EtaPhiRegionDataBase
 EtaPhiRegionDataBase ()
 
virtual ~EtaPhiRegionDataBase ()=default
 

Private Attributes

float maxDeltaR_
 
float maxDEta_
 
float maxDPhi_
 
float maxEt_
 
float minEt_
 
edm::EDGetTokenT< T1 > token_
 

Detailed Description

template<typename T1>
class EtaPhiRegionData< T1 >

Definition at line 73 of file HLTCaloObjInRegionsProducer.cc.

Constructor & Destructor Documentation

◆ EtaPhiRegionData()

template<typename T1 >
EtaPhiRegionData< T1 >::EtaPhiRegionData ( const edm::ParameterSet para,
edm::ConsumesCollector consumesColl 
)
inline

Definition at line 83 of file HLTCaloObjInRegionsProducer.cc.

83  :
85  : minEt_(para.getParameter<double>("minEt")),
86  maxEt_(para.getParameter<double>("maxEt")),
87  maxDeltaR_(para.getParameter<double>("maxDeltaR")),
88  maxDEta_(para.getParameter<double>("maxDEta")),
89  maxDPhi_(para.getParameter<double>("maxDPhi")),

Member Function Documentation

◆ getEtaPhiRegions()

template<typename CandCollType >
void EtaPhiRegionData< CandCollType >::getEtaPhiRegions ( const edm::Event event,
std::vector< EtaPhiRegion > &  regions 
) const
overridevirtual

Implements EtaPhiRegionDataBase.

Definition at line 289 of file HLTCaloObjInRegionsProducer.cc.

291  {
293  event.getByToken(token_, cands);
294 
295  for (auto const& cand : *cands) {
296  if (cand.et() >= minEt_ && (maxEt_ < 0 || cand.et() < maxEt_)) {
297  regions.push_back(EtaPhiRegion(cand.eta(), cand.phi(), maxDeltaR_, maxDEta_, maxDPhi_));
298  }
299  }

References HLT_2018_cff::cands.

Member Data Documentation

◆ maxDeltaR_

template<typename T1 >
float EtaPhiRegionData< T1 >::maxDeltaR_
private

Definition at line 77 of file HLTCaloObjInRegionsProducer.cc.

◆ maxDEta_

template<typename T1 >
float EtaPhiRegionData< T1 >::maxDEta_
private

Definition at line 78 of file HLTCaloObjInRegionsProducer.cc.

◆ maxDPhi_

template<typename T1 >
float EtaPhiRegionData< T1 >::maxDPhi_
private

Definition at line 79 of file HLTCaloObjInRegionsProducer.cc.

◆ maxEt_

template<typename T1 >
float EtaPhiRegionData< T1 >::maxEt_
private

Definition at line 76 of file HLTCaloObjInRegionsProducer.cc.

◆ minEt_

template<typename T1 >
float EtaPhiRegionData< T1 >::minEt_
private

Definition at line 75 of file HLTCaloObjInRegionsProducer.cc.

◆ token_

template<typename T1 >
edm::EDGetTokenT<T1> EtaPhiRegionData< T1 >::token_
private

Definition at line 80 of file HLTCaloObjInRegionsProducer.cc.

EtaPhiRegionData::maxDeltaR_
float maxDeltaR_
Definition: HLTCaloObjInRegionsProducer.cc:77
edm::Handle
Definition: AssociativeIterator.h:50
EtaPhiRegion
Definition: HLTCaloObjInRegionsProducer.cc:45
EtaPhiRegionData::maxEt_
float maxEt_
Definition: HLTCaloObjInRegionsProducer.cc:76
EtaPhiRegionData::maxDEta_
float maxDEta_
Definition: HLTCaloObjInRegionsProducer.cc:78
edm::ParameterSet
Definition: ParameterSet.h:36
cand
Definition: decayParser.h:34
EtaPhiRegionData::minEt_
float minEt_
Definition: HLTCaloObjInRegionsProducer.cc:75
EtaPhiRegionData::maxDPhi_
float maxDPhi_
Definition: HLTCaloObjInRegionsProducer.cc:79
HLT_2018_cff.cands
cands
Definition: HLT_2018_cff.py:13762
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:76
EtaPhiRegionData::token_
edm::EDGetTokenT< T1 > token_
Definition: HLTCaloObjInRegionsProducer.cc:80
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
EtaPhiRegionData::EtaPhiRegionData
EtaPhiRegionData(const edm::ParameterSet &para, edm::ConsumesCollector &consumesColl)
Definition: HLTCaloObjInRegionsProducer.cc:83