CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
TrackMultiSelector Class Reference
Inheritance diagram for TrackMultiSelector:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  Block
 

Public Member Functions

 TrackMultiSelector (const edm::ParameterSet &cfg)
 constructor More...
 
virtual ~TrackMultiSelector ()
 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 ()
 

Private Types

typedef math::XYZPoint Point
 

Private Member Functions

void produce (edm::Event &evt, const edm::EventSetup &es) override
 process one event More...
 
short select (const reco::Track &tk, const reco::BeamSpot &beamSpot, const std::vector< Point > &points)
 return class, or -1 if rejected More...
 
void selectVertices (const reco::VertexCollection &vtxs, std::vector< Point > &points)
 
bool testVtx (const reco::Track &tk, const reco::BeamSpot &beamSpot, const std::vector< Point > &points, const Block &cut)
 

Private Attributes

edm::EDGetTokenT< reco::BeamSpotbeamspot_
 
double beamspotD0_
 
double beamspotDZsigmas_
 
std::vector< Blockblocks_
 filter psets More...
 
bool copyExtras_
 copy only the tracks, not extras and rechits (for AOD) More...
 
bool copyTrajectories_
 copy also trajectories and trajectory->track associations More...
 
std::vector< std::string > labels_
 output labels More...
 
std::vector
< TrackingRecHitRefProd
rHits_
 
std::vector
< reco::TrackExtraRefProd
rTrackExtras_
 
std::vector< reco::TrackRefProdrTracks_
 
std::vector< edm::RefProd
< std::vector< Trajectory > > > 
rTrajectories_
 
std::auto_ptr
< TrackingRecHitCollection > * 
selHits_
 
std::auto_ptr
< reco::TrackExtraCollection > * 
selTrackExtras_
 
std::auto_ptr
< reco::TrackCollection > * 
selTracks_
 some storage More...
 
std::auto_ptr< std::vector
< Trajectory > > * 
selTrajs_
 
std::auto_ptr
< TrajTrackAssociationCollection > * 
selTTAss_
 
bool splitOutputs_
 split selections in more sets More...
 
edm::InputTag src_
 source collection label More...
 
edm::EDGetTokenT
< reco::TrackCollection
tokenTracks
 
edm::EDGetTokenT< std::vector
< Trajectory > > 
tokenTraj
 
edm::EDGetTokenT
< TrajTrackAssociationCollection
tokenTrajTrack
 
edm::EDGetTokenT
< reco::VertexCollection
vertices_
 
double vtxChi2Prob_
 
int32_t vtxNumber_
 vertex cuts More...
 
size_t vtxTracks_
 
std::vector< std::pair< short,
reco::TrackRef > > 
whereItWent_
 

Additional Inherited Members

- 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
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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)
 

Detailed Description

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

Author
Giovanni Petrucciani

Definition at line 32 of file TrackMultiSelector.cc.

Member Typedef Documentation

Definition at line 51 of file TrackMultiSelector.cc.

Constructor & Destructor Documentation

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

constructor

Definition at line 124 of file TrackMultiSelector.cc.

TrackMultiSelector::~TrackMultiSelector ( )
virtual

destructor

Definition at line 195 of file TrackMultiSelector.cc.

Member Function Documentation

void TrackMultiSelector::produce ( edm::Event evt,
const edm::EventSetup es 
)
overrideprivatevirtual

process one event

Implements edm::stream::EDProducerBase.

Definition at line 203 of file TrackMultiSelector.cc.

short TrackMultiSelector::select ( const reco::Track tk,
const reco::BeamSpot beamSpot,
const std::vector< Point > &  points 
)
private

return class, or -1 if rejected

Definition at line 329 of file TrackMultiSelector.cc.

void TrackMultiSelector::selectVertices ( const reco::VertexCollection vtxs,
std::vector< Point > &  points 
)
private

Definition at line 345 of file TrackMultiSelector.cc.

bool TrackMultiSelector::testVtx ( const reco::Track tk,
const reco::BeamSpot beamSpot,
const std::vector< Point > &  points,
const Block cut 
)
inlineprivate

Definition at line 311 of file TrackMultiSelector.cc.

Member Data Documentation

edm::EDGetTokenT<reco::BeamSpot> TrackMultiSelector::beamspot_
private

Definition at line 62 of file TrackMultiSelector.cc.

double TrackMultiSelector::beamspotD0_
private

Definition at line 67 of file TrackMultiSelector.cc.

double TrackMultiSelector::beamspotDZsigmas_
private

Definition at line 67 of file TrackMultiSelector.cc.

std::vector<Block> TrackMultiSelector::blocks_
private

filter psets

Definition at line 75 of file TrackMultiSelector.cc.

bool TrackMultiSelector::copyExtras_
private

copy only the tracks, not extras and rechits (for AOD)

Definition at line 69 of file TrackMultiSelector.cc.

bool TrackMultiSelector::copyTrajectories_
private

copy also trajectories and trajectory->track associations

Definition at line 71 of file TrackMultiSelector.cc.

std::vector<std::string> TrackMultiSelector::labels_
private

output labels

Definition at line 81 of file TrackMultiSelector.cc.

std::vector<TrackingRecHitRefProd> TrackMultiSelector::rHits_
private

Definition at line 90 of file TrackMultiSelector.cc.

std::vector<reco::TrackExtraRefProd> TrackMultiSelector::rTrackExtras_
private

Definition at line 89 of file TrackMultiSelector.cc.

std::vector<reco::TrackRefProd> TrackMultiSelector::rTracks_
private

Definition at line 88 of file TrackMultiSelector.cc.

std::vector< edm::RefProd< std::vector<Trajectory> > > TrackMultiSelector::rTrajectories_
private

Definition at line 91 of file TrackMultiSelector.cc.

std::auto_ptr< TrackingRecHitCollection>* TrackMultiSelector::selHits_
private

Definition at line 85 of file TrackMultiSelector.cc.

std::auto_ptr<reco::TrackExtraCollection>* TrackMultiSelector::selTrackExtras_
private

Definition at line 84 of file TrackMultiSelector.cc.

std::auto_ptr<reco::TrackCollection>* TrackMultiSelector::selTracks_
private

some storage

Definition at line 83 of file TrackMultiSelector.cc.

std::auto_ptr< std::vector<Trajectory> >* TrackMultiSelector::selTrajs_
private

Definition at line 86 of file TrackMultiSelector.cc.

std::auto_ptr< TrajTrackAssociationCollection >* TrackMultiSelector::selTTAss_
private

Definition at line 87 of file TrackMultiSelector.cc.

bool TrackMultiSelector::splitOutputs_
private

split selections in more sets

Definition at line 73 of file TrackMultiSelector.cc.

edm::InputTag TrackMultiSelector::src_
private

source collection label

Definition at line 60 of file TrackMultiSelector.cc.

edm::EDGetTokenT<reco::TrackCollection> TrackMultiSelector::tokenTracks
private

Definition at line 63 of file TrackMultiSelector.cc.

edm::EDGetTokenT<std::vector<Trajectory> > TrackMultiSelector::tokenTraj
private

Definition at line 64 of file TrackMultiSelector.cc.

edm::EDGetTokenT<TrajTrackAssociationCollection> TrackMultiSelector::tokenTrajTrack
private

Definition at line 65 of file TrackMultiSelector.cc.

edm::EDGetTokenT<reco::VertexCollection> TrackMultiSelector::vertices_
private

Definition at line 61 of file TrackMultiSelector.cc.

double TrackMultiSelector::vtxChi2Prob_
private

Definition at line 79 of file TrackMultiSelector.cc.

int32_t TrackMultiSelector::vtxNumber_
private

vertex cuts

Definition at line 77 of file TrackMultiSelector.cc.

size_t TrackMultiSelector::vtxTracks_
private

Definition at line 78 of file TrackMultiSelector.cc.

std::vector< std::pair<short, reco::TrackRef> > TrackMultiSelector::whereItWent_
private

Definition at line 92 of file TrackMultiSelector.cc.