30 {
CopyFrom( source );
return *
this; }
38 if(
this == &source )
return;
54 {
_states.insert( std::make_pair(iter->first, static_cast<SvtxTrackState*>(iter->second->CloneMe() ) ) ); }
60 os <<
"SvtxTrack_v4 Object ";
61 os <<
"id: " <<
get_id() <<
" ";
65 os <<
"nstates: " <<
_states.size() <<
" ";
68 os <<
"(px,py,pz) = ("
71 <<
get_pz() <<
")" << std::endl;
73 os <<
"(x,y,z) = (" <<
get_x() <<
"," <<
get_y() <<
"," <<
get_z() <<
")" << std::endl;
75 os <<
"Silicon clusters " << std::endl;
82 std::cout << *iter <<
", ";
85 os << std::endl <<
"Tpc + TPOT clusters " << std::endl;
92 std::cout << *iter <<
", ";
102 for(
const auto& pair:
_states )
103 {
delete pair.second; }
115 const auto iter =
_states.find(pathlength);
116 return (iter ==
_states.end()) ?
nullptr:iter->second;
121 const auto iter =
_states.find(pathlength);
122 return (iter ==
_states.end()) ?
nullptr:iter->second;
129 auto iterator =
_states.lower_bound( pathlength );
130 if( iterator ==
_states.end() || pathlength < iterator->first )
134 iterator =
_states.insert(iterator, std::make_pair( pathlength, copy ));
138 return iterator->second;