VMC Examples Version 6.8
Loading...
Searching...
No Matches
VMC::Gflash::Hit Class Reference

The calorimeter hit. More...

#include <Hit.h>

Inheritance diagram for VMC::Gflash::Hit:

Public Member Functions

 Hit ()
virtual ~Hit ()
virtual void Print (Option_t *option="") const
void Reset ()
void SetEdep (Double_t de)
void SetPos (TVector3 xyz)
void SetCrystalNum (Int_t num)
Double_t GetEdep () const
Int_t GetCrystalNum () const
TVector3 GetPos () const

Private Attributes

Double_t fEdep
 Energy deposit in the absorber.
TVector3 fPos
 Cell position.
Int_t fCrystalNumber
 Crystal number.

Detailed Description

The calorimeter hit.

Geant4 gflash example adapted to Virtual Monte Carlo.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 36 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit()

VMC::Gflash::Hit::Hit ( )

Default constructor

Definition at line 34 of file Hit.cxx.

34 : TObject(), fEdep(0), fPos(), fCrystalNumber(0)
35{
36 /// Default constructor
37}
TVector3 fPos
Cell position.
Definition Hit.h:58
Int_t fCrystalNumber
Crystal number.
Definition Hit.h:59
Double_t fEdep
Energy deposit in the absorber.
Definition Hit.h:57

◆ ~Hit()

VMC::Gflash::Hit::~Hit ( )
virtual

Destructor

Definition at line 40 of file Hit.cxx.

41{
42 /// Destructor
43}

Member Function Documentation

◆ Print()

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

Print hit info

Definition at line 46 of file Hit.cxx.

47{
48 /// Print hit info
49
50 cout << "In crystal: " << fCrystalNumber << ":" << endl
51 << " energy deposit (keV): " << fEdep * 1.0e06 << endl;
52}

◆ Reset()

void VMC::Gflash::Hit::Reset ( )

Reset accounted values.

Definition at line 55 of file Hit.cxx.

56{
57 /// Reset accounted values.
58
59 fEdep = 0.;
60 fPos = TVector3();
62}

◆ SetEdep()

void VMC::Gflash::Hit::SetEdep ( Double_t de)
inline

Definition at line 47 of file Hit.h.

47{ fEdep = de; };

◆ SetPos()

void VMC::Gflash::Hit::SetPos ( TVector3 xyz)
inline

Definition at line 48 of file Hit.h.

48{ fPos = xyz; };

◆ SetCrystalNum()

void VMC::Gflash::Hit::SetCrystalNum ( Int_t num)
inline

Definition at line 49 of file Hit.h.

49{ fCrystalNumber = num; };

◆ GetEdep()

Double_t VMC::Gflash::Hit::GetEdep ( ) const
inline

Definition at line 52 of file Hit.h.

52{ return fEdep; };

◆ GetCrystalNum()

Int_t VMC::Gflash::Hit::GetCrystalNum ( ) const
inline

Definition at line 53 of file Hit.h.

53{ return fCrystalNumber; };

◆ GetPos()

TVector3 VMC::Gflash::Hit::GetPos ( ) const
inline

Definition at line 54 of file Hit.h.

54{ return fPos; };

Member Data Documentation

◆ fEdep

Double_t VMC::Gflash::Hit::fEdep
private

Energy deposit in the absorber.

Definition at line 57 of file Hit.h.

◆ fPos

TVector3 VMC::Gflash::Hit::fPos
private

Cell position.

Definition at line 58 of file Hit.h.

◆ fCrystalNumber

Int_t VMC::Gflash::Hit::fCrystalNumber
private

Crystal number.

Definition at line 59 of file Hit.h.


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