Produces a list containing a single vertex selected by some criteria. More...
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 | |
Public Types inherited from edm::stream::EDFilter<> | |
using | CacheTypes = CacheContexts< T...> |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T...> |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Public Types inherited from edm::stream::EDFilterBase | |
typedef EDFilterAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDFilterBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Produces a list containing a single vertex selected by some criteria.
Definition at line 28 of file PATSingleVertexSelector.cc.
|
private |
Definition at line 38 of file PATSingleVertexSelector.cc.
|
private |
Definition at line 37 of file PATSingleVertexSelector.cc.
|
private |
Enumerator | |
---|---|
First | |
NearestToCand | |
FromCand | |
FromBeamSpot |
Definition at line 36 of file PATSingleVertexSelector.cc.
|
explicit |
Definition at line 82 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_.
|
override |
Definition at line 117 of file PATSingleVertexSelector.cc.
|
overridevirtual |
Implements edm::stream::EDFilterBase.
Definition at line 123 of file PATSingleVertexSelector.cc.
References bestCand_, candidatesToken_, candPreselection_, HLT_FULL_cff::cands, HLT_FULL_cff::distance, doFilterEvents_, filter_(), First, FromCand, edm::Event::getByToken(), hasMode_(), modes_, eostools::move(), NearestToCand, edm::Event::put(), mps_fire::result, selVtxs_, trackerHitRTTI::vector, beam_dqm_sourceclient-live_cfg::vertices, verticesToken_, and vtxPreselection_.
|
private |
Definition at line 182 of file PATSingleVertexSelector.cc.
References funct::abs(), beam_dqm_sourceclient-live_cfg::beamSpot, beamSpotToken_, bestCand_, cms::cuda::bs, PVValHelper::dz, 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 119 of file PATSingleVertexSelector.cc.
References spr::find(), universalConfigTemplate::mode, and modes_.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 67 of file PATSingleVertexSelector.cc.
References Exception, First, FromBeamSpot, FromCand, and NearestToCand.
Referenced by PATSingleVertexSelector().
|
private |
Definition at line 52 of file PATSingleVertexSelector.cc.
Referenced by filter_().
|
private |
Definition at line 55 of file PATSingleVertexSelector.cc.
|
private |
Definition at line 49 of file PATSingleVertexSelector.cc.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 51 of file PATSingleVertexSelector.cc.
Referenced by filter().
|
private |
Definition at line 60 of file PATSingleVertexSelector.cc.
Referenced by filter().
|
private |
Definition at line 47 of file PATSingleVertexSelector.cc.
Referenced by filter(), hasMode_(), and PATSingleVertexSelector().
|
private |
Definition at line 54 of file PATSingleVertexSelector.cc.
|
private |
Definition at line 48 of file PATSingleVertexSelector.cc.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 50 of file PATSingleVertexSelector.cc.
Referenced by filter().