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;
105 std::cout <<
" trackerTrack = " << trackLink->trackerTrack().id() <<
":" << trackLink->trackerTrack().key() << std::endl;
106 std::cout <<
" standAloneTrack = " << trackLink->standAloneTrack().id() <<
":" << trackLink->standAloneTrack().key() << std::endl;
107 std::cout <<
" globalTrack = " << trackLink->globalTrack().id() <<
":" << trackLink->globalTrack().key() << std::endl;
112 evt.
put(trackLinks_output, todoItem->srcTrackCollection1_.instance());
std::vector< todoListEntryType > todoList_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< reco::MuonTrackLinks > MuonTrackLinksCollection
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...