CMS 3D CMS Logo

Public Member Functions | Protected Attributes

pat::helper::OverlapTest Class Reference

#include <OverlapTest.h>

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

List of all members.

Public Member Functions

virtual void done ()
 end of event method. does nothing
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
virtual void readInput (const edm::Event &iEvent, const edm::EventSetup &iSetup)=0
 initializer for each event. to be implemented in child classes.
bool requireNoOverlaps () const
virtual ~OverlapTest ()
 destructor, does nothing

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.

                                                                           :
            src_(iConfig.getParameter<edm::InputTag>("src")),
            name_(name),
            requireNoOverlaps_(iConfig.getParameter<bool>("requireNoOverlaps")) {}
virtual pat::helper::OverlapTest::~OverlapTest ( ) [inline, virtual]

destructor, does nothing

Definition at line 25 of file OverlapTest.h.

{}

Member Function Documentation

virtual void pat::helper::OverlapTest::done ( ) [inline, virtual]

end of event method. does nothing

Definition at line 32 of file OverlapTest.h.

{}
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::BasicOverlapTest, and pat::helper::OverlapBySuperClusterSeed.

const std::string& pat::helper::OverlapTest::name ( void  ) const [inline]

Definition at line 35 of file OverlapTest.h.

References name_.

Referenced by pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem().

{ return name_; }
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::BasicOverlapTest, and pat::helper::OverlapBySuperClusterSeed.

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

Definition at line 36 of file OverlapTest.h.

References requireNoOverlaps_.

{ return requireNoOverlaps_; } 

Member Data Documentation

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

Definition at line 39 of file OverlapTest.h.

Referenced by name().

Definition at line 40 of file OverlapTest.h.

Referenced by requireNoOverlaps().