CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
OverlapExclusionSelector< C, T, O > Class Template Reference

#include <OverlapExclusionSelector.h>

Public Member Functions

void newEvent (const edm::Event &, const edm::EventSetup &) const
 
bool operator() (const T &) const
 
 OverlapExclusionSelector (const edm::ParameterSet &)
 

Private Attributes

C::const_iterator begin_
 
C::const_iterator end_
 
overlap_
 
edm::InputTag src_
 

Detailed Description

template<typename C, typename T, typename O>
class OverlapExclusionSelector< C, T, O >

Definition at line 11 of file OverlapExclusionSelector.h.

Constructor & Destructor Documentation

template<typename C , typename T , typename O >
OverlapExclusionSelector< C, T, O >::OverlapExclusionSelector ( const edm::ParameterSet cfg)

Definition at line 23 of file OverlapExclusionSelector.h.

23  :
24  src_(cfg.template getParameter<edm::InputTag>("overlap")),
25  overlap_(cfg) {
26 }

Member Function Documentation

template<typename C , typename T , typename O >
void OverlapExclusionSelector< C, T, O >::newEvent ( const edm::Event evt,
const edm::EventSetup  
) const

Definition at line 29 of file OverlapExclusionSelector.h.

References edm::Event::getByLabel(), and h.

29  {
31  evt.getByLabel(src_, h);
32  begin_ = h->begin();
33  end_ = h->end();
34 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<typename C , typename T , typename O >
bool OverlapExclusionSelector< C, T, O >::operator() ( const T t) const

Definition at line 37 of file OverlapExclusionSelector.h.

References i.

37  {
38  bool noOverlap = true;
39  for(typename C::const_iterator i = begin_; i != end_; ++i) {
40  if(overlap_(*i, t)) {
41  noOverlap = false;
42  break;
43  }
44  }
45  return noOverlap;
46 }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

template<typename C , typename T , typename O >
C::const_iterator OverlapExclusionSelector< C, T, O >::begin_
mutableprivate

Definition at line 18 of file OverlapExclusionSelector.h.

template<typename C , typename T , typename O >
C::const_iterator OverlapExclusionSelector< C, T, O >::end_
mutableprivate

Definition at line 18 of file OverlapExclusionSelector.h.

template<typename C , typename T , typename O >
O OverlapExclusionSelector< C, T, O >::overlap_
private

Definition at line 19 of file OverlapExclusionSelector.h.

template<typename C , typename T , typename O >
edm::InputTag OverlapExclusionSelector< C, T, O >::src_
private

Definition at line 17 of file OverlapExclusionSelector.h.