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

Constructor & Destructor Documentation

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

Definition at line 87 of file HLTCaloObjInRegionsProducer.h.

87  :
88  minEt_(para.getParameter<double>("minEt")),
89  maxEt_(para.getParameter<double>("maxEt")),
90  maxDeltaR_(para.getParameter<double>("maxDeltaR")),
91  maxDEta_(para.getParameter<double>("maxDEta")),
92  maxDPhi_(para.getParameter<double>("maxDPhi")),
93  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 96 of file HLTCaloObjInRegionsProducer.h.

96 {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 98 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::begin().

98 {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 97 of file HLTCaloObjInRegionsProducer.h.

97 {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 99 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::end().

99 {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 284 of file HLTCaloObjInRegionsProducer.h.

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

285 {
287  event.getByToken(token_,cands);
288 
289  for(auto candIt = beginIt(*cands);candIt!=endIt(*cands);++candIt){
290  if(candIt->et() >= minEt_ && (maxEt_<0 || candIt->et() < maxEt_)){
291  regions.push_back(EtaPhiRegion(candIt->eta(),candIt->phi(),
293  }
294 
295  }
296 }
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 82 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 83 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 84 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 81 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 80 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 85 of file HLTCaloObjInRegionsProducer.h.