VMC Examples
Version 6.7
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
1
2
3
6
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
~
Functions
1
2
3
6
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
~
Variables
c
f
n
Enumerations
Enumerator
Files
File List
File Members
All
3
b
c
e
f
g
h
i
l
m
n
o
r
s
t
u
v
Functions
b
c
g
h
i
l
m
n
o
r
s
t
u
v
Variables
Typedefs
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
examples
Gflash
src
Hit.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2015 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 Gflash/src/Hit.cxx
11
/// \brief Implementation of the Gflash::Hit class
12
///
13
/// Geant4 gflash example adapted to Virtual Monte Carlo.
14
///
15
/// \date 28/10/2015
16
/// \author I. Hrivnacova; IPN, Orsay
17
18
#include <Riostream.h>
19
20
#include "Hit.h"
21
22
/// \cond CLASSIMP
23
ClassImp(
VMC::Gflash::Hit
)
24
/// \endcond
25
26
using namespace
std;
27
28
namespace
VMC
29
{
30
namespace
Gflash
31
{
32
33
//_____________________________________________________________________________
34
Hit::Hit
() :
TObject
(),
fEdep
(0),
fPos
(),
fCrystalNumber
(0)
35
{
36
/// Default constructor
37
}
34
Hit::Hit
() :
TObject
(),
fEdep
(0),
fPos
(),
fCrystalNumber
(0) {
…
}
38
39
//_____________________________________________________________________________
40
Hit::~Hit
()
41
{
42
/// Destructor
43
}
40
Hit::~Hit
() {
…
}
44
45
//_____________________________________________________________________________
46
void
Hit::Print
(Option_t*
/*option*/
)
const
47
{
48
/// Print hit info
49
50
cout <<
"In crystal: "
<<
fCrystalNumber
<<
":"
<< endl
51
<<
" energy deposit (keV): "
<<
fEdep
* 1.0e06 << endl;
52
}
46
void
Hit::Print
(Option_t*
/*option*/
)
const
{
…
}
53
54
//_____________________________________________________________________________
55
void
Hit::Reset
()
56
{
57
/// Reset accounted values.
58
59
fEdep
= 0.;
60
fPos
= TVector3();
61
fCrystalNumber
= 0;
62
}
55
void
Hit::Reset
() {
…
}
63
64
}
// namespace Gflash
65
}
// namespace VMC
TObject
VMC::Gflash::Hit
The calorimeter hit.
Definition
Hit.h:37
VMC::Gflash::Hit::Hit
Hit()
Definition
Hit.cxx:34
VMC::Gflash::Hit::Reset
void Reset()
Definition
Hit.cxx:55
VMC::Gflash::Hit::fPos
TVector3 fPos
Cell position.
Definition
Hit.h:58
VMC::Gflash::Hit::~Hit
virtual ~Hit()
Definition
Hit.cxx:40
VMC::Gflash::Hit::Print
virtual void Print(Option_t *option="") const
Definition
Hit.cxx:46
VMC::Gflash::Hit::fCrystalNumber
Int_t fCrystalNumber
Crystal number.
Definition
Hit.h:59
VMC::Gflash::Hit::fEdep
Double_t fEdep
Energy deposit in the absorber.
Definition
Hit.h:57
VMC::Gflash
Definition
DetectorConstruction.h:30
VMC
Definition
FastSimulation.h:26
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2