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
TPCDataStreamEmulator.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TPCDataStreamEmulator.h
1
// $Id: $
2
11
#ifndef TPCDATASTREAMEMULATOR_H_
12
#define TPCDATASTREAMEMULATOR_H_
13
14
#include <
fun4all/SubsysReco.h
>
15
16
#include <vector>
17
18
class
PHCompositeNode
;
19
class
Fun4AllHistoManager
;
20
class
TH1;
21
class
TH2;
22
26
class
TPCDataStreamEmulator
:
public
SubsysReco
27
{
28
public
:
29
TPCDataStreamEmulator
(
30
unsigned
int
minLayer
,
31
unsigned
int
m_maxLayer
,
32
const
std::string
&outputfilenamebase =
"TPCDataStreamEmulator"
);
33
virtual
~TPCDataStreamEmulator
();
34
35
int
Init
(
PHCompositeNode
*topNode);
36
int
InitRun
(
PHCompositeNode
*topNode);
37
int
process_event
(
PHCompositeNode
*topNode);
38
int
End
(
PHCompositeNode
*topNode);
39
40
void
maxLayer
(
int
maxLayer
)
41
{
42
m_maxLayer =
maxLayer
;
43
}
44
45
void
minLayer
(
int
minLayer)
46
{
47
m_minLayer
=
minLayer
;
48
}
49
50
void
outputFileNameBase
(
const
std::string
&
outputFileNameBase
)
51
{
52
m_outputFileNameBase
=
outputFileNameBase
;
53
}
54
55
void
saveDataStreamFile
(
bool
saveDataStreamFile
)
56
{
57
m_saveDataStreamFile
=
saveDataStreamFile
;
58
}
59
60
private
:
61
#if !defined(__CINT__) || defined(__CLING__)
62
63
Fun4AllHistoManager
*
getHistoManager
();
64
int
writeWavelet
(
int
layer
,
int
side,
int
phibin,
int
hittime,
const
std::vector<unsigned int> &wavelet);
65
66
bool
m_saveDataStreamFile
;
67
68
std::string
m_outputFileNameBase
;
69
70
int
m_minLayer
;
71
int
m_maxLayer
;
72
73
int
m_evtCounter
;
74
75
double
m_vertexZAcceptanceCut
;
76
double
m_etaAcceptanceCut
;
77
78
// histograms
79
TH1 *
m_hDataSize
;
80
TH1 *
m_hWavelet
;
81
TH1 *
m_hNChEta
;
82
TH2 *
m_hLayerWaveletSize
;
83
TH2 *
m_hLayerHit
;
84
TH2 *
m_hLayerZBinHit
;
85
TH2 *
m_hLayerZBinADC
;
86
TH2 *
m_hLayerDataSize
;
87
TH2 *
m_hLayerSumHit
;
88
TH2 *
m_hLayerSumDataSize
;
89
90
#endif // #if !defined(__CINT__) || defined(__CLING__)
91
};
92
93
#endif
/* TPCDATASTREAMEMULATOR_H_ */
coresoftware
blob
master
offline
packages
tpcdaq
TPCDataStreamEmulator.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration