Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CMFlashClusterv3.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CMFlashClusterv3.h
1
7
#ifndef TRACKBASE_CMFLASHCLUSTERV3_H
8
#define TRACKBASE_CMFLASHCLUSTERV3_H
9
10
#include "
CMFlashCluster.h
"
11
12
#include <iostream>
13
14
class
PHObject
;
15
23
class
CMFlashClusterv3
:
public
CMFlashCluster
24
{
25
public
:
27
CMFlashClusterv3
() =
default
;
28
29
// PHObject virtual overloads
30
void
identify
(std::ostream&
os
= std::cout)
const override
;
31
void
Reset
()
override
{}
32
int
isValid
()
const override
;
33
PHObject
*
CloneMe
()
const override
{
return
new
CMFlashClusterv3
(*
this
); }
34
36
void
CopyFrom
(
const
CMFlashCluster
& )
override
;
37
39
void
CopyFrom
(
CMFlashCluster
*
source
)
override
40
{
CopyFrom
( *source ); }
41
42
//
43
// cluster position
44
//
45
float
getX
()
const override
{
return
m_pos
[0]; }
46
void
setX
(
float
x
)
override
{
m_pos
[0] =
x
; }
47
float
getY
()
const override
{
return
m_pos
[1]; }
48
void
setY
(
float
y
)
override
{
m_pos
[1] =
y
; }
49
float
getZ
()
const override
{
return
m_pos
[2]; }
50
void
setZ
(
float
z
)
override
{
m_pos
[2] =
z
; }
51
52
53
float
getX1
()
const override
{
return
m_pos1
[0]; }
54
void
setX1
(
float
x
)
override
{
m_pos1
[0] =
x
; }
55
float
getY1
()
const override
{
return
m_pos1
[1]; }
56
void
setY1
(
float
y
)
override
{
m_pos1
[1] =
y
; }
57
float
getZ1
()
const override
{
return
m_pos1
[2]; }
58
void
setZ1
(
float
z
)
override
{
m_pos1
[2] =
z
; }
59
60
float
getX2
()
const override
{
return
m_pos2
[0]; }
61
void
setX2
(
float
x
)
override
{
m_pos2
[0] =
x
; }
62
float
getY2
()
const override
{
return
m_pos2
[1]; }
63
void
setY2
(
float
y
)
override
{
m_pos2
[1] =
y
; }
64
float
getZ2
()
const override
{
return
m_pos2
[2]; }
65
void
setZ2
(
float
z
)
override
{
m_pos2
[2] =
z
; }
66
67
unsigned
int
getLayer1
()
const override
{
return
m_layer1
;}
68
void
setLayer1
(
unsigned
int
layer
)
override
{
m_layer1
=
layer
;}
69
unsigned
int
getLayer2
()
const override
{
return
m_layer2
;}
70
void
setLayer2
(
unsigned
int
layer
)
override
{
m_layer2
=
layer
;}
71
72
unsigned
int
getNclusters
()
const override
{
return
m_nclusters
;}
73
void
setNclusters
(
unsigned
int
n
)
override
{
m_nclusters
=
n
;}
74
bool
getIsRGap
()
const override
{
return
m_isRGap
; }
75
void
setIsRGap
(
bool
isRGap)
override
{
m_isRGap
= isRGap;}
76
bool
getIsPhiGap
()
const override
{
return
m_isPhiGap
; }
77
void
setIsPhiGap
(
bool
isPhiGap)
override
{
m_isPhiGap
= isPhiGap;}
78
79
//
80
// cluster info
81
//
82
unsigned
int
getAdc
()
const override
{
return
m_adc
; }
83
void
setAdc
(
unsigned
int
adc)
override
{
m_adc
= adc; }
84
85
unsigned
int
getAdc1
()
const override
{
return
m_adc1
; }
86
void
setAdc1
(
unsigned
int
adc)
override
{
m_adc1
= adc; }
87
88
unsigned
int
getAdc2
()
const override
{
return
m_adc2
; }
89
void
setAdc2
(
unsigned
int
adc)
override
{
m_adc2
= adc; }
90
91
protected
:
92
94
float
m_pos
[3] = {NAN, NAN, NAN};
95
96
float
m_pos1
[3] = {NAN, NAN, NAN};
97
float
m_pos2
[3] = {NAN, NAN, NAN};
98
100
unsigned
int
m_adc
= 0xFFFFFFFF;
101
unsigned
int
m_adc1
= 0xFFFFFFFF;
102
unsigned
int
m_adc2
= 0xFFFFFFFF;
103
104
unsigned
int
m_layer1
= UINT_MAX;
105
unsigned
int
m_layer2
= UINT_MAX;
106
108
unsigned
int
m_nclusters
= UINT_MAX;
109
111
bool
m_isRGap
=
false
;
112
bool
m_isPhiGap
=
false
;
113
114
ClassDefOverride(
CMFlashClusterv3
, 1)
115
};
116
117
#endif //TRACKBASE_CMFLASHCLUSTERV3_H
coresoftware
blob
master
offline
packages
trackbase
CMFlashClusterv3.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration