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
TPC_RawHit.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TPC_RawHit.h
1
#ifndef TPC_RAWHIT_H
2
#define TPC_RAWHIT_H
3
4
#include <
trackbase/RawHit.h
>
5
6
#include <
trackbase/TrkrDefs.h
>
7
8
#include <
phool/PHObject.h
>
9
10
#include <climits>
11
#include <cmath>
12
#include <iomanip>
13
#include <iostream>
14
20
class
TPC_RawHit
:
public
RawHit
21
{
22
public
:
23
TPC_RawHit
(
const
unsigned
int
phi
,
const
unsigned
int
samplenr,
const
unsigned
int
adc)
24
{
25
m_phi
=
phi
;
26
m_samplenr
= samplenr;
27
m_adc
= adc;
28
}
29
30
~TPC_RawHit
()
override
{}
31
// PHObject virtual overloads
32
void
identify
(std::ostream&
os
= std::cout)
const override
33
{
34
os
<<
"phi: "
<< std::setw(4) <<
m_phi
35
<<
" sample: "
<< std::setw(5) <<
m_samplenr
36
<<
" ADC: "
<< std::setw(5) <<
m_adc
37
<< std::endl;
38
}
39
void
Reset
()
override
{
m_adc
=
m_phi
=
m_samplenr
= 0; }
40
int
isValid
()
const override
{
return
1; }
41
42
// after digitization, these are the adc values
43
virtual
void
setAdc
(
const
unsigned
int
v
)
override
{
m_adc
=
v
; }
44
virtual
unsigned
int
getAdc
()
override
{
return
m_adc
; }
45
46
virtual
void
setPhiBin
(
const
unsigned
int
v
)
override
{
m_phi
=
v
; }
47
virtual
unsigned
int
getPhiBin
()
override
{
return
m_phi
; }
48
49
virtual
void
setTBin
(
const
unsigned
int
bv)
override
{
m_samplenr
= bv; }
50
virtual
unsigned
int
getTBin
()
override
{
return
m_samplenr
; }
51
52
protected
:
53
unsigned
int
m_adc
;
54
unsigned
int
m_phi
;
55
unsigned
int
m_samplenr
;
56
57
ClassDefOverride
(
TPC_RawHit
, 1);
58
};
59
60
#endif // TRACKBASE_RAWHIT_H
coresoftware
blob
master
offline
packages
rawtodst
TPC_RawHit.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration