ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigInDetAnalysis
TrigInDetAnalysis
VertexAnalysis.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
10
11
12
#ifndef VERTEXANALYSIS_H
13
#define VERTEXANALYSIS_H
14
15
#include <iostream>
16
17
18
#include "TH1.h"
19
#include "TProfile.h"
20
21
#include "
TrigInDetAnalysis/TIDAEvent.h
"
22
#include "
TrigInDetAnalysis/TIDAVertex.h
"
23
24
25
class
VertexAnalysis
{
26
27
public
:
28
29
VertexAnalysis
(
const
std::string& n ) :
m_name
(n) { }
30
31
virtual
~VertexAnalysis
() { }
32
33
const
std::string&
name
()
const
{
return
m_name
; }
34
35
virtual
void
initialise
() = 0;
36
37
virtual
void
execute
(
const
std::vector<TIDA::Vertex*>& vtx0,
38
const
std::vector<TIDA::Vertex*>& vtx1,
39
const
TIDA::Event
* te=0 ) = 0;
40
41
virtual
void
finalise
() = 0;
42
43
void
addHistogram
( TH1*
h
) {
m_histos
.push_back(
h
); }
44
45
void
addHistogram
( TProfile*
h
) {
m_profs
.push_back(
h
); }
46
47
const
std::vector<TH1*>&
objects
()
const
{
return
m_histos
; }
48
const
std::vector<TProfile*>&
profs
()
const
{
return
m_profs
; }
49
50
protected
:
51
52
std::vector<TH1*>
m_histos
;
53
std::vector<TProfile*>
m_profs
;
54
55
private
:
56
57
std::string
m_name
;
58
59
};
60
61
inline
std::ostream&
operator<<
( std::ostream& s,
const
VertexAnalysis
& v ) {
62
return
s << v.name();
63
}
64
65
66
#endif
// VERTEXANALYSIS_H
67
68
69
70
71
72
73
74
75
76
TIDAEvent.h
Basic event class to contain a vector of chains for trigger analysis.
TIDAVertex.h
operator<<
std::ostream & operator<<(std::ostream &s, const VertexAnalysis &v)
Definition
VertexAnalysis.h:61
h
Header file for AthHistogramAlgorithm.
TIDA::Event
Definition
TIDAEvent.h:32
VertexAnalysis
Definition
VertexAnalysis.h:25
VertexAnalysis::addHistogram
void addHistogram(TProfile *h)
Definition
VertexAnalysis.h:45
VertexAnalysis::finalise
virtual void finalise()=0
VertexAnalysis::m_name
std::string m_name
Definition
VertexAnalysis.h:57
VertexAnalysis::initialise
virtual void initialise()=0
VertexAnalysis::profs
const std::vector< TProfile * > & profs() const
Definition
VertexAnalysis.h:48
VertexAnalysis::VertexAnalysis
VertexAnalysis(const std::string &n)
Definition
VertexAnalysis.h:29
VertexAnalysis::m_profs
std::vector< TProfile * > m_profs
Definition
VertexAnalysis.h:53
VertexAnalysis::execute
virtual void execute(const std::vector< TIDA::Vertex * > &vtx0, const std::vector< TIDA::Vertex * > &vtx1, const TIDA::Event *te=0)=0
VertexAnalysis::name
const std::string & name() const
Definition
VertexAnalysis.h:33
VertexAnalysis::objects
const std::vector< TH1 * > & objects() const
Definition
VertexAnalysis.h:47
VertexAnalysis::~VertexAnalysis
virtual ~VertexAnalysis()
Definition
VertexAnalysis.h:31
VertexAnalysis::m_histos
std::vector< TH1 * > m_histos
Definition
VertexAnalysis.h:52
VertexAnalysis::addHistogram
void addHistogram(TH1 *h)
Definition
VertexAnalysis.h:43
Generated on
for ATLAS Offline Software by
1.17.0