11 #ifndef TRIGOBJECTMATCHER_H
12 #define TRIGOBJECTMATCHER_H
26 typedef std::map<unsigned long, const TrackTrigObject*>
map_type;
33 const std::vector<TrackTrigObject>&
objects )
35 for (
size_t i=tracks.size() ;
i-- ; )
match( tracks[
i]->
id(),
objects );
40 const std::vector<TrackTrigObject>&
objects,
43 const std::vector<TIDA::Track*> tracks =
selector->tracks();
44 for (
size_t i=tracks.size() ;
i-- ; )
if (
match( tracks[
i]->
id(),
objects, select_function )==
false )
selector->delete_track( tracks[
i] );
48 const std::vector<TrackTrigObject>&
objects,
51 const std::vector<TIDA::Track*> tracks =
selector->tracks();
52 for (
size_t i=tracks.size() ;
i-- ; )
if (
match( tracks[
i],
objects, select_function )==
false )
selector->delete_track( tracks[
i] );
60 map_type::const_iterator itr =
m_objectmap.find( track_id );
72 void print( std::ostream&
s )
const {
75 s <<
"\n[ id: 0x" << std::hex << itr->first << std::dec <<
" :: " << *(itr->second) <<
" ]";
82 for (
size_t j=
objects.size() ; j-- ; ) {
85 if ( select_function==0 || select_function(
objects[j]) ) {
98 for (
size_t j=
objects.size() ; j-- ; ) {
101 if ( select_function==0 || select_function(
objects[j],
track) ) {
126 #endif // TRIGOBJECTMATCHER_H