VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E03
E03a
include
Ex03CalorHit.h
Go to the documentation of this file.
1
#ifndef EX03_CALOR_HIT_H
2
#define EX03_CALOR_HIT_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2014 - 2018 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file Ex03CalorHit.h
14
/// \brief Definition of the Ex03CalorHit class
15
///
16
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo: \n
17
/// Id: ExN03CalorHit.hh,v 1.5 2002/01/09 17:24:11 ranjard Exp \n
18
/// GEANT4 tag Name: geant4-05-00
19
///
20
/// \author I. Hrivnacova; IPN, Orsay
21
22
#include <TObject.h>
23
#include <TVector3.h>
24
25
/// \ingroup E03
26
/// \brief The calorimeter hit
27
///
28
/// \date 06/03/2003
29
/// \author I. Hrivnacova; IPN, Orsay
30
31
class
Ex03CalorHit
:
public
TObject
32
{
33
public
:
34
Ex03CalorHit
();
35
virtual
~Ex03CalorHit
();
36
37
// methods
38
virtual
void
Print
(Option_t* option =
""
)
const
;
39
40
/// Add energy deposit and track length in the absorber
41
/// \param de Enery deposit
42
/// \param dl Track length
43
void
AddAbs
(Double_t de, Double_t dl)
44
{
45
fEdepAbs
+= de;
46
fTrackLengthAbs
+= dl;
47
}
48
49
/// Add energy deposit and track length in the gap
50
/// \param de Enery deposit
51
/// \param dl Track length
52
void
AddGap
(Double_t de, Double_t dl)
53
{
54
fEdepGap
+= de;
55
fTrackLengthGap
+= dl;
56
}
57
58
void
Reset
();
59
60
// get methods
61
/// \return The energy deposit in the absorber
62
Double_t
GetEdepAbs
() {
return
fEdepAbs
; };
63
/// \return The track length in the absorber
64
Double_t
GetTrakAbs
() {
return
fTrackLengthAbs
; };
65
/// \return The energy deposit in the gap
66
Double_t
GetEdepGap
() {
return
fEdepGap
; };
67
/// \return The track length in the gap
68
Double_t
GetTrakGap
() {
return
fTrackLengthGap
; };
69
70
private
:
71
Double_t
fEdepAbs
;
///< Energy deposit in the absorber
72
Double_t
fTrackLengthAbs
;
///< Track length in the absorber
73
Double_t
fEdepGap
;
///< Energy deposit in the gap
74
Double_t
fTrackLengthGap
;
///< Track length in the gap
75
76
ClassDef(
Ex03CalorHit
, 1)
// Ex03CalorHit
77
};
78
79
#endif
// EX03_CALOR_HIT_H
Ex03CalorHit::Reset
void Reset()
Definition
Ex03CalorHit.cxx:61
Ex03CalorHit::fEdepGap
Double_t fEdepGap
Energy deposit in the gap.
Definition
Ex03CalorHit.h:73
Ex03CalorHit::GetEdepGap
Double_t GetEdepGap()
Definition
Ex03CalorHit.h:66
Ex03CalorHit::Print
virtual void Print(Option_t *option="") const
Definition
Ex03CalorHit.cxx:48
Ex03CalorHit::Ex03CalorHit
Ex03CalorHit()
Definition
Ex03CalorHit.cxx:31
Ex03CalorHit::GetTrakGap
Double_t GetTrakGap()
Definition
Ex03CalorHit.h:68
Ex03CalorHit::fTrackLengthAbs
Double_t fTrackLengthAbs
Track length in the absorber.
Definition
Ex03CalorHit.h:72
Ex03CalorHit::AddAbs
void AddAbs(Double_t de, Double_t dl)
Definition
Ex03CalorHit.h:43
Ex03CalorHit::~Ex03CalorHit
virtual ~Ex03CalorHit()
Definition
Ex03CalorHit.cxx:42
Ex03CalorHit::GetEdepAbs
Double_t GetEdepAbs()
Definition
Ex03CalorHit.h:62
Ex03CalorHit::GetTrakAbs
Double_t GetTrakAbs()
Definition
Ex03CalorHit.h:64
Ex03CalorHit::AddGap
void AddGap(Double_t de, Double_t dl)
Definition
Ex03CalorHit.h:52
Ex03CalorHit::fTrackLengthGap
Double_t fTrackLengthGap
Track length in the gap.
Definition
Ex03CalorHit.h:74
Ex03CalorHit::fEdepAbs
Double_t fEdepAbs
Energy deposit in the absorber.
Definition
Ex03CalorHit.h:71
TObject
Generated on
for VMC Examples by
1.17.0