CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
EtaPhiRegionData< T1 > Class Template Reference

#include <HLTCaloObjInRegionsProducer.h>

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
 

Static Public Member Functions

template<typename T2 >
static T2::const_iterator beginIt (const T2 &coll)
 
template<typename T2 >
static BXVector< T2 >::const_iterator beginIt (const BXVector< T2 > &coll)
 
template<typename T2 >
static T2::const_iterator endIt (const T2 &coll)
 
template<typename T2 >
static BXVector< T2 >::const_iterator endIt (const BXVector< T2 > &coll)
 

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 77 of file HLTCaloObjInRegionsProducer.h.

Constructor & Destructor Documentation

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

Definition at line 86 of file HLTCaloObjInRegionsProducer.h.

86  :
87  minEt_(para.getParameter<double>("minEt")),
88  maxEt_(para.getParameter<double>("maxEt")),
89  maxDeltaR_(para.getParameter<double>("maxDeltaR")),
90  maxDEta_(para.getParameter<double>("maxDEta")),
91  maxDPhi_(para.getParameter<double>("maxDPhi")),
92  token_(consumesColl.consumes<T1>(para.getParameter<edm::InputTag>("inputColl"))){}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::EDGetTokenT< T1 > token_

Member Function Documentation

template<typename T1>
template<typename T2 >
static T2::const_iterator EtaPhiRegionData< T1 >::beginIt ( const T2 &  coll)
inlinestatic

Definition at line 95 of file HLTCaloObjInRegionsProducer.h.

95 {return coll.begin();}
JetCorrectorParametersCollection coll
Definition: classes.h:10
template<typename T1>
template<typename T2 >
static BXVector<T2>::const_iterator EtaPhiRegionData< T1 >::beginIt ( const BXVector< T2 > &  coll)
inlinestatic

Definition at line 97 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::begin().

97 {return coll.begin(0);}
const_iterator begin(int bx) const
template<typename T1>
template<typename T2 >
static T2::const_iterator EtaPhiRegionData< T1 >::endIt ( const T2 &  coll)
inlinestatic

Definition at line 96 of file HLTCaloObjInRegionsProducer.h.

96 {return coll.end();}
JetCorrectorParametersCollection coll
Definition: classes.h:10
template<typename T1>
template<typename T2 >
static BXVector<T2>::const_iterator EtaPhiRegionData< T1 >::endIt ( const BXVector< T2 > &  coll)
inlinestatic

Definition at line 98 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::end().

98 {return coll.end(0);}
const_iterator end(int bx) const
template<typename CandCollType >
void EtaPhiRegionData< CandCollType >::getEtaPhiRegions ( const edm::Event event,
std::vector< EtaPhiRegion > &  regions 
) const
overridevirtual

Implements EtaPhiRegionDataBase.

Definition at line 304 of file HLTCaloObjInRegionsProducer.h.

References egammaForCoreTracking_cff::cands, EtaPhiRegion::EtaPhiRegion(), EtaPhiRegion::maxDEta_, and EtaPhiRegion::maxDPhi_.

305 {
307  event.getByToken(token_,cands);
308 
309  for(auto candIt = beginIt(*cands);candIt!=endIt(*cands);++candIt){
310  if(candIt->et() >= minEt_ && (maxEt_<0 || candIt->et() < maxEt_)){
311  regions.push_back(EtaPhiRegion(candIt->eta(),candIt->phi(),
313  }
314 
315  }
316 }
static T2::const_iterator beginIt(const T2 &coll)
static T2::const_iterator endIt(const T2 &coll)
edm::EDGetTokenT< T1 > token_

Member Data Documentation

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

Definition at line 81 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 82 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 83 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 80 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 79 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 84 of file HLTCaloObjInRegionsProducer.h.