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
PHG4TpcDigitizer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TpcDigitizer.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4TPC_PHG4TPCDIGITIZER_H
4
#define G4TPC_PHG4TPCDIGITIZER_H
5
6
#include <
fun4all/SubsysReco.h
>
7
8
#include <
trackbase/TrkrDefs.h
>
9
#include <
trackbase/TrkrHitSet.h
>
10
11
#include <map>
12
#include <string>
// for string
13
#include <utility>
// for pair, make_pair
14
#include <vector>
15
16
#include <gsl/gsl_rng.h>
17
18
class
PHCompositeNode
;
19
20
class
PHG4TpcDigitizer
:
public
SubsysReco
21
{
22
public
:
23
PHG4TpcDigitizer
(
const
std::string &
name
=
"PHG4TpcDigitizer"
);
24
~PHG4TpcDigitizer
()
override
;
25
27
int
Init
(
PHCompositeNode
*
/*topNode*/
)
override
{
return
0; }
28
30
int
InitRun
(
PHCompositeNode
*topNode)
override
;
31
33
int
process_event
(
PHCompositeNode
*topNode)
override
;
34
36
int
End
(
PHCompositeNode
*
/*topNode*/
)
override
{
return
0; };
37
38
void
set_adc_scale
(
const
int
layer
,
const
unsigned
int
max_adc,
const
float
energy_per_adc)
39
{
40
_max_adc
.insert(std::make_pair(layer, max_adc));
41
_energy_scale
.insert(std::make_pair(layer, energy_per_adc));
42
}
43
44
void
SetTpcMinLayer
(
const
int
minlayer) {
TpcMinLayer
= minlayer; };
45
void
SetADCThreshold
(
const
float
thresh) {
ADCThreshold
= thresh; };
46
void
SetENC
(
const
float
enc) {
TpcEnc
= enc; };
47
48
private
:
49
void
CalculateCylinderCellADCScale
(
PHCompositeNode
*topNode);
50
void
DigitizeCylinderCells
(
PHCompositeNode
*topNode);
51
float
added_noise
();
52
53
unsigned
int
TpcMinLayer
;
54
float
ADCThreshold
;
55
float
TpcEnc
;
56
float
Pedestal
;
57
float
ChargeToPeakVolts
;
58
59
float
ADCSignalConversionGain
;
60
float
ADCNoiseConversionGain
;
61
62
std::vector<std::vector<TrkrHitSet::ConstIterator> >
phi_sorted_hits
;
63
std::vector<std::vector<TrkrHitSet::ConstIterator> >
z_sorted_hits
;
64
65
std::vector<float>
adc_input
;
66
std::vector<TrkrDefs::hitkey>
adc_hitid
;
67
std::vector<int>
is_populated
;
68
69
// settings
70
std::map<int, unsigned int>
_max_adc
;
71
std::map<int, float>
_energy_scale
;
72
74
gsl_rng *
RandomGenerator
;
75
};
76
77
#endif
coresoftware
blob
master
simulation
g4simulation
g4tpc
PHG4TpcDigitizer.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:45
using
1.8.2 with
ECCE GitHub integration