#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 29 of file MuonSelector.h.
Definition at line 31 of file MuonSelector.h.
helper::MuonCollectionStoreManager::MuonCollectionStoreManager | ( | const edm::Handle< reco::MuonCollection > & | ) |
Definition at line 18 of file MuonSelector.cc.
References processMuon().
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 113 of file MuonSelector.h.
References helper::ClusterStorer::clear(), clusterStorer_, end, hidx_, higbdx_, hisadx_, Exhume::I, mps_fire::i, id_, idx_, igbd_, igbdx_, isad_, isadx_, RPCpg::mu, helper::ClusterStorer::processAllClusters(), processMuon(), rGBHits_, rGBTrackExtras_, rGBTracks_, rHits_, rMuons_, rSAHits_, rSATrackExtras_, rSATracks_, rTrackExtras_, rTracks_, selPixelClusters_, and selStripClusters_.
Referenced by size().
|
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 41 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 164 of file MuonSelector.cc.
References SiStripRecHit2D::cluster(), DetId::det(), TrackingRecHit::geographicalId(), edm::Ref< C, T, F >::isAvailable(), TrackingRecHit::isValid(), SiStripMatchedRecHit2D::monoHit(), ProjectedSiStripRecHit2D::originalHit(), put(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), SiStripMatchedRecHit2D::stereoHit(), and DetId::Tracker.
Referenced by processMuon().
|
private |
Process a single muon.
Definition at line 49 of file MuonSelector.cc.
References 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(), configurableAnalysis::Muon, 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::TrackExtraBase::setHits(), reco::Muon::standAloneMuon(), reco::Muon::track(), and DetId::Tracker.
Referenced by cloneAndStore(), and MuonCollectionStoreManager().
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 201 of file MuonSelector.cc.
References cloneClusters(), h, eostools::move(), edm::Event::put(), selGlobalMuonTracks_, selGlobalMuonTracksExtras_, selGlobalMuonTracksHits_, selMuons_, selPixelClusters_, selStandAloneTracks_, selStandAloneTracksExtras_, selStandAloneTracksHits_, selStripClusters_, selTracks_, selTracksExtras_, and selTracksHits_.
Referenced by clusterRefsOK(), and setCloneClusters().
|
inline |
Definition at line 42 of file MuonSelector.h.
References cloneClusters_, put(), and w.
|
inline |
Get the size.
Definition at line 52 of file MuonSelector.h.
References begin, cloneAndStore(), end, Exhume::I, and selMuons_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
private |
Clone clusters, or not? Default: true.
Definition at line 99 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 93 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 96 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 85 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 81 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
private |
Definition at line 78 of file MuonSelector.h.
Referenced by cloneAndStore().
|
private |
Definition at line 89 of file MuonSelector.h.
Referenced by cloneAndStore(), and processMuon().
|
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 80 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 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 71 of file MuonSelector.h.
Referenced by processMuon(), and put().
|
private |
Definition at line 65 of file MuonSelector.h.
Referenced by processMuon(), put(), and size().
|
private |
Definition at line 76 of file MuonSelector.h.
Referenced by cloneAndStore(), 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 processMuon(), and put().
|
private |
Definition at line 75 of file MuonSelector.h.
Referenced by cloneAndStore(), 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().
|
private |
Definition at line 68 of file MuonSelector.h.
Referenced by processMuon(), and put().