#include <AuxDetReadout.h>
|
| AuxDetReadout (std::string const &name, unsigned int adNum, unsigned int svNum) |
|
virtual | ~AuxDetReadout () |
|
virtual void | Initialize (G4HCofThisEvent *) |
|
virtual void | EndOfEvent (G4HCofThisEvent *) |
|
virtual void | clear () |
|
virtual G4bool | ProcessHits (G4Step *, G4TouchableHistory *) |
|
virtual void | AddParticleStep (int inputTrackID, float inputEnergyDeposited, float inputEntryX, float inputEntryY, float inputEntryZ, float inputEntryT, float inputExitX, float inputExitY, float inputExitZ, float inputExitT, float inputExitMomentumX, float inputExitMomentumY, float inputExitMomentumZ) |
|
virtual void | DrawAll () |
|
virtual void | PrintAll () |
|
sim::AuxDetSimChannel const | GetAuxDetSimChannel () const |
|
Definition at line 27 of file AuxDetReadout.h.
larg4::AuxDetReadout::AuxDetReadout |
( |
std::string const & |
name, |
|
|
unsigned int |
adNum, |
|
|
unsigned int |
svNum |
|
) |
| |
Definition at line 19 of file AuxDetReadout.cxx.
22 : G4VSensitiveDetector(
name)
uint32_t fAuxDet
which AuxDet this AuxDetReadout corresponds to
uint32_t fAuxDetSensitive
which sensitive volume of the AuxDet this AuxDetReadout corresponds to
larg4::AuxDetReadout::~AuxDetReadout |
( |
| ) |
|
|
virtual |
void larg4::AuxDetReadout::AddParticleStep |
( |
int |
inputTrackID, |
|
|
float |
inputEnergyDeposited, |
|
|
float |
inputEntryX, |
|
|
float |
inputEntryY, |
|
|
float |
inputEntryZ, |
|
|
float |
inputEntryT, |
|
|
float |
inputExitX, |
|
|
float |
inputExitY, |
|
|
float |
inputExitZ, |
|
|
float |
inputExitT, |
|
|
float |
inputExitMomentumX, |
|
|
float |
inputExitMomentumY, |
|
|
float |
inputExitMomentumZ |
|
) |
| |
|
virtual |
Definition at line 96 of file AuxDetReadout.cxx.
112 auxDetIDE.
trackID = inputTrackID;
114 auxDetIDE.
entryX = inputEntryX;
115 auxDetIDE.
entryY = inputEntryY;
116 auxDetIDE.
entryZ = inputEntryZ;
117 auxDetIDE.
entryT = inputEntryT;
118 auxDetIDE.
exitX = inputExitX;
119 auxDetIDE.
exitY = inputExitY;
120 auxDetIDE.
exitZ = inputExitZ;
121 auxDetIDE.
exitT = inputExitT;
131 IDEitr->energyDeposited += inputEnergyDeposited;
132 IDEitr->exitX = inputExitX;
133 IDEitr->exitY = inputExitY;
134 IDEitr->exitZ = inputExitZ;
135 IDEitr->exitT = inputExitT;
136 IDEitr->exitMomentumX = inputExitMomentumX;
137 IDEitr->exitMomentumY = inputExitMomentumY;
138 IDEitr->exitMomentumZ = inputExitMomentumZ;
int trackID
Geant4 supplied track ID.
float exitMomentumZ
Exit Z-Momentum of particle.
float exitY
Exit position Y of particle.
float entryT
Entry time of particle.
float exitMomentumX
Exit X-Momentum of particle.
float exitT
Exit time of particle.
float exitZ
Exit position Z of particle.
float entryZ
Entry position Z of particle.
float exitX
Exit position X of particle.
float energyDeposited
total energy deposited for this track ID and time
float entryX
Entry position X of particle.
float entryY
Entry position Y of particle.
MC truth information to make RawDigits and do back tracking.
std::vector< sim::AuxDetIDE > fAuxDetIDEs
list of IDEs in one channel
float exitMomentumY
Exit Y-Momentum of particle.
void larg4::AuxDetReadout::clear |
( |
| ) |
|
|
virtual |
Definition at line 42 of file AuxDetReadout.cxx.
std::vector< sim::AuxDetIDE > fAuxDetIDEs
list of IDEs in one channel
void larg4::AuxDetReadout::DrawAll |
( |
| ) |
|
|
virtual |
void larg4::AuxDetReadout::EndOfEvent |
( |
G4HCofThisEvent * |
| ) |
|
|
virtual |
Definition at line 37 of file AuxDetReadout.cxx.
Collection of particles crossing one auxiliary detector cell.
uint32_t fAuxDet
which AuxDet this AuxDetReadout corresponds to
sim::AuxDetSimChannel fAuxDetSimChannel
Contains the sim::AuxDetSimChannel for this AuxDet.
std::vector< sim::AuxDetIDE > fAuxDetIDEs
list of IDEs in one channel
uint32_t fAuxDetSensitive
which sensitive volume of the AuxDet this AuxDetReadout corresponds to
Definition at line 73 of file AuxDetReadout.h.
sim::AuxDetSimChannel fAuxDetSimChannel
Contains the sim::AuxDetSimChannel for this AuxDet.
void larg4::AuxDetReadout::Initialize |
( |
G4HCofThisEvent * |
| ) |
|
|
virtual |
void larg4::AuxDetReadout::PrintAll |
( |
| ) |
|
|
virtual |
G4bool larg4::AuxDetReadout::ProcessHits |
( |
G4Step * |
step, |
|
|
G4TouchableHistory * |
|
|
) |
| |
|
virtual |
Definition at line 50 of file AuxDetReadout.cxx.
56 G4double energyDeposited =
step->GetTotalEnergyDeposit()/
CLHEP::GeV;
58 G4ThreeVector startG4(
step->GetPreStepPoint()->GetPosition() );
59 double startWorld[3] = {startG4.getX()/
CLHEP::cm,
63 double startTime =
step->GetPreStepPoint()->GetGlobalTime()/
CLHEP::ns;
65 G4ThreeVector stopG4(
step->GetPostStepPoint()->GetPosition());
66 double stopWorld[3] = {stopG4.getX()/
CLHEP::cm,
70 G4ThreeVector stopG4Momentum(
step->GetPostStepPoint()->GetMomentum());
71 double stopWorldMomVector[3] = {stopG4Momentum.getX()/
CLHEP::GeV,
75 double stopTime =
step->GetPostStepPoint()->GetGlobalTime()/
CLHEP::ns;
87 stopWorldMomVector[0],
88 stopWorldMomVector[1],
static constexpr double cm
static constexpr double GeV
virtual void AddParticleStep(int inputTrackID, float inputEnergyDeposited, float inputEntryX, float inputEntryY, float inputEntryZ, float inputEntryT, float inputExitX, float inputExitY, float inputExitZ, float inputExitT, float inputExitMomentumX, float inputExitMomentumY, float inputExitMomentumZ)
static int GetCurrentTrackID()
uint32_t larg4::AuxDetReadout::fAuxDet |
|
private |
uint32_t larg4::AuxDetReadout::fAuxDetSensitive |
|
private |
The documentation for this class was generated from the following files: