ATLAS Offline Software
TIDAReference.h
Go to the documentation of this file.
1 
14 #ifndef TIDAREFERENCE_H
15 #define TIDAREFERENCE_H
16 
20 
21 
22 #include <iostream>
23 #include <string>
24 #include <map>
25 
26 namespace TIDA {
27 
28 class Reference {
29 
30 public:
31 
34  }
35 
37 
38  void Clean() {
39  delete m_selector;
40  delete m_tom;
41  m_selector=0;
42  m_tom=0;
43  }
44 
45  const std::string& name() const { return m_name; }
46 
48  const TrackSelector* selector() const { return m_selector; }
49 
50  TrackFilter* filter() { return m_filter; }
51  const TrackFilter* filter() const { return m_filter; }
52 
53  TrigObjectMatcher* tom() { return m_tom; }
54  const TrigObjectMatcher* tom() const { return m_tom; }
55 
56 
57 protected:
58 
59  std::string m_name;
60 
64 
65 };
66 
67 
68 class ReferenceMap : public std::map<std::string,Reference> {
69 
70 public:
71 
73  typedef std::map<std::string,Reference>::const_iterator const_iterator;
74  typedef std::map<std::string,Reference>::value_type value_type;
75 
76 private:
77 
78  ReferenceMap() { }
79 
80 };
81 
82 
83 std::ostream& operator<<( std::ostream& s, const Reference& r ) {
84  s << "[ Reference: " << r.name() << "\n";
85  s << " " << r.selector()->size() << "\n";
86  s << " " << r.tom()->size() << "\n";
87  s << " " << *r.tom() << "]";
88  return s;
89 }
90 
91 
92 }
93 
94 
95 #endif /* TIDAREFERENCE_H */
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
beamspotman.r
def r
Definition: beamspotman.py:676
TIDA
Test for xAOD.
Definition: Filter_AcceptAll.h:22
TIDA::Reference
Definition: TIDAReference.h:28
TIDA::Reference::m_name
std::string m_name
Definition: TIDAReference.h:59
TIDA::Reference::m_tom
TrigObjectMatcher * m_tom
Definition: TIDAReference.h:63
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TIDA::operator<<
std::ostream & operator<<(std::ostream &s, const Reference &r)
Definition: TIDAReference.h:83
TIDA::Reference::tom
const TrigObjectMatcher * tom() const
Definition: TIDAReference.h:54
TIDA::Reference::filter
const TrackFilter * filter() const
Definition: TIDAReference.h:51
TrackFilter
Definition: TrackFilter.h:26
TrackFilter.h
base class for a single track selection filter allowing parameter setting for complex track selection
TIDA::Reference::Clean
void Clean()
Definition: TIDAReference.h:38
TIDA::Reference::m_selector
TrackSelector * m_selector
Definition: TIDAReference.h:61
TIDA::Reference::name
const std::string & name() const
Definition: TIDAReference.h:45
TIDA::Reference::filter
TrackFilter * filter()
Definition: TIDAReference.h:50
TIDA::Reference::selector
const TrackSelector * selector() const
Definition: TIDAReference.h:48
TrackSelector
Definition: Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/TrackSelector.h:24
TIDA::Reference::m_filter
TrackFilter * m_filter
Definition: TIDAReference.h:62
TIDA::ReferenceMap::value_type
std::map< std::string, Reference >::value_type value_type
Definition: TIDAReference.h:74
TIDA::ReferenceMap::const_iterator
std::map< std::string, Reference >::const_iterator const_iterator
Definition: TIDAReference.h:73
TIDA::Reference::selector
TrackSelector * selector()
Definition: TIDAReference.h:47
TIDA::ReferenceMap::iterator
std::map< std::string, Reference >::iterator iterator
Definition: TIDAReference.h:72
TrigObjectMatcher
Definition: TrigObjectMatcher.h:24
TrackSelector.h
TIDA::ReferenceMap
Definition: TIDAReference.h:68
TIDA::Reference::tom
TrigObjectMatcher * tom()
Definition: TIDAReference.h:53
TIDA::Reference::Reference
Reference(const std::string &name, TrackSelector *selector, TrackFilter *filter=0, TrigObjectMatcher *tom=0)
Definition: TIDAReference.h:32
TrigObjectMatcher.h
TIDA::Reference::~Reference
~Reference()
Definition: TIDAReference.h:36
TIDA::ReferenceMap::ReferenceMap
ReferenceMap()
Definition: TIDAReference.h:78