#include <MuonSelector.h>
Public Types | |
typedef reco::MuonCollection | collection |
Public Member Functions | |
template<typename I > | |
void | cloneAndStore (const I &begin, const I &end, edm::Event &evt) |
Method to clone tracks, track extras and their hits and clusters. typename I = this is an interator over a Muon collection, **I needs to dereference into a Muon. More... | |
bool | cloneClusters () |
MuonCollectionStoreManager (const edm::Handle< reco::MuonCollection > &) | |
edm::OrphanHandle < reco::MuonCollection > | put (edm::Event &evt) |
Put tracks, track extras and hits+clusters into the event. More... | |
void | setCloneClusters (bool w) |
size_t | size () const |
Get the size. More... | |
Private Member Functions | |
bool | clusterRefsOK (const reco::Track &track) const |
Check if all references to silicon strip/pixel clusters are available. More... | |
void | processMuon (const reco::Muon &mu) |
Process a single muon. More... | |
Definition at line 28 of file MuonSelector.h.
Definition at line 30 of file MuonSelector.h.
helper::MuonCollectionStoreManager::MuonCollectionStoreManager | ( | const edm::Handle< reco::MuonCollection > & | ) |
Definition at line 18 of file MuonSelector.cc.
void helper::MuonCollectionStoreManager::cloneAndStore | ( | const I & | begin, |
const I & | end, | ||
edm::Event & | evt | ||
) |
Method to clone tracks, track extras and their hits and clusters. typename I = this is an interator over a Muon collection, **I needs to dereference into a Muon.
Definition at line 112 of file MuonSelector.h.
References helper::ClusterStorer::clear(), clusterStorer_, end, hidx_, higbdx_, hisadx_, Exhume::I, i, id_, idx_, igbd_, igbdx_, isad_, isadx_, RPCpg::mu, helper::ClusterStorer::processAllClusters(), processMuon(), dt_dqm_sourceclient_common_cff::reco, rGBHits_, rGBTrackExtras_, rGBTracks_, rHits_, rMuons_, rSAHits_, rSATrackExtras_, rSATracks_, rTrackExtras_, rTracks_, selPixelClusters_, and selStripClusters_.
|
inline |
Use these to turn off/on the cloning of clusters. The default is to clone them. To not clone (and save space in a quick local job, do: setCloneClusters(false);
Definition at line 40 of file MuonSelector.h.
References cloneClusters_.
Referenced by processMuon(), and put().
|
private |
Check if all references to silicon strip/pixel clusters are available.
Definition at line 153 of file MuonSelector.cc.
References DetId::det(), TrackingRecHit::geographicalId(), TrackingRecHit::isValid(), ProjectedSiStripRecHit2D::originalHit(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), and DetId::Tracker.
Referenced by processMuon().
|
private |
Process a single muon.
Definition at line 49 of file MuonSelector.cc.
References reco::TrackExtraBase::add(), helper::ClusterStorer::addCluster(), cloneClusters(), clusterRefsOK(), clusterStorer_, reco::Muon::combinedMuon(), reco::Muon::globalTrack(), hidx_, higbdx_, hisadx_, id_, idx_, igbd_, igbdx_, reco::Track::innerDetId(), reco::Track::innerMomentum(), reco::Track::innerOk(), reco::Track::innerPosition(), reco::Track::innerStateCovariance(), reco::Muon::innerTrack(), isad_, isadx_, edm::Ref< C, T, F >::isNonnull(), TrackingRecHit::isValid(), reco::Track::outerDetId(), reco::Track::outerMomentum(), reco::Track::outerOk(), reco::Track::outerPosition(), reco::Track::outerStateCovariance(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), rGBHits_, rGBTrackExtras_, rGBTracks_, rHits_, rSAHits_, rSATrackExtras_, rSATracks_, rTrackExtras_, rTracks_, reco::Track::seedDirection(), selGlobalMuonTracks_, selGlobalMuonTracksExtras_, selGlobalMuonTracksHits_, selMuons_, selStandAloneTracks_, selStandAloneTracksExtras_, selStandAloneTracksHits_, selTracks_, selTracksExtras_, selTracksHits_, reco::Track::setExtra(), reco::Muon::standAloneMuon(), reco::Muon::track(), and DetId::Tracker.
Referenced by cloneAndStore().
edm::OrphanHandle< reco::MuonCollection > helper::MuonCollectionStoreManager::put | ( | edm::Event & | evt | ) |
Put tracks, track extras and hits+clusters into the event.
Put Muons, tracks, track extras and hits+clusters into the event.
Definition at line 190 of file MuonSelector.cc.
References cloneClusters(), h, edm::Event::put(), selGlobalMuonTracks_, selGlobalMuonTracksExtras_, selGlobalMuonTracksHits_, selMuons_, selPixelClusters_, selStandAloneTracks_, selStandAloneTracksExtras_, selStandAloneTracksHits_, selStripClusters_, selTracks_, selTracksExtras_, and selTracksHits_.
|
inline |
Definition at line 41 of file MuonSelector.h.
References cloneClusters_, and w().
|
inline |
Get the size.
Definition at line 51 of file MuonSelector.h.
References selMuons_.
|
private |
Clone clusters, or not? Default: true.
Definition at line 98 of file MuonSelector.h.
Referenced by cloneClusters(), and setCloneClusters().
|
private |
Helper to treat copies of selected clusters and make the hits refer to the output cluster collections:
Definition at line 92 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 95 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 84 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 83 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 82 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 80 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 77 of file MuonSelector.h.
Referenced by cloneAndStore().
|
private |
Definition at line 88 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 87 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 86 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 79 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 78 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 68 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 69 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 70 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 64 of file MuonSelector.h.
Referenced by processMuon(), put(), and size().
|
private |
Definition at line 75 of file MuonSelector.h.
Referenced by cloneAndStore(), and put().
|
private |
Definition at line 71 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 72 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 73 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 74 of file MuonSelector.h.
Referenced by cloneAndStore(), and put().
|
private |
Definition at line 65 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 66 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 67 of file MuonSelector.h.
Referenced by processMuon(), and put().