VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex03CalorHit Class Reference

The calorimeter hit. More...

#include <Ex03CalorHit.h>

Inheritance diagram for Ex03CalorHit:

Public Member Functions

 Ex03CalorHit ()
 
virtual ~Ex03CalorHit ()
 
virtual void Print (Option_t *option="") const
 
void AddAbs (Double_t de, Double_t dl)
 
void AddGap (Double_t de, Double_t dl)
 
void Reset ()
 
Double_t GetEdepAbs ()
 
Double_t GetTrakAbs ()
 
Double_t GetEdepGap ()
 
Double_t GetTrakGap ()
 
 Ex03CalorHit ()
 
virtual ~Ex03CalorHit ()
 
virtual void Print (Option_t *option="") const
 
void AddAbs (Double_t de, Double_t dl)
 
void AddGap (Double_t de, Double_t dl)
 
void Reset ()
 
Double_t GetEdepAbs ()
 
Double_t GetTrakAbs ()
 
Double_t GetEdepGap ()
 
Double_t GetTrakGap ()
 
 Ex03CalorHit ()
 
virtual ~Ex03CalorHit ()
 
virtual void Print (Option_t *option="") const
 
void AddAbs (Double_t de, Double_t dl)
 
void AddGap (Double_t de, Double_t dl)
 
void Reset ()
 
Double_t GetEdepAbs ()
 
Double_t GetTrakAbs ()
 
Double_t GetEdepGap ()
 
Double_t GetTrakGap ()
 

Private Attributes

Double_t fEdepAbs
 Energy deposit in the absorber.
 
Double_t fTrackLengthAbs
 Track length in the absorber.
 
Double_t fEdepGap
 Energy deposit in the gap.
 
Double_t fTrackLengthGap
 Track length in the gap.
 

Detailed Description

The calorimeter hit.

Date
06/03/2003
Author
I. Hrivnacova; IPN, Orsay

Definition at line 31 of file Ex03CalorHit.h.

Constructor & Destructor Documentation

◆ Ex03CalorHit() [1/3]

Ex03CalorHit::Ex03CalorHit ( )

Default constructor

Definition at line 31 of file Ex03CalorHit.cxx.

32 : TObject(),
33 fEdepAbs(0.),
35 fEdepGap(0.),
37{
38 /// Default constructor
39}
Double_t fEdepGap
Energy deposit in the gap.
Double_t fTrackLengthAbs
Track length in the absorber.
Double_t fTrackLengthGap
Track length in the gap.
Double_t fEdepAbs
Energy deposit in the absorber.

◆ ~Ex03CalorHit() [1/3]

Ex03CalorHit::~Ex03CalorHit ( )
virtual

Destructor

Definition at line 42 of file Ex03CalorHit.cxx.

43{
44 /// Destructor
45}

◆ Ex03CalorHit() [2/3]

Ex03CalorHit::Ex03CalorHit ( )

◆ ~Ex03CalorHit() [2/3]

virtual Ex03CalorHit::~Ex03CalorHit ( )
virtual

◆ Ex03CalorHit() [3/3]

Ex03CalorHit::Ex03CalorHit ( )

◆ ~Ex03CalorHit() [3/3]

virtual Ex03CalorHit::~Ex03CalorHit ( )
virtual

Member Function Documentation

◆ Print() [1/3]

void Ex03CalorHit::Print ( Option_t * option = "") const
virtual

Print hit info

Definition at line 48 of file Ex03CalorHit.cxx.

49{
50 /// Print hit info
51
52 cout << "In absorber: " << endl
53 << " energy deposit (keV): " << fEdepAbs * 1.0e06 << endl
54 << " track length (cm): " << fTrackLengthAbs << endl
55 << "In gap: " << endl
56 << " energy deposit (keV): " << fEdepGap * 1.0e06 << endl
57 << " track length (cm): " << fTrackLengthGap << endl;
58}

◆ AddAbs() [1/3]

void Ex03CalorHit::AddAbs ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the absorber

Parameters
deEnery deposit
dlTrack length

Definition at line 43 of file Ex03CalorHit.h.

44 {
45 fEdepAbs += de;
46 fTrackLengthAbs += dl;
47 }

◆ AddGap() [1/3]

void Ex03CalorHit::AddGap ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the gap

Parameters
deEnery deposit
dlTrack length

Definition at line 52 of file Ex03CalorHit.h.

53 {
54 fEdepGap += de;
55 fTrackLengthGap += dl;
56 }

◆ Reset() [1/3]

void Ex03CalorHit::Reset ( )

Reset all accounted values.

Definition at line 61 of file Ex03CalorHit.cxx.

62{
63 /// Reset all accounted values.
64
65 fEdepAbs = 0.;
66 fTrackLengthAbs = 0.;
67 fEdepGap = 0.;
68 fTrackLengthGap = 0.;
69}

◆ GetEdepAbs() [1/3]

Double_t Ex03CalorHit::GetEdepAbs ( )
inline
Returns
The energy deposit in the absorber

Definition at line 62 of file Ex03CalorHit.h.

62{ return fEdepAbs; };

◆ GetTrakAbs() [1/3]

Double_t Ex03CalorHit::GetTrakAbs ( )
inline
Returns
The track length in the absorber

Definition at line 64 of file Ex03CalorHit.h.

64{ return fTrackLengthAbs; };

◆ GetEdepGap() [1/3]

Double_t Ex03CalorHit::GetEdepGap ( )
inline
Returns
The energy deposit in the gap

Definition at line 66 of file Ex03CalorHit.h.

66{ return fEdepGap; };

◆ GetTrakGap() [1/3]

Double_t Ex03CalorHit::GetTrakGap ( )
inline
Returns
The track length in the gap

Definition at line 68 of file Ex03CalorHit.h.

68{ return fTrackLengthGap; };

◆ Print() [2/3]

virtual void Ex03CalorHit::Print ( Option_t * option = "") const
virtual

◆ AddAbs() [2/3]

void Ex03CalorHit::AddAbs ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the absorber

Parameters
deEnery deposit
dlTrack length

Definition at line 43 of file Ex03CalorHit.h.

44 {
45 fEdepAbs += de;
46 fTrackLengthAbs += dl;
47 }

◆ AddGap() [2/3]

void Ex03CalorHit::AddGap ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the gap

Parameters
deEnery deposit
dlTrack length

Definition at line 52 of file Ex03CalorHit.h.

53 {
54 fEdepGap += de;
55 fTrackLengthGap += dl;
56 }

◆ Reset() [2/3]

void Ex03CalorHit::Reset ( )

◆ GetEdepAbs() [2/3]

Double_t Ex03CalorHit::GetEdepAbs ( )
inline
Returns
The energy deposit in the absorber

Definition at line 62 of file Ex03CalorHit.h.

62{ return fEdepAbs; };

◆ GetTrakAbs() [2/3]

Double_t Ex03CalorHit::GetTrakAbs ( )
inline
Returns
The track length in the absorber

Definition at line 64 of file Ex03CalorHit.h.

64{ return fTrackLengthAbs; };

◆ GetEdepGap() [2/3]

Double_t Ex03CalorHit::GetEdepGap ( )
inline
Returns
The energy deposit in the gap

Definition at line 66 of file Ex03CalorHit.h.

66{ return fEdepGap; };

◆ GetTrakGap() [2/3]

Double_t Ex03CalorHit::GetTrakGap ( )
inline
Returns
The track length in the gap

Definition at line 68 of file Ex03CalorHit.h.

68{ return fTrackLengthGap; };

◆ Print() [3/3]

virtual void Ex03CalorHit::Print ( Option_t * option = "") const
virtual

◆ AddAbs() [3/3]

void Ex03CalorHit::AddAbs ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the absorber

Parameters
deEnery deposit
dlTrack length

Definition at line 43 of file Ex03CalorHit.h.

44 {
45 fEdepAbs += de;
46 fTrackLengthAbs += dl;
47 }

◆ AddGap() [3/3]

void Ex03CalorHit::AddGap ( Double_t de,
Double_t dl )
inline

Add energy deposit and track length in the gap

Parameters
deEnery deposit
dlTrack length

Definition at line 52 of file Ex03CalorHit.h.

53 {
54 fEdepGap += de;
55 fTrackLengthGap += dl;
56 }

◆ Reset() [3/3]

void Ex03CalorHit::Reset ( )

◆ GetEdepAbs() [3/3]

Double_t Ex03CalorHit::GetEdepAbs ( )
inline
Returns
The energy deposit in the absorber

Definition at line 62 of file Ex03CalorHit.h.

62{ return fEdepAbs; };

◆ GetTrakAbs() [3/3]

Double_t Ex03CalorHit::GetTrakAbs ( )
inline
Returns
The track length in the absorber

Definition at line 64 of file Ex03CalorHit.h.

64{ return fTrackLengthAbs; };

◆ GetEdepGap() [3/3]

Double_t Ex03CalorHit::GetEdepGap ( )
inline
Returns
The energy deposit in the gap

Definition at line 66 of file Ex03CalorHit.h.

66{ return fEdepGap; };

◆ GetTrakGap() [3/3]

Double_t Ex03CalorHit::GetTrakGap ( )
inline
Returns
The track length in the gap

Definition at line 68 of file Ex03CalorHit.h.

68{ return fTrackLengthGap; };

Member Data Documentation

◆ fEdepAbs

Double_t Ex03CalorHit::fEdepAbs
private

Energy deposit in the absorber.

Definition at line 71 of file Ex03CalorHit.h.

◆ fTrackLengthAbs

Double_t Ex03CalorHit::fTrackLengthAbs
private

Track length in the absorber.

Definition at line 72 of file Ex03CalorHit.h.

◆ fEdepGap

Double_t Ex03CalorHit::fEdepGap
private

Energy deposit in the gap.

Definition at line 73 of file Ex03CalorHit.h.

◆ fTrackLengthGap

Double_t Ex03CalorHit::fTrackLengthGap
private

Track length in the gap.

Definition at line 74 of file Ex03CalorHit.h.


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