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 290 of file HLTCaloObjInRegionsProducer.cc.

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

References HLT_FULL_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
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15146
edm::ParameterSet
Definition: ParameterSet.h:47
cand
Definition: decayParser.h:32
EtaPhiRegionData::minEt_
float minEt_
Definition: HLTCaloObjInRegionsProducer.cc:75
EtaPhiRegionData::maxDPhi_
float maxDPhi_
Definition: HLTCaloObjInRegionsProducer.cc:79
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:76
EtaPhiRegionData::token_
edm::EDGetTokenT< T1 > token_
Definition: HLTCaloObjInRegionsProducer.cc:80
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
EtaPhiRegionData::EtaPhiRegionData
EtaPhiRegionData(const edm::ParameterSet &para, edm::ConsumesCollector &consumesColl)
Definition: HLTCaloObjInRegionsProducer.cc:83