CMS 3D CMS Logo

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

#include <MuonAssociatorByHitsHelper.h>

Classes

struct  IndexMatch
 
struct  Resources
 

Public Types

typedef std::map< size_t,
std::vector< IndexMatch > > 
IndexAssociation
 
typedef boost::ptr_vector
< uint_SimHitIdpr_pair
MapOfMatchedIds
 
typedef std::pair< uint32_t,
EncodedEventId
SimHitIdpr
 
typedef std::vector< std::pair
< trackingRecHit_iterator,
trackingRecHit_iterator > > 
TrackHitsCollection
 
typedef std::pair< unsigned
int, std::vector< SimHitIdpr > > 
uint_SimHitIdpr_pair
 

Public Member Functions

IndexAssociation associateRecoToSimIndices (const TrackHitsCollection &, const edm::RefVector< TrackingParticleCollection > &, Resources const &) const
 
IndexAssociation associateSimToRecoIndices (const TrackHitsCollection &, const edm::RefVector< TrackingParticleCollection > &, Resources const &) const
 
 MuonAssociatorByHitsHelper (const edm::ParameterSet &conf)
 

Private Member Functions

const TrackingRecHitgetHitPtr (edm::OwnVector< TrackingRecHit >::const_iterator iter) const
 
const TrackingRecHitgetHitPtr (const trackingRecHit_iterator &iter) const
 
void getMatchedIds (MapOfMatchedIds &tracker_matchedIds_valid, MapOfMatchedIds &muon_matchedIds_valid, MapOfMatchedIds &tracker_matchedIds_INVALID, MapOfMatchedIds &muon_matchedIds_INVALID, int &n_tracker_valid, int &n_dt_valid, int &n_csc_valid, int &n_rpc_valid, int &n_gem_valid, int &n_tracker_matched_valid, int &n_dt_matched_valid, int &n_csc_matched_valid, int &n_rpc_matched_valid, int &n_gem_matched_valid, int &n_tracker_INVALID, int &n_dt_INVALID, int &n_csc_INVALID, int &n_rpc_INVALID, int &n_gem_INVALID, int &n_tracker_matched_INVALID, int &n_dt_matched_INVALID, int &n_csc_matched_INVALID, int &n_rpc_matched_INVALID, int &n_gem_matched_INVALID, trackingRecHit_iterator begin, trackingRecHit_iterator end, const TrackerHitAssociator *trackertruth, const DTHitAssociator &dttruth, const CSCHitAssociator &csctruth, const RPCHitAssociator &rpctruth, const GEMHitAssociator &gemtruth, bool printRts, const TrackerTopology *) const
 
int getShared (MapOfMatchedIds &matchedIds, TrackingParticleCollection::const_iterator trpart) const
 
int LayerFromDetid (const DetId &) const
 
std::string write_matched_simtracks (const std::vector< SimHitIdpr > &) const
 

Private Attributes

const bool AbsoluteNumberOfHits_muon
 
const bool AbsoluteNumberOfHits_track
 
const bool acceptOneStubMatchings
 
const bool dumpDT
 
double EfficiencyCut_muon
 
double EfficiencyCut_track
 
const bool includeZeroHitMuons
 
unsigned int NHitCut_muon
 
unsigned int NHitCut_track
 
double PurityCut_muon
 
double PurityCut_track
 
const bool ThreeHitTracksAreSpecial
 
const bool UseGrouped
 
bool UseMuon
 
const bool UsePixels
 
const bool UseSplitting
 
bool UseTracker
 

Detailed Description

Definition at line 27 of file MuonAssociatorByHitsHelper.h.

Member Typedef Documentation

typedef std::map<size_t, std::vector<IndexMatch> > MuonAssociatorByHitsHelper::IndexAssociation

Definition at line 54 of file MuonAssociatorByHitsHelper.h.

Definition at line 33 of file MuonAssociatorByHitsHelper.h.

Definition at line 30 of file MuonAssociatorByHitsHelper.h.

Definition at line 34 of file MuonAssociatorByHitsHelper.h.

typedef std::pair<unsigned int,std::vector<SimHitIdpr> > MuonAssociatorByHitsHelper::uint_SimHitIdpr_pair

Definition at line 32 of file MuonAssociatorByHitsHelper.h.

Constructor & Destructor Documentation

MuonAssociatorByHitsHelper::MuonAssociatorByHitsHelper ( const edm::ParameterSet conf)

Definition at line 17 of file MuonAssociatorByHitsHelper.cc.

Member Function Documentation

MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateRecoToSimIndices ( const TrackHitsCollection tC,
const edm::RefVector< TrackingParticleCollection > &  TPCollectionH,
Resources const &  resources 
) const

Definition at line 59 of file MuonAssociatorByHitsHelper.cc.

MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateSimToRecoIndices ( const TrackHitsCollection tC,
const edm::RefVector< TrackingParticleCollection > &  TPCollectionH,
Resources const &  resources 
) const

Definition at line 341 of file MuonAssociatorByHitsHelper.cc.

const TrackingRecHit* MuonAssociatorByHitsHelper::getHitPtr ( edm::OwnVector< TrackingRecHit >::const_iterator  iter) const
inlineprivate

Definition at line 99 of file MuonAssociatorByHitsHelper.h.

99 {return &*iter;}
const TrackingRecHit* MuonAssociatorByHitsHelper::getHitPtr ( const trackingRecHit_iterator iter) const
inlineprivate

Definition at line 100 of file MuonAssociatorByHitsHelper.h.

100 {return &**iter;}
void MuonAssociatorByHitsHelper::getMatchedIds ( MapOfMatchedIds tracker_matchedIds_valid,
MapOfMatchedIds muon_matchedIds_valid,
MapOfMatchedIds tracker_matchedIds_INVALID,
MapOfMatchedIds muon_matchedIds_INVALID,
int &  n_tracker_valid,
int &  n_dt_valid,
int &  n_csc_valid,
int &  n_rpc_valid,
int &  n_gem_valid,
int &  n_tracker_matched_valid,
int &  n_dt_matched_valid,
int &  n_csc_matched_valid,
int &  n_rpc_matched_valid,
int &  n_gem_matched_valid,
int &  n_tracker_INVALID,
int &  n_dt_INVALID,
int &  n_csc_INVALID,
int &  n_rpc_INVALID,
int &  n_gem_INVALID,
int &  n_tracker_matched_INVALID,
int &  n_dt_matched_INVALID,
int &  n_csc_matched_INVALID,
int &  n_rpc_matched_INVALID,
int &  n_gem_matched_INVALID,
trackingRecHit_iterator  begin,
trackingRecHit_iterator  end,
const TrackerHitAssociator trackertruth,
const DTHitAssociator dttruth,
const CSCHitAssociator csctruth,
const RPCHitAssociator rpctruth,
const GEMHitAssociator gemtruth,
bool  printRts,
const TrackerTopology tTopo 
) const
private

Definition at line 766 of file MuonAssociatorByHitsHelper.cc.

int MuonAssociatorByHitsHelper::getShared ( MapOfMatchedIds matchedIds,
TrackingParticleCollection::const_iterator  trpart 
) const
private

Definition at line 1175 of file MuonAssociatorByHitsHelper.cc.

int MuonAssociatorByHitsHelper::LayerFromDetid ( const DetId ) const
private
std::string MuonAssociatorByHitsHelper::write_matched_simtracks ( const std::vector< SimHitIdpr > &  SimTrackIds) const
private

Definition at line 1209 of file MuonAssociatorByHitsHelper.cc.

Member Data Documentation

const bool MuonAssociatorByHitsHelper::AbsoluteNumberOfHits_muon
private

Definition at line 88 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::AbsoluteNumberOfHits_track
private

Definition at line 84 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::acceptOneStubMatchings
private

Definition at line 81 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::dumpDT
private

Definition at line 96 of file MuonAssociatorByHitsHelper.h.

double MuonAssociatorByHitsHelper::EfficiencyCut_muon
private

Definition at line 90 of file MuonAssociatorByHitsHelper.h.

double MuonAssociatorByHitsHelper::EfficiencyCut_track
private

Definition at line 86 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::includeZeroHitMuons
private

Definition at line 80 of file MuonAssociatorByHitsHelper.h.

unsigned int MuonAssociatorByHitsHelper::NHitCut_muon
private

Definition at line 89 of file MuonAssociatorByHitsHelper.h.

unsigned int MuonAssociatorByHitsHelper::NHitCut_track
private

Definition at line 85 of file MuonAssociatorByHitsHelper.h.

double MuonAssociatorByHitsHelper::PurityCut_muon
private

Definition at line 91 of file MuonAssociatorByHitsHelper.h.

double MuonAssociatorByHitsHelper::PurityCut_track
private

Definition at line 87 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::ThreeHitTracksAreSpecial
private

Definition at line 95 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::UseGrouped
private

Definition at line 93 of file MuonAssociatorByHitsHelper.h.

bool MuonAssociatorByHitsHelper::UseMuon
private

Definition at line 83 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::UsePixels
private

Definition at line 92 of file MuonAssociatorByHitsHelper.h.

const bool MuonAssociatorByHitsHelper::UseSplitting
private

Definition at line 94 of file MuonAssociatorByHitsHelper.h.

bool MuonAssociatorByHitsHelper::UseTracker
private

Definition at line 82 of file MuonAssociatorByHitsHelper.h.