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)
 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::InputTag src_
 

Detailed Description

Definition at line 17 of file OverlapTest.h.

Constructor & Destructor Documentation

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

constructor: reads 'src' and 'requireNoOverlaps' parameters

Definition at line 20 of file OverlapTest.h.

20  :
21  src_(iConfig.getParameter<edm::InputTag>("src")),
22  name_(name),
23  requireNoOverlaps_(iConfig.getParameter<bool>("requireNoOverlaps")) {}
T getParameter(std::string const &) const
const std::string & name() const
Definition: OverlapTest.h:35
virtual pat::helper::OverlapTest::~OverlapTest ( )
inlinevirtual

destructor, does nothing

Definition at line 25 of file OverlapTest.h.

25 {}

Member Function Documentation

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

end of event method. does nothing

Definition at line 32 of file OverlapTest.h.

32 {}
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.

Referenced by parserPerfsuiteMetadata.parserPerfsuiteMetadata::readCmsScimarkTest().

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

Definition at line 36 of file OverlapTest.h.

References requireNoOverlaps_.

36 { return requireNoOverlaps_; }

Member Data Documentation

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

Definition at line 39 of file OverlapTest.h.

Referenced by name().

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

Definition at line 40 of file OverlapTest.h.

Referenced by requireNoOverlaps().

edm::InputTag pat::helper::OverlapTest::src_
protected