CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 74 of file HLTCaloObjInRegionsProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 84 of file HLTCaloObjInRegionsProducer.cc.

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")),
90  token_(consumesColl.consumes<T1>(para.getParameter<edm::InputTag>("inputColl"))) {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< T1 > token_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

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

Implements EtaPhiRegionDataBase.

Definition at line 291 of file HLTCaloObjInRegionsProducer.cc.

References HLT_FULL_cff::cands.

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  }
301 }
edm::EDGetTokenT< T1 > token_

Member Data Documentation

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

Definition at line 78 of file HLTCaloObjInRegionsProducer.cc.

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

Definition at line 79 of file HLTCaloObjInRegionsProducer.cc.

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

Definition at line 80 of file HLTCaloObjInRegionsProducer.cc.

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

Definition at line 77 of file HLTCaloObjInRegionsProducer.cc.

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

Definition at line 76 of file HLTCaloObjInRegionsProducer.cc.

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

Definition at line 81 of file HLTCaloObjInRegionsProducer.cc.