LDMX Software
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Typedefs
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
Functions
Macros
Trigger
Algo
include
Trigger
Event
TrigCaloHit.h
1
#ifndef TRIGGER_EVENT_TRIGCALOHIT_H
2
#define TRIGGER_EVENT_TRIGCALOHIT_H
3
4
// ROOT
5
#include "TObject.h"
//For ClassDef
6
7
namespace
trigger {
8
9
// Forward declaration needed by typedef
10
class
TrigCaloHit;
11
typedef
std::vector<TrigCaloHit> TrigCaloHitCollection;
12
17
class
TrigCaloHit
{
18
public
:
19
TrigCaloHit
() =
default
;
20
21
TrigCaloHit
(
float
x,
float
y,
float
z,
float
e = 0);
22
23
virtual
~TrigCaloHit
() =
default
;
24
25
bool
operator<(
const
TrigCaloHit
&h) {
return
e_ < h.e_; }
26
27
void
Clear() {
28
x_ = 0;
29
y_ = 0;
30
z_ = 0;
31
e_ = 0;
32
}
33
34
void
setEnergy(
float
e) { e_ = e; }
35
void
setXYZ(
float
x,
float
y,
float
z) {
36
x_ = x;
37
y_ = y;
38
z_ = z;
39
}
40
41
float
x() {
return
x_; }
42
float
y() {
return
y_; }
43
float
z() {
return
z_; }
44
float
e() {
return
e_; }
45
float
energy() {
return
e_; }
46
47
private
:
48
float
x_{0};
49
float
y_{0};
50
float
z_{0};
51
float
e_{0};
52
54
ClassDef
(
TrigCaloHit
, 1);
55
};
17
class
TrigCaloHit
{
…
};
56
}
// namespace trigger
57
58
#endif
// TRIGGER_EVENT_TRIGCALOHIT_H
trigger::TrigCaloHit
Class for calo hits used in trigger computations.
Definition
TrigCaloHit.h:17
trigger::TrigCaloHit::ClassDef
ClassDef(TrigCaloHit, 1)
ROOT Dictionary class definition macro.
Generated by
1.12.0