clas12root
Loading...
Searching...
No Matches
traj.h
Go to the documentation of this file.
1
/*
2
* To change this license header, choose License Headers in Project Properties.
3
* To change this template file, choose Tools | Templates
4
* and open the template in the editor.
5
*/
6
7
/*
8
* File: traj.h
9
* Author: dglazier
10
*
11
* Created on April 27, 2017, 10:01 AM
12
*/
13
14
#ifndef CLAS12_TRAJ_H
15
#define CLAS12_TRAJ_H
16
17
#include "
particle_detector.h
"
18
19
20
namespace
clas12
{
21
22
class
traj
:
public
particle_detector
{
23
24
25
public
:
26
27
28
traj
()=
default
;
29
30
traj
(hipo::schema __schema);
31
32
~traj
()
override
=
default
;
33
34
//getter funtions for items in traj bank
35
int
getLayer
(
int
index)
const
noexcept
override
{
36
if
(index>-1)
return
getByte(_layer_order,index);
37
return
0;
38
}
39
int
getLayer
() const noexcept
override
{
40
if
(
_index
>-1)
return
getByte(_layer_order,
_index
);
41
return
0;
42
}
43
double
getCx
() const noexcept{
44
if
(
_index
>-1)
return
getFloat(_cx_order,
_index
);
45
return
0;
46
}
47
double
getCy
() const noexcept{
48
if
(
_index
>-1)
return
getFloat(_cy_order,
_index
);
49
return
0;
50
}
51
double
getCz
() const noexcept{
52
if
(
_index
>-1)
return
getFloat(_cz_order,
_index
);
53
return
0;
54
}
55
double
getX
() const noexcept{
56
if
(
_index
>-1)
return
getFloat(_x_order,
_index
);
57
return
0;
58
}
59
double
getY
() const noexcept{
60
if
(
_index
>-1)
return
getFloat(_y_order,
_index
);
61
return
0;
62
}
63
double
getZ
() const noexcept{
64
if
(
_index
>-1)
return
getFloat(_z_order,
_index
);
65
return
0;
66
}
67
double
getEdge
() const noexcept{
68
if
(
_index
>-1)
return
getFloat(_edge_order,
_index
);
69
return
0;
70
}
71
72
double
getPath
() const noexcept{
73
if
(
_index
>-1)
return
getFloat(_path_order,
_index
);
74
return
0;
75
}
76
77
private
:
78
79
int
_cx_order=-1;
80
int
_cy_order=-1;
81
int
_cz_order=-1;
82
int
_layer_order=-1;
83
int
_path_order=-1;
84
int
_x_order=-1;
85
int
_y_order=-1;
86
int
_z_order=-1;
87
int
_edge_order=-1;
88
89
90
91
};
//class traj
92
93
using
traj_ptr
=
clas12::traj
*;
94
using
traj_uptr
=std::unique_ptr<clas12::traj>;
95
96
}
//namespace clas12
97
98
#endif
/* UTILS_H */
clas12::particle_detector::_index
int _index
Definition
particle_detector.h:83
clas12::particle_detector::particle_detector
particle_detector()=default
clas12::traj
Definition
traj.h:22
clas12::traj::getCx
double getCx() const noexcept
Definition
traj.h:43
clas12::traj::getEdge
double getEdge() const noexcept
Definition
traj.h:67
clas12::traj::getLayer
int getLayer(int index) const noexcept override
Definition
traj.h:35
clas12::traj::getLayer
int getLayer() const noexcept override
Definition
traj.h:39
clas12::traj::~traj
~traj() override=default
clas12::traj::getPath
double getPath() const noexcept
Definition
traj.h:72
clas12::traj::getX
double getX() const noexcept
Definition
traj.h:55
clas12::traj::getY
double getY() const noexcept
Definition
traj.h:59
clas12::traj::getCy
double getCy() const noexcept
Definition
traj.h:47
clas12::traj::getZ
double getZ() const noexcept
Definition
traj.h:63
clas12::traj::getCz
double getCz() const noexcept
Definition
traj.h:51
clas12::traj::traj
traj()=default
clas12
Definition
calextras.cpp:10
clas12::traj_ptr
clas12::traj * traj_ptr
Definition
traj.h:93
clas12::traj_uptr
std::unique_ptr< clas12::traj > traj_uptr
Definition
traj.h:94
particle_detector.h
Clas12Banks
traj.h
Generated by
1.15.0