VMC Examples Version 6.6
Loading...
Searching...
No Matches
VMC::ExGarfield::Hit Class Reference

The calorimeter hit. More...

#include <Hit.h>

Inheritance diagram for VMC::ExGarfield::Hit:

Public Member Functions

 Hit ()
 
virtual ~Hit ()
 
virtual void Print (Option_t *option="") const
 
void Reset ()
 
void AddEdepAbs (Double_t de)
 
void AddEdepGas (Double_t de)
 
void AddTrackLengthAbs (Double_t dl)
 
void AddAvalancheSize (Double_t das)
 
void AddGain (Double_t dg)
 
Double_t GetEdepAbs () const
 
Double_t GetTrackLengthAbs () const
 
Double_t GetEdepGas () const
 
Double_t GetAvalancheSize () const
 
Double_t GetGain () const
 

Private Attributes

Double_t fEdepAbs
 Energy deposit in the absorber.
 
Double_t fEdepGas
 Energy deposit in the gas.
 
Double_t fTrackLengthAbs
 Track length in the absorber.
 
Double_t fAvalancheSize
 Avalanche size in the gas.
 
Double_t fGain
 Gain.
 

Detailed Description

The calorimeter hit.

Garfield garfieldpp example adapted to Virtual Monte Carlo.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 36 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit()

VMC::ExGarfield::Hit::Hit ( )

Default constructor

Definition at line 34 of file Hit.cxx.

35 : TObject(),
36 fEdepAbs(0),
37 fEdepGas(0),
40 fGain(0)
41 {
42 /// Default constructor
43 }
Double_t fGain
Gain.
Definition Hit.h:83
Double_t fTrackLengthAbs
Track length in the absorber.
Definition Hit.h:81
Double_t fEdepAbs
Energy deposit in the absorber.
Definition Hit.h:79
Double_t fEdepGas
Energy deposit in the gas.
Definition Hit.h:80
Double_t fAvalancheSize
Avalanche size in the gas.
Definition Hit.h:82

◆ ~Hit()

VMC::ExGarfield::Hit::~Hit ( )
virtual

Destructor

Definition at line 46 of file Hit.cxx.

47 {
48 /// Destructor
49 }

Member Function Documentation

◆ Print()

void VMC::ExGarfield::Hit::Print ( Option_t * option = "") const
virtual

Print hit info

Definition at line 52 of file Hit.cxx.

53 {
54 /// Print hit info
55
56 cout << " Absorber: total energy: " << std::setw(7) << fEdepAbs * 1.0e03
57 << " MeV"
58 << " total track length: " << std::setw(7) << fTrackLengthAbs
59 << " cm" << endl
60 << " Gas: total energy: " << std::setw(7) << fEdepGas * 1.0e06
61 << " keV"
62 << " avalanche size: " << std::setw(7) << fAvalancheSize
63 << " gain: " << std::setw(7) << fGain << endl;
64 }

◆ Reset()

void VMC::ExGarfield::Hit::Reset ( )

Reset accounted values.

Definition at line 67 of file Hit.cxx.

68 {
69 /// Reset accounted values.
70
71 fEdepAbs = 0.;
72 fEdepGas = 0.;
73 fTrackLengthAbs = 0.;
74 fAvalancheSize = 0.;
75 fGain = 0.;
76 }

◆ AddEdepAbs()

void VMC::ExGarfield::Hit::AddEdepAbs ( Double_t de)
inline

Add energy deposit in the absorber

Parameters
deEnery deposit

Definition at line 48 of file Hit.h.

48{ fEdepAbs += de; }

◆ AddEdepGas()

void VMC::ExGarfield::Hit::AddEdepGas ( Double_t de)
inline

Add energy deposit in the gas

Parameters
deEnery deposit

Definition at line 52 of file Hit.h.

52{ fEdepGas += de; }

◆ AddTrackLengthAbs()

void VMC::ExGarfield::Hit::AddTrackLengthAbs ( Double_t dl)
inline

Add track length in the absorber

Parameters
dlTrack length

Definition at line 56 of file Hit.h.

56{ fTrackLengthAbs += dl; }

◆ AddAvalancheSize()

void VMC::ExGarfield::Hit::AddAvalancheSize ( Double_t das)
inline

Add avalanche size in the gas

Parameters
dasAvalanche size

Definition at line 60 of file Hit.h.

60{ fAvalancheSize += das; }

◆ AddGain()

void VMC::ExGarfield::Hit::AddGain ( Double_t dg)
inline

Add gain in the gas

Parameters
dgGain

Definition at line 64 of file Hit.h.

64{ fGain += dg; }

◆ GetEdepAbs()

Double_t VMC::ExGarfield::Hit::GetEdepAbs ( ) const
inline
Returns
The energy deposit in the absorber

Definition at line 68 of file Hit.h.

68{ return fEdepAbs; };

◆ GetTrackLengthAbs()

Double_t VMC::ExGarfield::Hit::GetTrackLengthAbs ( ) const
inline
Returns
The track length in the absorber

Definition at line 70 of file Hit.h.

70{ return fTrackLengthAbs; };

◆ GetEdepGas()

Double_t VMC::ExGarfield::Hit::GetEdepGas ( ) const
inline
Returns
The energy deposit in the gas

Definition at line 72 of file Hit.h.

72{ return fEdepGas; };

◆ GetAvalancheSize()

Double_t VMC::ExGarfield::Hit::GetAvalancheSize ( ) const
inline
Returns
The avalanche size in the gas

Definition at line 74 of file Hit.h.

74{ return fAvalancheSize; };

◆ GetGain()

Double_t VMC::ExGarfield::Hit::GetGain ( ) const
inline
Returns
The gain in the gas

Definition at line 76 of file Hit.h.

76{ return fGain; };

Member Data Documentation

◆ fEdepAbs

Double_t VMC::ExGarfield::Hit::fEdepAbs
private

Energy deposit in the absorber.

Definition at line 79 of file Hit.h.

◆ fEdepGas

Double_t VMC::ExGarfield::Hit::fEdepGas
private

Energy deposit in the gas.

Definition at line 80 of file Hit.h.

◆ fTrackLengthAbs

Double_t VMC::ExGarfield::Hit::fTrackLengthAbs
private

Track length in the absorber.

Definition at line 81 of file Hit.h.

◆ fAvalancheSize

Double_t VMC::ExGarfield::Hit::fAvalancheSize
private

Avalanche size in the gas.

Definition at line 82 of file Hit.h.

◆ fGain

Double_t VMC::ExGarfield::Hit::fGain
private

Gain.

Definition at line 83 of file Hit.h.


The documentation for this class was generated from the following files: