#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 30 of file MuonSelector.h.
typedef reco::MuonCollection helper::MuonCollectionStoreManager::collection |
Definition at line 32 of file MuonSelector.h.
helper::MuonCollectionStoreManager::MuonCollectionStoreManager | ( | const edm::Handle< reco::MuonCollection > & | ) |
Definition at line 16 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_, mps_fire::end, hidx_, higbdx_, hisadx_, Exhume::I, mps_fire::i, id_, idx_, igbd_, igbdx_, isad_, isadx_, amptDefaultParameters_cff::mu, helper::ClusterStorer::processAllClusters(), processMuon(), 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 42 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 178 of file MuonSelector.cc.
References SiStripRecHit2D::cluster(), edm::Ref< C, T, F >::isAvailable(), SiStripMatchedRecHit2D::monoHit(), ProjectedSiStripRecHit2D::originalHit(), SiStripMatchedRecHit2D::stereoHit(), HLT_2022v11_cff::track, and DetId::Tracker.
Referenced by processMuon().
|
private |
Process a single muon.
Definition at line 54 of file MuonSelector.cc.
References helper::ClusterStorer::addCluster(), cloneClusters(), clusterRefsOK(), clusterStorer_, 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(), amptDefaultParameters_cff::mu, 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(), 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 218 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_.
|
inline |
Definition at line 43 of file MuonSelector.h.
References cloneClusters_, and w().
|
inline |
Get the size.
Definition at line 53 of file MuonSelector.h.
References 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().