107 unique_ptr<TrackCollection> t2v_firstvertextracks(
new TrackCollection() );
108 unique_ptr<TrackCollection> v2t_firstvertextracks(
new TrackCollection() );
110 bool t2vassmap =
false;
111 bool v2tassmap =
false;
119 if ( ( asstype ==
"TracksToVertex" ) || ( asstype ==
"Both" ) ) {
125 if ( ( asstype ==
"VertexToTracks" ) || ( asstype ==
"Both" ) ) {
131 if ( !t2vassmap && !v2tassmap ) {
132 cout <<
"No input collection could be found" << endl;
145 for (
unsigned int trckcoll_ite = 0; trckcoll_ite < trckcoll.size(); trckcoll_ite++){
147 float quality = trckcoll[trckcoll_ite].second;
151 TrackRef AMtrkref = trckcoll[trckcoll_ite].first;
153 for(
unsigned int index_input_trck=0; index_input_trck<input_trckcollH->size(); index_input_trck++){
159 t2v_firstvertextracks->push_back(*AMtrkref);
180 VertexRef firstVertexRef(input_vtxcollH,0);
184 for(v2t_ite=v2tAM->
begin(); v2t_ite!=v2tAM->
end(); v2t_ite++){
188 for(
unsigned int index_input_trck=0; index_input_trck<input_trckcollH->size(); index_input_trck++){
194 for(
unsigned v_ite = 0; v_ite<(v2t_ite->
val).
size(); v_ite++){
197 float quality = (v2t_ite->
val)[v_ite].
second;
200 v2t_firstvertextracks->push_back(*AMtrkref);
std::vector< TrackQualityPair > TrackQualityPairVector
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const_iterator end() const
last iterator over the map (read only)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
U second(std::pair< T, U > const &p)
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
const_iterator begin() const
first iterator over the map (read only)