hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
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
l
m
n
o
p
r
s
t
u
v
w
z
~
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
Files
File List
File Members
All
c
d
f
i
j
l
m
n
p
r
s
u
Functions
c
d
f
i
m
n
r
s
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
event
include
VTPData.h
Go to the documentation of this file.
1
8
#ifndef _VTP_DATA_H_
9
#define _VTP_DATA_H_
10
11
#include <vector>
12
#include <iostream>
13
14
//----------//
15
// ROOT //
16
//----------//
17
#include <TObject.h>
18
19
class
VTPData
:
public
TObject {
20
21
public
:
22
struct
bHeader
{
23
unsigned
int
blocklevel
;
// 8 bits 0-7
24
unsigned
int
blocknum
;
// 10 bits 8-17
25
unsigned
int
nothing
;
// 4 bits 18-21
26
unsigned
int
slotid
;
// 5 bits 22-26
27
unsigned
int
type
;
// 4 bits 27-30
28
bool
istype
;
// 1 bit 31
29
};
22
struct
bHeader
{
…
};
30
bHeader
blockHeader
;
31
32
struct
bTail
{
33
unsigned
int
nwords
;
// 22 bits 0-21
34
unsigned
int
slotid
;
// 5 bits 22-26
35
unsigned
int
type
;
// 4 bits 27-30
36
bool
istype
;
// 1 bit 31
37
};
32
struct
bTail
{
…
};
38
bTail
blockTail
;
39
40
struct
eHeader
{
41
unsigned
int
eventnum
;
// 27 bits 0-26
42
unsigned
int
type
;
// 4 bits 27-30
43
bool
istype
;
// 1 bit 31
44
};
40
struct
eHeader
{
…
};
45
eHeader
eventHeader
;
46
47
unsigned
long
trigTime
;
48
49
struct
hpsCluster
{
50
int
X
;
// 6 bits 0-5
51
int
Y
;
// 4 bits 6-9
52
unsigned
int
E
;
// 13 bits 10-22
53
unsigned
int
subtype
;
// 4 bits 23-26
54
unsigned
int
type
;
// 4 bits 27-30
55
bool
istype
;
// 1 bit 31
56
unsigned
int
T
;
// 10 bits 0-9 Second word
57
unsigned
int
N
;
// 4 bits 10-13 Second word
58
unsigned
int
nothing
;
// 18 bits 14-31 Second word not used.
59
};
49
struct
hpsCluster
{
…
};
60
61
std::vector<hpsCluster>
clusters
;
62
63
struct
hpsSingleTrig
{
64
unsigned
int
T
;
// 10 bits 0-9 Trigger time in 4ns units from the beginning of the readout window.
65
bool
emin
;
// 1 bit 10
66
bool
emax
;
// 1 bit 11
67
bool
nmin
;
// 1 bit 12
68
bool
xmin
;
// 1 bit 13
69
bool
pose
;
// 1 bit 14 position dependent energy thresh.
70
bool
hodo1c
;
// 1 bit 15 hodoscope layer 1 coincidence.
71
bool
hodo2c
;
// 1 bit 16 hodoscope layer 2 coincidence.
72
bool
hodogeo
;
// 1 bit 17 hodoscope layer 1 geometry matched to layer 2 geometry
73
bool
hodoecal
;
// 1 bit 18 hodoscope layer 1 and 2 geometry mached to ecal cluster x.
74
bool
topnbot
;
// 1 bit 19
75
unsigned
int
inst
;
// 3 bits 20-22 = single cluster trigger bit instance.
76
unsigned
int
subtype
;
// 4 bits 23-26
77
unsigned
int
type
;
// 4 bits 27-30
78
bool
istype
;
// 1 bit 31
79
};
63
struct
hpsSingleTrig
{
…
};
80
81
std::vector<hpsSingleTrig>
singletrigs
;
82
83
struct
hpsPairTrig
{
84
unsigned
int
T
;
// bit 0-9 Trigger time in 4ns units from the beginning of the readout window.
85
bool
clusesum
;
// 1 bit 10
86
bool
clusedif
;
// 1 bit 11
87
bool
eslope
;
// 1 bit 12
88
bool
coplane
;
// 1 bit 13
89
unsigned
int
dummy
;
// 5 bits 14-18
90
bool
topnbot
;
// 1 bit 19 - dummy!
91
unsigned
int
inst
;
// 3 bits 20-22 = single cluster trigger bit instance.
92
unsigned
int
subtype
;
// 4 bits 23-26
93
unsigned
int
type
;
// 4 bits 27-30
94
bool
istype
;
// 1 bit 31
95
};
83
struct
hpsPairTrig
{
…
};
96
97
std::vector<hpsPairTrig>
pairtrigs
;
98
99
struct
hpsCalibTrig
{
100
unsigned
int
T
;
// 10 bits 0-9 Time in 4ns units from the beginning of the readout window.
101
unsigned
int
reserved
;
// 9 bits 10-18
102
bool
cosmicTrig
;
// 1 bit 19
103
bool
LEDTrig
;
// 1 bit 20
104
bool
hodoTrig
;
// 1 bit 21
105
bool
pulserTrig
;
// 1 bit 22
106
unsigned
int
subtype
;
// 4 bits 23-26
107
unsigned
int
type
;
// 4 bits 27-30
108
bool
istype
;
// 1 bit 31
109
};
99
struct
hpsCalibTrig
{
…
};
110
111
std::vector<hpsCalibTrig>
calibtrigs
;
112
113
struct
hpsClusterMult
{
114
unsigned
int
T
;
// 10 bits 0-9 Time in 4ns units from the beginning of the readout window.
115
unsigned
int
multtop
;
// 4 bits 10-13
116
unsigned
int
multbot
;
// 4 bits 14-17
117
unsigned
int
multtot
;
// 4 bits 18-21
118
bool
bitinst
;
// 1 bit 22
119
unsigned
int
subtype
;
// 4 bits 23-26
120
unsigned
int
type
;
// 4 bits 27-30
121
bool
istype
;
// 1 bit 31
122
};
113
struct
hpsClusterMult
{
…
};
123
124
std::vector<hpsClusterMult>
clustermult
;
// Cluster multiplicity.
125
126
struct
hpsFEETrig
{
127
unsigned
int
T
;
// 10 bits 0-9 Time in 4ns units from the beginning of the readout window.
128
unsigned
int
region
;
// 7 bits 10-16
129
unsigned
int
reserved
;
// 6 bits 17-22
130
unsigned
int
subtype
;
// 4 bits 23-26
131
unsigned
int
type
;
// 4 bits 27-30
132
bool
istype
;
// 1 bit 31
133
};
126
struct
hpsFEETrig
{
…
};
134
135
std::vector<hpsFEETrig>
feetrigger
;
// Cluster multiplicity.
136
137
public
:
138
VTPData
();
139
~VTPData
();
140
141
void
print
();
142
143
void
Clear
(){
144
TObject::Clear();
145
clusters
.clear();
146
singletrigs
.clear();
147
pairtrigs
.clear();
148
calibtrigs
.clear();
149
clustermult
.clear();
150
feetrigger
.clear();
151
};
143
void
Clear
() {
…
}
152
153
ClassDef
(
VTPData
, 1);
154
155
};
19
class
VTPData
:
public
TObject {
…
};
156
157
#endif
// __VTP_DATA_H__
VTPData
Definition
VTPData.h:19
VTPData::~VTPData
~VTPData()
Definition
VTPData.cxx:19
VTPData::calibtrigs
std::vector< hpsCalibTrig > calibtrigs
Definition
VTPData.h:111
VTPData::clusters
std::vector< hpsCluster > clusters
Definition
VTPData.h:61
VTPData::pairtrigs
std::vector< hpsPairTrig > pairtrigs
Definition
VTPData.h:97
VTPData::VTPData
VTPData()
VTPData::print
void print()
Definition
VTPData.cxx:23
VTPData::feetrigger
std::vector< hpsFEETrig > feetrigger
Definition
VTPData.h:135
VTPData::trigTime
unsigned long trigTime
Definition
VTPData.h:47
VTPData::clustermult
std::vector< hpsClusterMult > clustermult
Definition
VTPData.h:124
VTPData::Clear
void Clear()
Definition
VTPData.h:143
VTPData::blockTail
bTail blockTail
Definition
VTPData.h:38
VTPData::eventHeader
eHeader eventHeader
Definition
VTPData.h:45
VTPData::blockHeader
bHeader blockHeader
Definition
VTPData.h:30
VTPData::ClassDef
ClassDef(VTPData, 1)
VTPData::singletrigs
std::vector< hpsSingleTrig > singletrigs
Definition
VTPData.h:81
VTPData::bHeader
Definition
VTPData.h:22
VTPData::bHeader::slotid
unsigned int slotid
Definition
VTPData.h:26
VTPData::bHeader::type
unsigned int type
Definition
VTPData.h:27
VTPData::bHeader::blocklevel
unsigned int blocklevel
Definition
VTPData.h:23
VTPData::bHeader::nothing
unsigned int nothing
Definition
VTPData.h:25
VTPData::bHeader::blocknum
unsigned int blocknum
Definition
VTPData.h:24
VTPData::bHeader::istype
bool istype
Definition
VTPData.h:28
VTPData::bTail
Definition
VTPData.h:32
VTPData::bTail::nwords
unsigned int nwords
Definition
VTPData.h:33
VTPData::bTail::slotid
unsigned int slotid
Definition
VTPData.h:34
VTPData::bTail::type
unsigned int type
Definition
VTPData.h:35
VTPData::bTail::istype
bool istype
Definition
VTPData.h:36
VTPData::eHeader
Definition
VTPData.h:40
VTPData::eHeader::eventnum
unsigned int eventnum
Definition
VTPData.h:41
VTPData::eHeader::type
unsigned int type
Definition
VTPData.h:42
VTPData::eHeader::istype
bool istype
Definition
VTPData.h:43
VTPData::hpsCalibTrig
Definition
VTPData.h:99
VTPData::hpsCalibTrig::reserved
unsigned int reserved
Definition
VTPData.h:101
VTPData::hpsCalibTrig::type
unsigned int type
Definition
VTPData.h:107
VTPData::hpsCalibTrig::cosmicTrig
bool cosmicTrig
Definition
VTPData.h:102
VTPData::hpsCalibTrig::hodoTrig
bool hodoTrig
Definition
VTPData.h:104
VTPData::hpsCalibTrig::T
unsigned int T
Definition
VTPData.h:100
VTPData::hpsCalibTrig::subtype
unsigned int subtype
Definition
VTPData.h:106
VTPData::hpsCalibTrig::LEDTrig
bool LEDTrig
Definition
VTPData.h:103
VTPData::hpsCalibTrig::pulserTrig
bool pulserTrig
Definition
VTPData.h:105
VTPData::hpsCalibTrig::istype
bool istype
Definition
VTPData.h:108
VTPData::hpsClusterMult
Definition
VTPData.h:113
VTPData::hpsClusterMult::multtot
unsigned int multtot
Definition
VTPData.h:117
VTPData::hpsClusterMult::multtop
unsigned int multtop
Definition
VTPData.h:115
VTPData::hpsClusterMult::bitinst
bool bitinst
Definition
VTPData.h:118
VTPData::hpsClusterMult::type
unsigned int type
Definition
VTPData.h:120
VTPData::hpsClusterMult::multbot
unsigned int multbot
Definition
VTPData.h:116
VTPData::hpsClusterMult::T
unsigned int T
Definition
VTPData.h:114
VTPData::hpsClusterMult::subtype
unsigned int subtype
Definition
VTPData.h:119
VTPData::hpsClusterMult::istype
bool istype
Definition
VTPData.h:121
VTPData::hpsCluster
Definition
VTPData.h:49
VTPData::hpsCluster::type
unsigned int type
Definition
VTPData.h:54
VTPData::hpsCluster::X
int X
Definition
VTPData.h:50
VTPData::hpsCluster::Y
int Y
Definition
VTPData.h:51
VTPData::hpsCluster::T
unsigned int T
Definition
VTPData.h:56
VTPData::hpsCluster::E
unsigned int E
Definition
VTPData.h:52
VTPData::hpsCluster::nothing
unsigned int nothing
Definition
VTPData.h:58
VTPData::hpsCluster::subtype
unsigned int subtype
Definition
VTPData.h:53
VTPData::hpsCluster::N
unsigned int N
Definition
VTPData.h:57
VTPData::hpsCluster::istype
bool istype
Definition
VTPData.h:55
VTPData::hpsFEETrig
Definition
VTPData.h:126
VTPData::hpsFEETrig::reserved
unsigned int reserved
Definition
VTPData.h:129
VTPData::hpsFEETrig::type
unsigned int type
Definition
VTPData.h:131
VTPData::hpsFEETrig::region
unsigned int region
Definition
VTPData.h:128
VTPData::hpsFEETrig::T
unsigned int T
Definition
VTPData.h:127
VTPData::hpsFEETrig::subtype
unsigned int subtype
Definition
VTPData.h:130
VTPData::hpsFEETrig::istype
bool istype
Definition
VTPData.h:132
VTPData::hpsPairTrig
Definition
VTPData.h:83
VTPData::hpsPairTrig::coplane
bool coplane
Definition
VTPData.h:88
VTPData::hpsPairTrig::type
unsigned int type
Definition
VTPData.h:93
VTPData::hpsPairTrig::eslope
bool eslope
Definition
VTPData.h:87
VTPData::hpsPairTrig::topnbot
bool topnbot
Definition
VTPData.h:90
VTPData::hpsPairTrig::T
unsigned int T
Definition
VTPData.h:84
VTPData::hpsPairTrig::inst
unsigned int inst
Definition
VTPData.h:91
VTPData::hpsPairTrig::clusesum
bool clusesum
Definition
VTPData.h:85
VTPData::hpsPairTrig::subtype
unsigned int subtype
Definition
VTPData.h:92
VTPData::hpsPairTrig::clusedif
bool clusedif
Definition
VTPData.h:86
VTPData::hpsPairTrig::dummy
unsigned int dummy
Definition
VTPData.h:89
VTPData::hpsPairTrig::istype
bool istype
Definition
VTPData.h:94
VTPData::hpsSingleTrig
Definition
VTPData.h:63
VTPData::hpsSingleTrig::hodogeo
bool hodogeo
Definition
VTPData.h:72
VTPData::hpsSingleTrig::hodoecal
bool hodoecal
Definition
VTPData.h:73
VTPData::hpsSingleTrig::hodo1c
bool hodo1c
Definition
VTPData.h:70
VTPData::hpsSingleTrig::xmin
bool xmin
Definition
VTPData.h:68
VTPData::hpsSingleTrig::emin
bool emin
Definition
VTPData.h:65
VTPData::hpsSingleTrig::type
unsigned int type
Definition
VTPData.h:77
VTPData::hpsSingleTrig::hodo2c
bool hodo2c
Definition
VTPData.h:71
VTPData::hpsSingleTrig::topnbot
bool topnbot
Definition
VTPData.h:74
VTPData::hpsSingleTrig::emax
bool emax
Definition
VTPData.h:66
VTPData::hpsSingleTrig::T
unsigned int T
Definition
VTPData.h:64
VTPData::hpsSingleTrig::inst
unsigned int inst
Definition
VTPData.h:75
VTPData::hpsSingleTrig::nmin
bool nmin
Definition
VTPData.h:67
VTPData::hpsSingleTrig::subtype
unsigned int subtype
Definition
VTPData.h:76
VTPData::hpsSingleTrig::pose
bool pose
Definition
VTPData.h:69
VTPData::hpsSingleTrig::istype
bool istype
Definition
VTPData.h:78
Generated by
1.9.8