CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
pat::helper::OverlapTest Class Referenceabstract

#include <OverlapTest.h>

Inheritance diagram for pat::helper::OverlapTest:
pat::helper::BasicOverlapTest pat::helper::OverlapBySuperClusterSeed

Public Member Functions

virtual void done ()
 end of event method. does nothing More...
 
virtual bool fillOverlapsForItem (const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const =0
 
const std::string & name () const
 
 OverlapTest (const std::string &name, const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 constructor: reads 'src' and 'requireNoOverlaps' parameters More...
 
virtual void readInput (const edm::Event &iEvent, const edm::EventSetup &iSetup)=0
 initializer for each event. to be implemented in child classes. More...
 
bool requireNoOverlaps () const
 
virtual ~OverlapTest ()
 destructor, does nothing More...
 

Protected Attributes

std::string name_
 
bool requireNoOverlaps_
 
edm::EDGetTokenT
< reco::CandidateView
srcToken_
 

Detailed Description

Definition at line 18 of file OverlapTest.h.

Constructor & Destructor Documentation

pat::helper::OverlapTest::OverlapTest ( const std::string &  name,
const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)
inline

constructor: reads 'src' and 'requireNoOverlaps' parameters

Definition at line 21 of file OverlapTest.h.

21  :
23  name_(name),
24  requireNoOverlaps_(iConfig.getParameter<bool>("requireNoOverlaps")) {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::CandidateView > srcToken_
Definition: OverlapTest.h:39
const std::string & name() const
Definition: OverlapTest.h:36
virtual pat::helper::OverlapTest::~OverlapTest ( )
inlinevirtual

destructor, does nothing

Definition at line 26 of file OverlapTest.h.

26 {}

Member Function Documentation

virtual void pat::helper::OverlapTest::done ( )
inlinevirtual

end of event method. does nothing

Definition at line 33 of file OverlapTest.h.

33 {}
virtual bool pat::helper::OverlapTest::fillOverlapsForItem ( const reco::Candidate item,
reco::CandidatePtrVector overlapsToFill 
) const
pure virtual

check for overlaps for a given item. to be implemented in child classes return true if overlaps have been found, and fills the PtrVector

Implemented in pat::helper::OverlapBySuperClusterSeed, and pat::helper::BasicOverlapTest.

const std::string& pat::helper::OverlapTest::name ( void  ) const
inline
virtual void pat::helper::OverlapTest::readInput ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
pure virtual

initializer for each event. to be implemented in child classes.

Implemented in pat::helper::OverlapBySuperClusterSeed, and pat::helper::BasicOverlapTest.

bool pat::helper::OverlapTest::requireNoOverlaps ( ) const
inline

Definition at line 37 of file OverlapTest.h.

References requireNoOverlaps_.

37 { return requireNoOverlaps_; }

Member Data Documentation

std::string pat::helper::OverlapTest::name_
protected

Definition at line 40 of file OverlapTest.h.

Referenced by name().

bool pat::helper::OverlapTest::requireNoOverlaps_
protected

Definition at line 41 of file OverlapTest.h.

Referenced by requireNoOverlaps().

edm::EDGetTokenT<reco::CandidateView> pat::helper::OverlapTest::srcToken_
protected