Global muon reconstructor: reconstructs muons using DT, CSC, RPC and tracker information,
starting from a standalone reonstructed muon.
- Author
- R.Bellan - INFN TO
Definition at line 32 of file GlobalMuonProducer.h.
reconstruct muons
Definition at line 94 of file GlobalMuonProducer.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, edm::AssociationMap< edm::OneToOne< reco::TrackCollection, reco::TrackCollection > >::const_iterator, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), edm::Event::getByToken(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), LogTrace, metname, and position.
95 const string metname =
"Muon|RecoMuon|GlobalMuonProducer";
97 LogTrace(metname)<<
"Global Muon Reconstruction started"<<endl;
108 LogTrace(metname) <<
"Taking " << staMuons->size() <<
" Stand Alone Muons "<<endl;
110 vector<MuonTrajectoryBuilder::TrackCand> staTrackCands;
125 iEnd = updatedStaAssoMap->
end();
126 iii = updatedStaAssoMap->
find(it->val);
127 if (iii != iEnd ) tkUpdated = (*updatedStaAssoMap)[it->val] ;
130 int etaFlip1 = ((tkUpdated.
isNonnull() && tkRegular.
isNonnull()) && ( (tkUpdated->eta() * tkRegular->eta() ) < 0)) ? -1 : 1;
135 if( traj->isValid() ) tkCand.first = &*traj ;
136 staTrackCands.push_back(tkCand);
142 staTrackCands.push_back(staCand);
150 <<
"================================" bool isNonnull() const
Checks for non-null.
std::pair< const Trajectory *, reco::TrackRef > TrackCand
friend struct const_iterator
const_iterator end() const
last iterator over the map (read only)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
const_iterator find(const key_type &k) const
find element with specified reference key
key_type key() const
Accessor for product key.
edm::EDGetTokenT< TrajTrackAssociationCollection > staAssoMapToken
edm::EDGetTokenT< reco::TrackToTrackMap > updatedStaAssoMapToken
edm::EDGetTokenT< reco::TrackCollection > staMuonsToken
STA Tokens.
MuonTrackFinder * theTrackFinder
static int position[264][3]
MuonServiceProxy * theService
the event setup proxy, it takes care the services update
const_iterator begin() const
first iterator over the map (read only)
edm::OrphanHandle< reco::TrackCollection > reconstruct(const edm::Handle< edm::View< TrajectorySeed > > &, edm::Event &, const edm::EventSetup &)
reconstruct standalone tracks starting from a collection of seeds
edm::EDGetTokenT< std::vector< Trajectory > > staMuonsTrajToken
edm::InputTag theSTACollectionLabel