114 auto_ptr<TrackCollection> t2v_firstvertextracks(
new TrackCollection() );
115 auto_ptr<TrackCollection> v2t_firstvertextracks(
new TrackCollection() );
117 bool t2vassmap =
false;
118 bool v2tassmap =
false;
126 if ( ( asstype ==
"TracksToVertex" ) || ( asstype ==
"Both" ) ) {
132 if ( ( asstype ==
"VertexToTracks" ) || ( asstype ==
"Both" ) ) {
138 if ( !t2vassmap && !v2tassmap ) {
139 cout <<
"No input collection could be found" << endl;
152 for (
unsigned int trckcoll_ite = 0; trckcoll_ite < trckcoll.size(); trckcoll_ite++){
154 float quality = trckcoll[trckcoll_ite].second;
158 TrackRef AMtrkref = trckcoll[trckcoll_ite].first;
160 for(
unsigned int index_input_trck=0; index_input_trck<input_trckcollH->size(); index_input_trck++){
166 t2v_firstvertextracks->push_back(*AMtrkref);
177 iEvent.
put( t2v_firstvertextracks,
"T2V" );
187 VertexRef firstVertexRef(input_vtxcollH,0);
191 for(v2t_ite=v2tAM->begin(); v2t_ite!=v2tAM->end(); v2t_ite++){
195 for(
unsigned int index_input_trck=0; index_input_trck<input_trckcollH->size(); index_input_trck++){
201 for(
unsigned v_ite = 0; v_ite<(v2t_ite->
val).
size(); v_ite++){
204 float quality = (v2t_ite->
val)[v_ite].
second;
207 v2t_firstvertextracks->push_back(*AMtrkref);
218 iEvent.
put( v2t_firstvertextracks,
"V2T" );
std::vector< TrackQualityPair > TrackQualityPairVector
std::vector< Track > TrackCollection
collection of Tracks
U second(std::pair< T, U > const &p)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
tuple size
Write out results.