ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigInDetAnalysis
TrigInDetAnalysis
TIDAEvent.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
13
14
15
#ifndef TRIGINDETANALYSIS_TIDAEVENT_H
16
#define TRIGINDETANALYSIS_TIDAEVENT_H
17
18
#include <iostream>
19
#include <vector>
20
#include <string>
21
22
#include "
TrigInDetAnalysis/TIDAChain.h
"
23
#include "
TrigInDetAnalysis/TIDAVertex.h
"
24
25
26
#include "TObject.h"
27
28
29
30
namespace
TIDA
{
31
32
class
Event
:
public
TObject {
33
34
public
:
35
36
Event
();
37
38
virtual
~Event
();
39
41
void
run_number
(
unsigned
r
) {
m_run_number
=
r
; }
42
void
event_number
(
unsigned
long
long
e) {
m_event_number
= e; }
43
void
lumi_block
(
unsigned
lb
) {
m_lumi_block
=
lb
; }
44
void
time_stamp
(
unsigned
t) {
m_time_stamp
= t; }
45
void
bunch_crossing_id
(
unsigned
b) {
m_bunch_crossing_id
= b; }
46
void
mu
(
double
m) {
m_mu
= m;}
47
48
unsigned
run_number
()
const
{
return
m_run_number
; }
49
unsigned
long
long
event_number
()
const
{
return
m_event_number
; }
50
unsigned
lumi_block
()
const
{
return
m_lumi_block
; }
51
unsigned
time_stamp
()
const
{
return
m_time_stamp
; }
52
unsigned
bunch_crossing_id
()
const
{
return
m_bunch_crossing_id
; }
53
56
double
mu
()
const
{
return
m_mu
; }
57
61
63
unsigned
size
()
const
{
return
m_chains
.size(); }
64
66
void
addChain
(
const
std::string& chainname) {
67
m_chains
.push_back(
TIDA::Chain
(chainname));
68
}
69
70
void
addVertex
(
const
TIDA::Vertex
& v) {
71
m_vertices
.push_back(v);
72
}
73
74
75
const
std::vector<TIDA::Chain>&
chains
()
const
{
return
m_chains
; };
76
std::vector<TIDA::Chain>&
chains
() {
return
m_chains
; };
77
78
const
TIDA::Chain
*
chain
(
const
std::string& s )
const
;
79
81
void
clear
() {
m_chains
.clear();
m_vertices
.clear(); }
82
84
TIDA::Chain
&
back
() {
return
m_chains
.back(); }
85
86
// iterators
87
std::vector<TIDA::Chain>::iterator
begin
() {
return
m_chains
.begin(); }
88
std::vector<TIDA::Chain>::iterator
end
() {
return
m_chains
.end(); }
89
90
std::vector<TIDA::Chain>::const_iterator
begin
()
const
{
return
m_chains
.begin(); }
91
std::vector<TIDA::Chain>::const_iterator
end
()
const
{
return
m_chains
.end(); }
92
94
TIDA::Chain
&
operator[]
(
int
i) {
return
m_chains
.at(i); }
95
96
const
std::vector<TIDA::Vertex>&
vertices
()
const
{
return
m_vertices
; }
97
98
std::vector<std::string>
chainnames
()
const
;
99
100
void
erase
(
const
std::string& name );
101
102
103
private
:
104
105
unsigned
m_run_number
;
106
unsigned
long
long
m_event_number
;
107
unsigned
m_lumi_block
;
108
unsigned
m_time_stamp
;
109
110
unsigned
m_bunch_crossing_id
;
111
double
m_mu
;
112
114
std::vector<TIDA::Chain>
m_chains
;
115
116
std::vector<TIDA::Vertex>
m_vertices
;
117
118
ClassDef(
TIDA::Event
,4)
119
120
};
121
122
}
123
124
inline
std::ostream&
operator<<
( std::ostream& s,
const
TIDA::Event
& t ) {
125
s <<
"Event run: "
<< t.run_number()
126
<<
"\tevent: "
<< t.event_number()
127
<<
"\tlb: "
<< t.lumi_block()
128
<<
"\tbc: "
<< t.bunch_crossing_id()
129
<<
"\ttime: "
<< t.time_stamp()
130
<<
"\tmu: "
<< t.mu();
131
for
(
unsigned
i=0 ; i<t.vertices().
size
() ; i++ ) s <<
"\n"
<< t.vertices()[i];
132
for
(
unsigned
i=0 ; i<t.chains().
size
() ; i++ ) s <<
"\n"
<< t.chains()[i];
133
return
s;
134
}
135
136
137
#endif
// TRIGINDETANALYSIS_TIDAEVENT_H
138
139
140
141
142
143
144
145
146
147
size
size_t size() const
Number of registered mappings.
TIDAChain.h
chain container, contains rois
operator<<
std::ostream & operator<<(std::ostream &s, const TIDA::Event &t)
Definition
TIDAEvent.h:124
TIDAVertex.h
TIDA::Chain
Definition
TIDAChain.h:28
TIDA::Event
Definition
TIDAEvent.h:32
TIDA::Event::operator[]
TIDA::Chain & operator[](int i)
vector operator
Definition
TIDAEvent.h:94
TIDA::Event::lumi_block
unsigned lumi_block() const
Definition
TIDAEvent.h:50
TIDA::Event::erase
void erase(const std::string &name)
Definition
TIDAEvent.cxx:36
TIDA::Event::Event
Event()
TIDA::Event::m_event_number
unsigned long long m_event_number
Definition
TIDAEvent.h:106
TIDA::Event::chain
const TIDA::Chain * chain(const std::string &s) const
Definition
TIDAEvent.cxx:57
TIDA::Event::run_number
unsigned run_number() const
Definition
TIDAEvent.h:48
TIDA::Event::m_time_stamp
unsigned m_time_stamp
Definition
TIDAEvent.h:108
TIDA::Event::end
std::vector< TIDA::Chain >::iterator end()
Definition
TIDAEvent.h:88
TIDA::Event::begin
std::vector< TIDA::Chain >::const_iterator begin() const
Definition
TIDAEvent.h:90
TIDA::Event::lumi_block
void lumi_block(unsigned lb)
Definition
TIDAEvent.h:43
TIDA::Event::mu
void mu(double m)
Definition
TIDAEvent.h:46
TIDA::Event::back
TIDA::Chain & back()
get the last chain from the vector
Definition
TIDAEvent.h:84
TIDA::Event::addVertex
void addVertex(const TIDA::Vertex &v)
Definition
TIDAEvent.h:70
TIDA::Event::bunch_crossing_id
unsigned bunch_crossing_id() const
Definition
TIDAEvent.h:52
TIDA::Event::chains
std::vector< TIDA::Chain > & chains()
Definition
TIDAEvent.h:76
TIDA::Event::mu
double mu() const
FIXME: what is this ?
Definition
TIDAEvent.h:56
TIDA::Event::bunch_crossing_id
void bunch_crossing_id(unsigned b)
Definition
TIDAEvent.h:45
TIDA::Event::~Event
virtual ~Event()
Definition
TIDAEvent.cxx:26
TIDA::Event::m_run_number
unsigned m_run_number
Definition
TIDAEvent.h:105
TIDA::Event::begin
std::vector< TIDA::Chain >::iterator begin()
Definition
TIDAEvent.h:87
TIDA::Event::end
std::vector< TIDA::Chain >::const_iterator end() const
Definition
TIDAEvent.h:91
TIDA::Event::time_stamp
unsigned time_stamp() const
Definition
TIDAEvent.h:51
TIDA::Event::m_mu
double m_mu
Definition
TIDAEvent.h:111
TIDA::Event::addChain
void addChain(const std::string &chainname)
methods to add and access chains
Definition
TIDAEvent.h:66
TIDA::Event::event_number
void event_number(unsigned long long e)
Definition
TIDAEvent.h:42
TIDA::Event::time_stamp
void time_stamp(unsigned t)
Definition
TIDAEvent.h:44
TIDA::Event::run_number
void run_number(unsigned r)
accessors
Definition
TIDAEvent.h:41
TIDA::Event::chains
const std::vector< TIDA::Chain > & chains() const
Definition
TIDAEvent.h:75
TIDA::Event::clear
void clear()
clear the event
Definition
TIDAEvent.h:81
TIDA::Event::vertices
const std::vector< TIDA::Vertex > & vertices() const
Definition
TIDAEvent.h:96
TIDA::Event::m_bunch_crossing_id
unsigned m_bunch_crossing_id
Definition
TIDAEvent.h:110
TIDA::Event::size
unsigned size() const
vertex multiplicity ?
Definition
TIDAEvent.h:63
TIDA::Event::event_number
unsigned long long event_number() const
Definition
TIDAEvent.h:49
TIDA::Event::m_vertices
std::vector< TIDA::Vertex > m_vertices
Definition
TIDAEvent.h:116
TIDA::Event::chainnames
std::vector< std::string > chainnames() const
Definition
TIDAEvent.cxx:28
TIDA::Event::m_chains
std::vector< TIDA::Chain > m_chains
vertex multiplicity ?
Definition
TIDAEvent.h:114
TIDA::Event::m_lumi_block
unsigned m_lumi_block
Definition
TIDAEvent.h:107
TIDA::Vertex
Definition
TIDAVertex.h:23
lb
int lb
Definition
globals.cxx:23
r
int r
Definition
globals.cxx:22
TIDA
Test for xAOD.
Definition
Filter_AcceptAll.h:22
Generated on
for ATLAS Offline Software by
1.17.0