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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
EICPhysicsList
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4intt
g4jets
g4main
g4micromegas
g4mvtx
g4tpc
PHG4TpcCentralMembrane.cc
PHG4TpcCentralMembrane.h
PHG4TpcDefs.h
PHG4TpcDetector.cc
PHG4TpcDetector.h
PHG4TpcDigitizer.cc
PHG4TpcDigitizer.h
PHG4TpcDirectLaser.cc
PHG4TpcDirectLaser.h
PHG4TpcDisplayAction.cc
PHG4TpcDisplayAction.h
PHG4TpcDistortion.cc
PHG4TpcDistortion.h
PHG4TpcElectronDrift.cc
PHG4TpcElectronDrift.h
PHG4TpcEndCapDetector.cc
PHG4TpcEndCapDetector.h
PHG4TpcEndCapDisplayAction.cc
PHG4TpcEndCapDisplayAction.h
PHG4TpcEndCapSteppingAction.cc
PHG4TpcEndCapSteppingAction.h
PHG4TpcEndCapSubsystem.cc
PHG4TpcEndCapSubsystem.h
PHG4TpcPadBaselineShift.cc
PHG4TpcPadBaselineShift.h
PHG4TpcPadPlane.cc
PHG4TpcPadPlane.h
PHG4TpcPadPlaneReadout.cc
PHG4TpcPadPlaneReadout.h
PHG4TpcSteppingAction.cc
PHG4TpcSteppingAction.h
PHG4TpcSubsystem.cc
PHG4TpcSubsystem.h
g4trackfastsim
g4vertex
tpcresponse
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4TpcDistortion.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TpcDistortion.h
1
// $Id: $
2
11
#ifndef G4TPC_PHG4TPCDISTORTION_H
12
#define G4TPC_PHG4TPCDISTORTION_H
13
14
#include <memory>
15
#include <string>
16
17
class
TFile;
18
class
TH3;
19
class
TTree;
20
22
class
PHG4TpcDistortion
23
{
24
public
:
26
explicit
PHG4TpcDistortion
() =
default
;
27
29
30
32
double
get_x_distortion_cartesian
(
double
x
,
double
y
,
double
z
)
const
;
33
35
double
get_y_distortion_cartesian
(
double
x,
double
y,
double
z)
const
;
36
38
double
get_z_distortion_cartesian
(
double
x,
double
y,
double
z)
const
;
39
41
double
get_r_distortion
(
double
r
,
double
phi
,
double
z)
const
;
42
44
double
get_rphi_distortion
(
double
r,
double
phi,
double
z)
const
;
45
47
double
get_z_distortion
(
double
r,
double
phi,
double
z)
const
;
48
49
50
51
52
54
int
Verbosity
()
const
55
{
56
return
verbosity
;
57
}
58
60
62
63
65
void
set_do_static_distortions
(
bool
value
)
66
{
67
m_do_static_distortions
=
value
;
68
}
69
71
void
set_static_distortion_filename
(
const
std::string &
value
)
72
{
73
m_static_distortion_filename
=
value
;
74
}
75
77
void
set_do_time_ordered_distortions
(
bool
value
)
78
{
79
m_do_time_ordered_distortions
=
value
;
80
}
81
83
void
set_time_ordered_distortion_filename
(
const
std::string &
value
)
84
{
85
m_time_ordered_distortion_filename
=
value
;
86
}
87
89
void
Init
();
90
92
void
load_event
(
int
event_num);
93
95
void
Verbosity
(
const
int
ival)
96
{
97
verbosity
= ival;
98
}
99
101
102
private
:
104
double
get_distortion
(
char
axis,
double
r,
double
phi,
double
z)
const
;
105
107
int
verbosity
= 0;
108
110
111
bool
m_do_static_distortions
=
false
;
112
std::string
m_static_distortion_filename
;
113
std::unique_ptr<TFile>
m_static_tfile
;
114
TH3 *
hDRint
[2]={
nullptr
,
nullptr
};
115
TH3 *
hDPint
[2]={
nullptr
,
nullptr
};
116
TH3 *
hDZint
[2]={
nullptr
,
nullptr
};
118
120
121
bool
m_do_time_ordered_distortions
=
false
;
122
std::string
m_time_ordered_distortion_filename
;
123
std::unique_ptr<TFile>
m_time_ordered_tfile
;
124
TTree *
TimeTree
=
nullptr
;
125
TH3 *
TimehDR
[2]={
nullptr
,
nullptr
};
126
TH3 *
TimehDP
[2]={
nullptr
,
nullptr
};
127
TH3 *
TimehDZ
[2]={
nullptr
,
nullptr
};
129
};
130
131
#endif
/* G4TPC_PHG4TPCDISTORTION_H */
coresoftware
blob
master
simulation
g4simulation
g4tpc
PHG4TpcDistortion.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:45
using
1.8.2 with
ECCE GitHub integration