CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
MultiTrackSelector Class Reference

#include <MultiTrackSelector.h>

Inheritance diagram for MultiTrackSelector:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper AnalyticalTrackSelector

Public Types

using MVACollection = std::vector< float >
 
using QualityMaskCollection = std::vector< unsigned char >
 
- Public Types inherited from edm::stream::EDProducer<>
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
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 MultiTrackSelector ()
 constructor More...
 
 MultiTrackSelector (const edm::ParameterSet &cfg)
 
virtual ~MultiTrackSelector ()
 destructor More...
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Types

typedef math::XYZPoint Point
 

Protected Member Functions

void beginStream (edm::StreamID) overridefinal
 
Point getBestVertex (const reco::TrackBaseRef, const reco::VertexCollection) const
 
void processMVA (edm::Event &evt, const edm::EventSetup &es, const reco::BeamSpot &beamspot, const reco::VertexCollection &vertices, int selIndex, std::vector< float > &mvaVals_, bool writeIt=false) const
 
void produce (edm::Event &evt, const edm::EventSetup &es) overridefinal
 process one event More...
 
virtual void run (edm::Event &evt, const edm::EventSetup &es) const
 
bool select (unsigned tsNum, const reco::BeamSpot &vertexBeamSpot, const TrackingRecHitCollection &recHits, const reco::Track &tk, const std::vector< Point > &points, std::vector< float > &vterr, std::vector< float > &vzerr, double mvaVal) const
 return class, or -1 if rejected More...
 
void selectVertices (unsigned int tsNum, const reco::VertexCollection &vtxs, std::vector< Point > &points, std::vector< float > &vterr, std::vector< float > &vzerr) const
 
- Protected Member Functions inherited from edm::EDConsumerBase
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)
 

Protected Attributes

std::vector< bool > applyAbsCutsIfNoPV_
 
std::vector< bool > applyAdaptedPVCuts_
 
edm::EDGetTokenT< reco::BeamSpotbeamspot_
 
std::vector< double > chi2n_no1Dmod_par_
 
std::vector< double > chi2n_par_
 
std::vector< std::vector
< double > > 
d0_par1_
 
std::vector< std::vector
< double > > 
d0_par2_
 
std::string dbFileName_
 
std::vector< std::vector
< double > > 
dz_par1_
 
std::vector< std::vector
< double > > 
dz_par2_
 
std::vector< GBRForest * > forest_
 
std::vector< std::string > forestLabel_
 
edm::EDGetTokenT
< TrackingRecHitCollection
hSrc_
 
std::vector< bool > keepAllTracks_
 
std::vector< double > max_d0_
 Impact parameter absolute cuts. More...
 
std::vector< double > max_d0NoPV_
 
std::vector< double > max_eta_
 
std::vector< int32_t > max_lostHitFraction_
 
std::vector< uint32_t > max_lostLayers_
 
std::vector< int32_t > max_minMissHitOutOrIn_
 
std::vector< double > max_relpterr_
 
std::vector< double > max_z0_
 
std::vector< double > max_z0NoPV_
 
std::vector< uint32_t > min_3Dlayers_
 
std::vector< double > min_eta_
 
std::vector< uint32_t > min_hits_bypass_
 
std::vector< uint32_t > min_layers_
 Cuts on numbers of layers with hits/3D hits/lost hits. More...
 
std::vector< double > min_MVA_
 
std::vector< uint32_t > min_nhits_
 
std::vector< std::string > mvaType_
 
std::vector< std::string > name_
 
std::vector< double > nSigmaZ_
 
std::vector< unsigned int > preFilter_
 
std::vector
< reco::TrackBase::TrackQuality
qualityToSet_
 
std::vector< std::vector
< double > > 
res_par_
 
std::vector< bool > setQualityBit_
 do I have to set a quality bit? More...
 
edm::EDGetTokenT
< reco::TrackCollection
src_
 source collection label More...
 
bool useAnyMVA_
 
bool useForestFromDB_
 
std::vector< bool > useMVA_
 
std::vector< bool > useMVAonly_
 
bool useVertices_
 
bool useVtxError_
 
std::vector
< StringCutObjectSelector
< reco::Vertex > > 
vertexCut_
 
edm::EDGetTokenT
< reco::VertexCollection
vertices_
 
std::vector< int32_t > vtxNumber_
 vertex cuts More...
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

selects a subset of a track collection, copying extra information on demand

Author
David Lange

Definition at line 35 of file MultiTrackSelector.h.

Member Typedef Documentation

using MultiTrackSelector::MVACollection = std::vector<float>

Definition at line 44 of file MultiTrackSelector.h.

Definition at line 57 of file MultiTrackSelector.h.

using MultiTrackSelector::QualityMaskCollection = std::vector<unsigned char>

Definition at line 45 of file MultiTrackSelector.h.

Constructor & Destructor Documentation

MultiTrackSelector::MultiTrackSelector ( )
explicit

constructor

Definition at line 17 of file MultiTrackSelector.cc.

MultiTrackSelector::MultiTrackSelector ( const edm::ParameterSet cfg)
explicit

Definition at line 22 of file MultiTrackSelector.cc.

MultiTrackSelector::~MultiTrackSelector ( )
virtual

destructor

Definition at line 198 of file MultiTrackSelector.cc.

Member Function Documentation

void MultiTrackSelector::beginStream ( edm::StreamID  )
finaloverrideprotectedvirtual

Reimplemented from edm::stream::EDProducerBase.

Definition at line 203 of file MultiTrackSelector.cc.

MultiTrackSelector::Point MultiTrackSelector::getBestVertex ( const reco::TrackBaseRef  track,
const reco::VertexCollection  vertices 
) const
protected

Definition at line 636 of file MultiTrackSelector.cc.

void MultiTrackSelector::processMVA ( edm::Event evt,
const edm::EventSetup es,
const reco::BeamSpot beamspot,
const reco::VertexCollection vertices,
int  selIndex,
std::vector< float > &  mvaVals_,
bool  writeIt = false 
) const
protected

Definition at line 513 of file MultiTrackSelector.cc.

void MultiTrackSelector::produce ( edm::Event evt,
const edm::EventSetup es 
)
inlinefinaloverrideprotectedvirtual

process one event

Implements edm::stream::EDProducerBase.

Definition at line 59 of file MultiTrackSelector.h.

void MultiTrackSelector::run ( edm::Event evt,
const edm::EventSetup es 
) const
protectedvirtual

Reimplemented in AnalyticalTrackSelector.

Definition at line 215 of file MultiTrackSelector.cc.

bool MultiTrackSelector::select ( unsigned  tsNum,
const reco::BeamSpot vertexBeamSpot,
const TrackingRecHitCollection recHits,
const reco::Track tk,
const std::vector< Point > &  points,
std::vector< float > &  vterr,
std::vector< float > &  vzerr,
double  mvaVal 
) const
protected

return class, or -1 if rejected

Definition at line 334 of file MultiTrackSelector.cc.

void MultiTrackSelector::selectVertices ( unsigned int  tsNum,
const reco::VertexCollection vtxs,
std::vector< Point > &  points,
std::vector< float > &  vterr,
std::vector< float > &  vzerr 
) const
protected

Definition at line 489 of file MultiTrackSelector.cc.

Member Data Documentation

std::vector<bool> MultiTrackSelector::applyAbsCutsIfNoPV_
protected

Definition at line 135 of file MultiTrackSelector.h.

std::vector<bool> MultiTrackSelector::applyAdaptedPVCuts_
protected

Definition at line 109 of file MultiTrackSelector.h.

edm::EDGetTokenT<reco::BeamSpot> MultiTrackSelector::beamspot_
protected

Definition at line 85 of file MultiTrackSelector.h.

std::vector< double > MultiTrackSelector::chi2n_no1Dmod_par_
protected

Definition at line 103 of file MultiTrackSelector.h.

std::vector< double > MultiTrackSelector::chi2n_par_
protected

Definition at line 102 of file MultiTrackSelector.h.

std::vector< std::vector<double> > MultiTrackSelector::d0_par1_
protected

Definition at line 104 of file MultiTrackSelector.h.

std::vector< std::vector<double> > MultiTrackSelector::d0_par2_
protected

Definition at line 106 of file MultiTrackSelector.h.

std::string MultiTrackSelector::dbFileName_
protected

Definition at line 153 of file MultiTrackSelector.h.

std::vector< std::vector<double> > MultiTrackSelector::dz_par1_
protected

Definition at line 105 of file MultiTrackSelector.h.

std::vector< std::vector<double> > MultiTrackSelector::dz_par2_
protected

Definition at line 107 of file MultiTrackSelector.h.

std::vector<GBRForest*> MultiTrackSelector::forest_
protected

Definition at line 151 of file MultiTrackSelector.h.

std::vector<std::string> MultiTrackSelector::forestLabel_
protected

Definition at line 150 of file MultiTrackSelector.h.

edm::EDGetTokenT<TrackingRecHitCollection> MultiTrackSelector::hSrc_
protected

Definition at line 84 of file MultiTrackSelector.h.

std::vector<bool> MultiTrackSelector::keepAllTracks_
protected

Definition at line 137 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_d0_
protected

Impact parameter absolute cuts.

Definition at line 112 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_d0NoPV_
protected

Definition at line 133 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_eta_
protected

Definition at line 130 of file MultiTrackSelector.h.

std::vector<int32_t> MultiTrackSelector::max_lostHitFraction_
protected

Definition at line 127 of file MultiTrackSelector.h.

std::vector<uint32_t> MultiTrackSelector::max_lostLayers_
protected

Definition at line 119 of file MultiTrackSelector.h.

std::vector<int32_t> MultiTrackSelector::max_minMissHitOutOrIn_
protected

Definition at line 126 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_relpterr_
protected

Definition at line 123 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_z0_
protected

Definition at line 113 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::max_z0NoPV_
protected

Definition at line 134 of file MultiTrackSelector.h.

std::vector<uint32_t> MultiTrackSelector::min_3Dlayers_
protected

Definition at line 118 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::min_eta_
protected

Definition at line 129 of file MultiTrackSelector.h.

std::vector<uint32_t> MultiTrackSelector::min_hits_bypass_
protected

Definition at line 120 of file MultiTrackSelector.h.

std::vector<uint32_t> MultiTrackSelector::min_layers_
protected

Cuts on numbers of layers with hits/3D hits/lost hits.

Definition at line 117 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::min_MVA_
protected

Definition at line 147 of file MultiTrackSelector.h.

std::vector<uint32_t> MultiTrackSelector::min_nhits_
protected

Definition at line 124 of file MultiTrackSelector.h.

std::vector<std::string> MultiTrackSelector::mvaType_
protected

Definition at line 149 of file MultiTrackSelector.h.

std::vector<std::string> MultiTrackSelector::name_
protected

Definition at line 141 of file MultiTrackSelector.h.

std::vector<double> MultiTrackSelector::nSigmaZ_
protected

Definition at line 114 of file MultiTrackSelector.h.

std::vector<unsigned int> MultiTrackSelector::preFilter_
protected

Definition at line 140 of file MultiTrackSelector.h.

std::vector<reco::TrackBase::TrackQuality> MultiTrackSelector::qualityToSet_
protected

Definition at line 93 of file MultiTrackSelector.h.

std::vector< std::vector<double> > MultiTrackSelector::res_par_
protected

Definition at line 101 of file MultiTrackSelector.h.

std::vector<bool> MultiTrackSelector::setQualityBit_
protected

do I have to set a quality bit?

Definition at line 92 of file MultiTrackSelector.h.

edm::EDGetTokenT<reco::TrackCollection> MultiTrackSelector::src_
protected

source collection label

Definition at line 83 of file MultiTrackSelector.h.

bool MultiTrackSelector::useAnyMVA_
protected

Definition at line 88 of file MultiTrackSelector.h.

bool MultiTrackSelector::useForestFromDB_
protected

Definition at line 152 of file MultiTrackSelector.h.

std::vector<bool> MultiTrackSelector::useMVA_
protected

Definition at line 144 of file MultiTrackSelector.h.

std::vector<bool> MultiTrackSelector::useMVAonly_
protected

Definition at line 145 of file MultiTrackSelector.h.

bool MultiTrackSelector::useVertices_
protected

Definition at line 86 of file MultiTrackSelector.h.

bool MultiTrackSelector::useVtxError_
protected

Definition at line 87 of file MultiTrackSelector.h.

std::vector<StringCutObjectSelector<reco::Vertex> > MultiTrackSelector::vertexCut_
protected

Definition at line 98 of file MultiTrackSelector.h.

edm::EDGetTokenT<reco::VertexCollection> MultiTrackSelector::vertices_
protected

Definition at line 89 of file MultiTrackSelector.h.

std::vector<int32_t> MultiTrackSelector::vtxNumber_
protected

vertex cuts

Definition at line 96 of file MultiTrackSelector.h.