#include <TrigObjectMatcher.h>
Definition at line 22 of file TrigObjectMatcher.h.
◆ map_type
◆ TrigObjectMatcher() [1/4]
| TrigObjectMatcher::TrigObjectMatcher |
( |
| ) |
|
|
inline |
◆ TrigObjectMatcher() [2/4]
| TrigObjectMatcher::TrigObjectMatcher |
( |
const std::vector< TIDA::Track * > & | tracks, |
|
|
const std::vector< TrackTrigObject > & | objects ) |
|
inline |
Definition at line 32 of file TrigObjectMatcher.h.
35 for (
size_t i=tracks.size() ; i-- ; )
match( tracks[i]->
id(), objects );
36 }
bool match(unsigned long track_id, const std::vector< TrackTrigObject > &objects, bool(*select_function)(const TrackTrigObject &t)=0)
◆ TrigObjectMatcher() [3/4]
Definition at line 39 of file TrigObjectMatcher.h.
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] );
45 }
◆ TrigObjectMatcher() [4/4]
Definition at line 47 of file TrigObjectMatcher.h.
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] );
53 }
◆ ~TrigObjectMatcher()
| virtual TrigObjectMatcher::~TrigObjectMatcher |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
| map_type::const_iterator TrigObjectMatcher::begin |
( |
| ) |
const |
|
inline |
◆ end()
| map_type::const_iterator TrigObjectMatcher::end |
( |
| ) |
const |
|
inline |
◆ match() [1/2]
Definition at line 97 of file TrigObjectMatcher.h.
97 {
98 for (
size_t j=
objects.size() ; j-- ; ) {
100 if (
track->id() == objects[j].children()[k] ) {
101 if ( select_function==0 || select_function(objects[j], track) ) {
103 return true;
104 }
105 else return false;
106 }
107 }
108 }
109 return false;
110 }
◆ match() [2/2]
| bool TrigObjectMatcher::match |
( |
unsigned long | track_id, |
|
|
const std::vector< TrackTrigObject > & | objects, |
|
|
bool(* | select_function )(const TrackTrigObject &t) = 0 ) |
|
inlineprivate |
Definition at line 81 of file TrigObjectMatcher.h.
81 {
82 for (
size_t j=
objects.size() ; j-- ; ) {
84 if ( track_id == objects[j].
children()[k] ) {
85 if ( select_function==0 || select_function(objects[j]) ) {
86 m_objectmap.insert( map_type::value_type( track_id, &objects[j] ) );
87 return true;
88 }
89 else return false;
90 }
91 }
92 }
93 return false;
94 }
◆ object()
| const TrackTrigObject * TrigObjectMatcher::object |
( |
unsigned long | track_id | ) |
|
|
inline |
◆ print()
| void TrigObjectMatcher::print |
( |
std::ostream & | s | ) |
const |
|
inline |
Definition at line 72 of file TrigObjectMatcher.h.
72 {
75 s <<
"\n[ id: 0x" << std::hex << itr->first << std::dec <<
" :: " << *(itr->second) <<
" ]";
76 }
77 }
◆ size()
| size_t TrigObjectMatcher::size |
( |
| ) |
const |
|
inline |
◆ status()
| bool TrigObjectMatcher::status |
( |
| ) |
const |
|
inline |
◆ m_objectmap
◆ m_status
| int TrigObjectMatcher::m_status |
|
private |
The documentation for this class was generated from the following file: