ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CMFlashClusterv1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CMFlashClusterv1.h
1
7
#ifndef TRACKBASE_CMFLASHCLUSTERV1_H
8
#define TRACKBASE_CMFLASHCLUSTERV1_H
9
10
#include "
CMFlashCluster.h
"
11
12
#include <iostream>
13
14
class
PHObject
;
15
24
class
CMFlashClusterv1
:
public
CMFlashCluster
25
{
26
public
:
28
CMFlashClusterv1
();
29
31
~CMFlashClusterv1
()
override
{}
32
// PHObject virtual overloads
33
void
identify
(std::ostream& os = std::cout)
const override
;
34
void
Reset
()
override
{}
35
int
isValid
()
const override
;
36
PHObject
*
CloneMe
()
const override
{
return
new
CMFlashClusterv1
(*
this
); }
37
39
void
CopyFrom
(
const
CMFlashCluster
& )
override
;
40
42
void
CopyFrom
(
CMFlashCluster
* source )
override
43
{
CopyFrom
( *source ); }
44
45
void
setClusKey
(
unsigned
int
id
)
override
{
m_cluskey
= id; }
46
unsigned
int
getClusKey
()
const override
{
return
m_cluskey
; }
47
//
48
// cluster position
49
//
50
float
getX
()
const override
{
return
m_pos
[0]; }
51
void
setX
(
float
x
)
override
{
m_pos
[0] =
x
; }
52
float
getY
()
const override
{
return
m_pos
[1]; }
53
void
setY
(
float
y
)
override
{
m_pos
[1] =
y
; }
54
float
getZ
()
const override
{
return
m_pos
[2]; }
55
void
setZ
(
float
z
)
override
{
m_pos
[2] =
z
; }
56
57
//
58
// cluster info
59
//
60
unsigned
int
getAdc
()
const override
{
return
m_adc
; }
61
void
setAdc
(
unsigned
int
adc)
override
{
m_adc
= adc; }
62
63
protected
:
64
65
unsigned
int
m_cluskey
;
//< unique identifier within container
66
float
m_pos
[3];
//< mean position x,y,z
67
unsigned
int
m_adc
;
//< cluster sum adc (D. McGlinchey - Do we need this?)
68
69
ClassDefOverride(
CMFlashClusterv1
, 1)
70
};
71
72
#endif //TRACKBASE_CMFLASHCLUSTERV1_H
coresoftware
blob
master
offline
packages
trackbase
CMFlashClusterv1.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration