test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 

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

Constructor & Destructor Documentation

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

Definition at line 92 of file HLTCaloObjInRegionsProducer.h.

92  :
93  minEt_(para.getParameter<double>("minEt")),
94  maxEt_(para.getParameter<double>("maxEt")),
95  maxDeltaR_(para.getParameter<double>("maxDeltaR")),
96  maxDEta_(para.getParameter<double>("maxDEta")),
97  maxDPhi_(para.getParameter<double>("maxDPhi")),
98  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 101 of file HLTCaloObjInRegionsProducer.h.

101 {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 103 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::begin().

103 {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 102 of file HLTCaloObjInRegionsProducer.h.

102 {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 104 of file HLTCaloObjInRegionsProducer.h.

References BXVector< T >::end().

104 {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 286 of file HLTCaloObjInRegionsProducer.h.

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

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

Definition at line 88 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 89 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 86 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 85 of file HLTCaloObjInRegionsProducer.h.

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

Definition at line 90 of file HLTCaloObjInRegionsProducer.h.