47 for (
typename std::vector<todoListEntryType>::const_iterator todoItem =
todoList_.begin();
48 todoItem !=
todoList_.end(); ++todoItem ) {
49 produces<MuonTrackLinksCollection>(todoItem->srcTrackCollection1_.instance());
63 for ( std::map<reco::TrackRef, reco::TrackRef>::const_iterator outputToInputTrackAssociation = trackRefMap.begin();
64 outputToInputTrackAssociation != trackRefMap.end(); ++outputToInputTrackAssociation ) {
65 reco::TrackRef track_output = outputToInputTrackAssociation->first;
66 reco::TrackRef track_input = outputToInputTrackAssociation->second;
70 return trackLink_output;
78 for (
typename std::vector<todoListEntryType>::const_iterator todoItem =
todoList_.begin();
79 todoItem !=
todoList_.end(); ++todoItem ) {
81 evt.
getByLabel(todoItem->srcTrackCollection1_, trackLinksCollection1);
84 evt.
getByLabel(todoItem->srcTrackCollection2_, trackLinksCollection2);
88 for ( MuonTrackLinksCollection::const_iterator trackLink = trackLinksCollection1->begin();
89 trackLink != trackLinksCollection1->end(); ++trackLink ) {
91 trackLinks_output->push_back(trackLink_output);
93 for ( MuonTrackLinksCollection::const_iterator trackLink = trackLinksCollection2->begin();
94 trackLink != trackLinksCollection2->end(); ++trackLink ) {
96 trackLinks_output->push_back(trackLink_output);
100 std::cout <<
"instanceLabel = " << todoItem->srcTrackCollection1_.instance() <<
": #entries = " << trackLinks_output->size() << std::endl;
102 for ( MuonTrackLinksCollection::const_iterator trackLink = trackLinks_output->begin();
103 trackLink != trackLinks_output->end(); ++trackLink ) {
104 std::cout <<
"trackLink #" << idx <<
":" << std::endl;
112 evt.
put(trackLinks_output, todoItem->srcTrackCollection1_.instance());
reco::TrackRef trackerTrack() const
get the tracker's track which match with the stand alone muon tracks
std::vector< todoListEntryType > todoList_
#define DEFINE_FWK_MODULE(type)
reco::TrackRef standAloneTrack() const
get the track built with the muon spectrometer alone
virtual void produceTrackExtras(edm::Event &, const edm::EventSetup &)
void setGlobalTrack(reco::TrackRef glb)
set the ref to combined track
void setTrackerTrack(reco::TrackRef tk)
set the ref to tracker's track
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
GlobalMuonTrackMixer(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< reco::MuonTrackLinks > MuonTrackLinksCollection
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
key_type key() const
Accessor for product key.
void setStandAloneTrack(reco::TrackRef sta)
set the ref to stand alone track
ProductID id() const
Accessor for product ID.
reco::TrackRef globalTrack() const
get the combined track