47 LogTrace(
"Muon|RecoMuon|GlobalMuonProducer") <<
"constructor called" << endl;
73 produces<reco::TrackCollection>().setBranchAlias(theAlias +
"Tracks");
74 produces<TrackingRecHitCollection>().setBranchAlias(theAlias +
"RecHits");
75 produces<reco::TrackExtraCollection>().setBranchAlias(theAlias +
"TrackExtras");
76 produces<vector<Trajectory> >().setBranchAlias(theAlias +
"Trajectories") ;
77 produces<TrajTrackAssociationCollection>().setBranchAlias(theAlias +
"TrajTrackMap");
78 produces<reco::MuonTrackLinksCollection>().setBranchAlias(theAlias +
"s");
87 LogTrace(
"Muon|RecoMuon|GlobalMuonProducer") <<
"destructor called" << endl;
88 if (theService)
delete theService;
89 if (theTrackFinder)
delete theTrackFinder;
98 const string metname =
"Muon|RecoMuon|GlobalMuonProducer";
100 LogTrace(metname)<<
"Global Muon Reconstruction started"<<endl;
103 theService->update(eventSetup);
107 event.getByLabel(theSTACollectionLabel,staMuons);
111 LogTrace(metname) <<
"Taking " << staMuons->size() <<
" Stand Alone Muons "<<theSTACollectionLabel<<endl;
113 vector<MuonTrajectoryBuilder::TrackCand> staTrackCands;
119 if( event.
getByLabel(theSTACollectionLabel.label(), staMuonsTraj) && event.
getByLabel(theSTACollectionLabel.label(),staAssoMap) && event.
getByLabel(theSTACollectionLabel.label(),updatedStaAssoMap) ) {
127 if ( theSTACollectionLabel.instance() ==
"UpdatedAtVtx") {
128 iEnd = updatedStaAssoMap->end();
129 iii = updatedStaAssoMap->find(it->val);
130 if (iii != iEnd ) tkUpdated = (*updatedStaAssoMap)[it->val] ;
133 int etaFlip1 = ((tkUpdated.
isNonnull() && tkRegular.
isNonnull()) && ( (tkUpdated->eta() * tkRegular->eta() ) < 0)) ? -1 : 1;
138 if( traj->isValid() ) tkCand.first = &*traj ;
139 staTrackCands.push_back(tkCand);
145 staTrackCands.push_back(staCand);
149 theTrackFinder->reconstruct(staTrackCands, event);
153 <<
"================================"
T getParameter(std::string const &) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
virtual void produce(edm::Event &, const edm::EventSetup &)
reconstruct muons
const std::string metname
static int position[TOTALCHAMBERS][3]
bool isNonnull() const
Checks for non-null.
void addParameter(std::string const &name, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~GlobalMuonProducer()
destructor
key_type key() const
Accessor for product key.
GlobalMuonProducer(const edm::ParameterSet &)
constructor with config