VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E03
E03c
src
Ex03CalorHit.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2014 - 2018 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
10
/// \file Ex03CalorHit.cxx
11
/// \brief Implementation of the Ex03CalorHit class
12
///
13
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo \n
14
/// Id: ExN03CalorHit.cc,v 1.5 2002/01/09 17:24:12 ranjard Exp \n
15
/// GEANT4 tag Name: geant4-05-00
16
///
17
/// \date 06/03/2002
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include <Riostream.h>
21
22
#include "Ex03CalorHit.h"
23
24
using namespace
std;
25
26
/// \cond CLASSIMP
27
ClassImp(
Ex03CalorHit
)
28
/// \endcond
29
30
//_____________________________________________________________________________
31
Ex03CalorHit::Ex03CalorHit
()
32
:
TObject
(),
33
fEdepAbs(0.),
34
fTrackLengthAbs(0.),
35
fEdepGap(0.),
36
fTrackLengthGap(0.)
37
{
38
/// Default constructor
39
}
40
41
//_____________________________________________________________________________
42
Ex03CalorHit::~Ex03CalorHit
()
43
{
44
/// Destructor
45
}
46
47
//_____________________________________________________________________________
48
void
Ex03CalorHit::Print
(Option_t*
/*option*/
)
const
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
}
59
60
//_____________________________________________________________________________
61
void
Ex03CalorHit::Reset
()
62
{
63
/// Reset all accounted values.
64
65
fEdepAbs
= 0.;
66
fTrackLengthAbs
= 0.;
67
fEdepGap
= 0.;
68
fTrackLengthGap
= 0.;
69
}
Ex03CalorHit
The calorimeter hit.
Definition
Ex03CalorHit.h:32
Ex03CalorHit::Reset
void Reset()
Definition
Ex03CalorHit.cxx:61
Ex03CalorHit::fEdepGap
Double_t fEdepGap
Energy deposit in the gap.
Definition
Ex03CalorHit.h:73
Ex03CalorHit::Print
virtual void Print(Option_t *option="") const
Definition
Ex03CalorHit.cxx:48
Ex03CalorHit::Ex03CalorHit
Ex03CalorHit()
Definition
Ex03CalorHit.cxx:31
Ex03CalorHit::fTrackLengthAbs
Double_t fTrackLengthAbs
Track length in the absorber.
Definition
Ex03CalorHit.h:72
Ex03CalorHit::~Ex03CalorHit
virtual ~Ex03CalorHit()
Definition
Ex03CalorHit.cxx:42
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