Produces a list containing a single vertex selected by some criteria. More...
#include "PhysicsTools/PatAlgos/plugins/PATSingleVertexSelector.h"
Public Member Functions | |
virtual bool | filter (edm::Event &iEvent, const edm::EventSetup &iSetup) |
PATSingleVertexSelector (const edm::ParameterSet &iConfig) | |
~PATSingleVertexSelector () | |
Public Member Functions inherited from edm::EDFilter | |
EDFilter () | |
virtual | ~EDFilter () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Types | |
typedef StringCutObjectSelector < reco::Candidate > | CandSel |
enum | Mode { First, NearestToCand, FromCand, FromBeamSpot } |
typedef StringCutObjectSelector < reco::Vertex > | VtxSel |
Private Member Functions | |
std::auto_ptr< std::vector < reco::Vertex > > | filter_ (Mode mode, const edm::Event &iEvent, const edm::EventSetup &iSetup) |
bool | hasMode_ (Mode mode) const |
Static Private Member Functions | |
static Mode | parseMode (const std::string &name) |
Private Attributes | |
edm::InputTag | beamSpot_ |
const reco::Candidate * | bestCand_ |
std::vector< edm::InputTag > | candidates_ |
std::auto_ptr< CandSel > | candPreselection_ |
bool | doFilterEvents_ |
std::vector< Mode > | modes_ |
std::vector< const reco::Vertex * > | selVtxs_ |
edm::InputTag | vertices_ |
std::auto_ptr< VtxSel > | vtxPreselection_ |
Additional Inherited Members | |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
typedef WorkerT< EDFilter > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDFilter | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Produces a list containing a single vertex selected by some criteria.
Definition at line 27 of file PATSingleVertexSelector.h.
|
private |
Definition at line 39 of file PATSingleVertexSelector.h.
|
private |
Definition at line 38 of file PATSingleVertexSelector.h.
|
private |
Enumerator | |
---|---|
First | |
NearestToCand | |
FromCand | |
FromBeamSpot |
Definition at line 37 of file PATSingleVertexSelector.h.
|
explicit |
Definition at line 27 of file PATSingleVertexSelector.cc.
References beamSpot_, candidates_, candPreselection_, doFilterEvents_, edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), First, FromBeamSpot, FromCand, edm::ParameterSet::getParameter(), hasMode_(), modes_, NearestToCand, parseMode(), vertices_, and vtxPreselection_.
PATSingleVertexSelector::~PATSingleVertexSelector | ( | ) |
Definition at line 63 of file PATSingleVertexSelector.cc.
|
virtual |
Implements edm::EDFilter.
Definition at line 72 of file PATSingleVertexSelector.cc.
References bestCand_, candidates_, candPreselection_, doFilterEvents_, filter_(), First, FromCand, edm::Event::getByLabel(), hasMode_(), modes_, NearestToCand, edm::Event::put(), query::result, selVtxs_, vertices_, and vtxPreselection_.
|
private |
Definition at line 122 of file PATSingleVertexSelector.cc.
References abs, SiPixelRawToDigiRegional_cfi::beamSpot, beamSpot_, bestCand_, First, FromBeamSpot, FromCand, edm::Event::getByLabel(), NearestToCand, reco::Candidate::numberOfDaughters(), query::result, selVtxs_, reco::Candidate::vertex(), reco::Candidate::vertexChi2(), reco::Candidate::vertexCovariance(), reco::Candidate::vertexNdof(), and reco::Candidate::vz().
Referenced by filter().
|
private |
Definition at line 67 of file PATSingleVertexSelector.cc.
References spr::find(), alignBH_cfg::mode, and modes_.
Referenced by filter(), and PATSingleVertexSelector().
|
staticprivate |
Definition at line 12 of file PATSingleVertexSelector.cc.
References edm::hlt::Exception, First, FromBeamSpot, FromCand, and NearestToCand.
Referenced by PATSingleVertexSelector().
|
private |
Definition at line 51 of file PATSingleVertexSelector.h.
Referenced by filter_(), and PATSingleVertexSelector().
|
private |
Definition at line 54 of file PATSingleVertexSelector.h.
|
private |
Definition at line 48 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 50 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 59 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 46 of file PATSingleVertexSelector.h.
Referenced by filter(), hasMode_(), and PATSingleVertexSelector().
|
private |
Definition at line 53 of file PATSingleVertexSelector.h.
|
private |
Definition at line 47 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 49 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().