![]() |
![]() |
Produces a list containing a single vertex selected by some criteria. More...
#include "PhysicsTools/PatAlgos/plugins/PATSingleVertexSelector.h"
Private Types | |
typedef StringCutObjectSelector < reco::Candidate > | CandSel |
enum | Mode { First, NearestToCand, FromCand, FromBeamSpot } |
typedef StringCutObjectSelector < reco::Vertex > | VtxSel |
Private Member Functions | |
std::unique_ptr< std::vector < reco::Vertex > > | filter_ (Mode mode, const edm::Event &iEvent, const edm::EventSetup &iSetup) |
bool | hasMode_ (Mode mode) const |
Mode | parseMode (const std::string &name) const |
Private Attributes | |
edm::EDGetTokenT< reco::BeamSpot > | beamSpotToken_ |
reco::CandidatePtr | bestCand_ |
std::vector< edm::EDGetTokenT < edm::View< reco::Candidate > > > | candidatesToken_ |
const CandSel | candPreselection_ |
bool | doFilterEvents_ |
std::vector< Mode > | modes_ |
std::vector< reco::VertexRef > | selVtxs_ |
edm::EDGetTokenT< std::vector < reco::Vertex > > | verticesToken_ |
const VtxSel | vtxPreselection_ |
Additional Inherited Members | |
![]() | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
![]() | |
typedef EDFilterAdaptorBase | ModuleType |
![]() | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
![]() | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
![]() | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Produces a list containing a single vertex selected by some criteria.
Definition at line 28 of file PATSingleVertexSelector.h.
|
private |
Definition at line 40 of file PATSingleVertexSelector.h.
|
private |
Definition at line 39 of file PATSingleVertexSelector.h.
|
private |
Enumerator | |
---|---|
First | |
NearestToCand | |
FromCand | |
FromBeamSpot |
Definition at line 38 of file PATSingleVertexSelector.h.
|
explicit |
Definition at line 29 of file PATSingleVertexSelector.cc.
References candidatesToken_, edm::EDConsumerBase::consumes(), edm::ParameterSet::exists(), First, FromCand, edm::ParameterSet::getParameter(), hasMode_(), modes_, NearestToCand, parseMode(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, edm::vector_transform(), and verticesToken_.
PATSingleVertexSelector::~PATSingleVertexSelector | ( | ) |
Definition at line 59 of file PATSingleVertexSelector.cc.
|
overridevirtual |
Implements edm::stream::EDFilterBase.
Definition at line 68 of file PATSingleVertexSelector.cc.
References bestCand_, candidatesToken_, candPreselection_, HLT_25ns10e33_v2_cff::distance, doFilterEvents_, filter_(), First, FromCand, edm::Event::getByToken(), hasMode_(), modes_, eostools::move(), NearestToCand, edm::Event::put(), mps_fire::result, selVtxs_, HLT_25ns10e33_v2_cff::vertices, verticesToken_, and vtxPreselection_.
|
private |
Definition at line 118 of file PATSingleVertexSelector.cc.
References funct::abs(), SiPixelRawToDigiRegional_cfi::beamSpot, beamSpotToken_, bestCand_, First, FromBeamSpot, FromCand, edm::Event::getByToken(), edm::Ref< C, T, F >::isNonnull(), edm::Ptr< T >::isNull(), NearestToCand, mps_fire::result, selVtxs_, and eostools::which().
Referenced by filter().
|
private |
Definition at line 63 of file PATSingleVertexSelector.cc.
References spr::find(), universalConfigTemplate::mode, and modes_.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 14 of file PATSingleVertexSelector.cc.
References Exception, First, FromBeamSpot, FromCand, and NearestToCand.
Referenced by PATSingleVertexSelector().
|
private |
Definition at line 53 of file PATSingleVertexSelector.h.
Referenced by filter_().
|
private |
Definition at line 56 of file PATSingleVertexSelector.h.
|
private |
Definition at line 50 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 52 of file PATSingleVertexSelector.h.
Referenced by filter().
|
private |
Definition at line 61 of file PATSingleVertexSelector.h.
Referenced by filter().
|
private |
Definition at line 48 of file PATSingleVertexSelector.h.
Referenced by filter(), hasMode_(), and PATSingleVertexSelector().
|
private |
Definition at line 55 of file PATSingleVertexSelector.h.
|
private |
Definition at line 49 of file PATSingleVertexSelector.h.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 51 of file PATSingleVertexSelector.h.
Referenced by filter().