![]() |
![]() |
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 | |
![]() | |
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 |
![]() | |
typedef EDFilterAdaptorBase | ModuleType |
![]() | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
![]() | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
![]() | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
![]() | |
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 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 beamSpotToken_, candidatesToken_, doFilterEvents_, edm::ParameterSet::exists(), First, FromBeamSpot, FromCand, edm::ParameterSet::getParameter(), hasMode_(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, modes_, NearestToCand, parseMode(), AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::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_2024v11_cff::cands, HLT_2024v11_cff::distance, doFilterEvents_, filter_(), First, FromCand, hasMode_(), iEvent, modes_, eostools::move(), NearestToCand, mps_fire::result, selVtxs_, trackerHitRTTI::vector, AlignmentTracksFromVertexSelector_cfi::vertices, verticesToken_, and vtxPreselection_.
|
private |
Definition at line 182 of file PATSingleVertexSelector.cc.
References funct::abs(), pwdgSkimBPark_cfi::beamSpot, beamSpotToken_, bestCand_, cms::cuda::bs, PVValHelper::dz, First, FromBeamSpot, FromCand, iEvent, edm::Ptr< T >::isNull(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, NearestToCand, mps_fire::result, selVtxs_, HltBtagValidation_cff::Vertex, L1BJetProducer_cff::vtx, and eostools::which().
Referenced by filter().
|
private |
Definition at line 119 of file PATSingleVertexSelector.cc.
References spr::find(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and modes_.
Referenced by filter(), and PATSingleVertexSelector().
|
private |
Definition at line 67 of file PATSingleVertexSelector.cc.
References Exception, First, FromBeamSpot, FromCand, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and NearestToCand.
Referenced by PATSingleVertexSelector().
|
private |
Definition at line 52 of file PATSingleVertexSelector.cc.
Referenced by filter_(), and PATSingleVertexSelector().
|
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(), and PATSingleVertexSelector().
|
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().