CMS 3D CMS Logo

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 &cfg, edm::ConsumesCollector &&iC)
 
 OverlapExclusionSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
 

Private Attributes

C::const_iterator begin_
 
C::const_iterator end_
 
overlap_
 
edm::EDGetTokenT< C > srcToken_
 

Detailed Description

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

Definition at line 14 of file OverlapExclusionSelector.h.

Constructor & Destructor Documentation

◆ OverlapExclusionSelector() [1/2]

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

Definition at line 16 of file OverlapExclusionSelector.h.

◆ OverlapExclusionSelector() [2/2]

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

Definition at line 29 of file OverlapExclusionSelector.h.

30  : srcToken_(iC.consumes<C>(cfg.template getParameter<edm::InputTag>("overlap"))), overlap_(cfg) {}

Member Function Documentation

◆ newEvent()

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

Definition at line 33 of file OverlapExclusionSelector.h.

33  {
35  evt.getByToken(srcToken_, h);
36  begin_ = h->begin();
37  end_ = h->end();
38 }

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

◆ operator()()

template<typename C , typename T , typename O >
bool OverlapExclusionSelector< C, T, O >::operator() ( const T t) const

Definition at line 41 of file OverlapExclusionSelector.h.

41  {
42  bool noOverlap = true;
43  for (typename C::const_iterator i = begin_; i != end_; ++i) {
44  if (overlap_(*i, t)) {
45  noOverlap = false;
46  break;
47  }
48  }
49  return noOverlap;
50 }

References mps_fire::i, and submitPVValidationJobs::t.

Member Data Documentation

◆ begin_

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

Definition at line 24 of file OverlapExclusionSelector.h.

◆ end_

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

Definition at line 24 of file OverlapExclusionSelector.h.

◆ overlap_

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

Definition at line 25 of file OverlapExclusionSelector.h.

◆ srcToken_

template<typename C , typename T , typename O >
edm::EDGetTokenT<C> OverlapExclusionSelector< C, T, O >::srcToken_
private

Definition at line 23 of file OverlapExclusionSelector.h.

mps_fire.i
i
Definition: mps_fire.py:428
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
edm::Handle
Definition: AssociativeIterator.h:50
OverlapExclusionSelector::srcToken_
edm::EDGetTokenT< C > srcToken_
Definition: OverlapExclusionSelector.h:23
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:531
h
OverlapExclusionSelector::overlap_
O overlap_
Definition: OverlapExclusionSelector.h:25
looper.cfg
cfg
Definition: looper.py:297
gen::C
C
Definition: PomwigHadronizer.cc:78
OverlapExclusionSelector::begin_
C::const_iterator begin_
Definition: OverlapExclusionSelector.h:24
OverlapExclusionSelector::end_
C::const_iterator end_
Definition: OverlapExclusionSelector.h:24
OverlapExclusionSelector::OverlapExclusionSelector
OverlapExclusionSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition: OverlapExclusionSelector.h:16
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644