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
TpcRawWriter.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TpcRawWriter.h
1
#ifndef TPC_TPCRAWWRITER_H
2
#define TPC_TPCRAWWRITER_H
3
4
#include <
fun4all/SubsysReco.h
>
5
#include <
trackbase/TrkrCluster.h
>
6
#include <
trackbase/ActsSurfaceMaps.h
>
7
#include <
trackbase/ActsGeometry.h
>
8
9
#include <map>
10
#include <vector>
11
#include <string>
12
13
class
PHCompositeNode
;
14
class
TrkrHitSet
;
15
class
TrkrHitSetContainer
;
16
class
RawHitSetContainerv1
;
17
class
TrkrClusterContainer
;
18
class
TrkrClusterHitAssoc
;
19
class
PHG4CylinderCellGeom
;
20
class
PHG4TpcCylinderGeomContainer
;
21
22
//typedef std::pair<int, int> iphiz;
23
//typedef std::pair<double, iphiz> ihit;
24
typedef
std::pair<unsigned short, unsigned short>
iphiz
;
25
typedef
std::pair<unsigned short, iphiz>
ihit
;
26
27
class
TpcRawWriter
:
public
SubsysReco
28
{
29
public
:
30
TpcRawWriter
(
const
std::string
&
name
=
"TpcRawWriter"
);
31
~TpcRawWriter
()
override
=
default
;
32
33
int
InitRun
(
PHCompositeNode
*topNode)
override
;
34
int
process_event
(
PHCompositeNode
*topNode)
override
;
35
int
End
(
PHCompositeNode
*topNode)
override
;
36
37
void
set_sector_fiducial_cut
(
const
double
cut){
SectorFiducialCut
= cut; }
38
void
set_do_hit_association
(
bool
do_assoc){
do_hit_assoc
= do_assoc;}
39
void
set_do_wedge_emulation
(
bool
do_wedge){
do_wedge_emulation
= do_wedge;}
40
void
set_do_sequential
(
bool
do_seq){
do_sequential
= do_seq;}
41
void
set_max_cluster_half_size_phi
(
unsigned
short
size
) {
MaxClusterHalfSizePhi
=
size
;}
42
void
set_max_cluster_half_size_z
(
unsigned
short
size
) {
MaxClusterHalfSizeZ
=
size
;}
43
void
set_drift_velocity_scale
(
double
value
) {
m_drift_velocity_scale
=
value
; }
44
45
private
:
46
47
TrkrHitSetContainer
*
m_hits
=
nullptr
;
48
RawHitSetContainerv1
*
m_rawhits
=
nullptr
;
49
TrkrClusterContainer
*
m_clusterlist
=
nullptr
;
50
TrkrClusterHitAssoc
*
m_clusterhitassoc
=
nullptr
;
51
// ActsSurfaceMaps *m_surfMaps = nullptr;
52
ActsGeometry
*
m_tGeometry
=
nullptr
;
53
bool
do_hit_assoc
=
true
;
54
bool
do_wedge_emulation
=
true
;
55
bool
do_sequential
=
false
;
56
double
pedestal
= 74.4;
57
double
SectorFiducialCut
= 0.5;
58
unsigned
short
MaxClusterHalfSizePhi
= 3;
59
unsigned
short
MaxClusterHalfSizeZ
= 5;
60
62
63
double
m_drift_velocity_scale
= 1.0;
64
65
// TPC shaping offset correction parameters
66
// From Tony Frawley May 13, 2021
67
// double par0_neg = 0.0503;
68
// double par0_pos = -0.0503;
69
70
};
71
72
#endif
coresoftware
blob
master
offline
packages
tpc
TpcRawWriter.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration