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
A01
src
A01EmCalorHit.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2014 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 A01EmCalorHit.cxx
11
/// \brief Implementation of the A01EmCalorHit class
12
///
13
/// Geant4 example A01 adapted to Virtual Monte Carlo \n
14
///
15
/// \date 12/05/2012
16
/// \author I. Hrivnacova; IPN, Orsay
17
18
#include <Riostream.h>
19
20
#include "
A01EmCalorHit.h
"
21
22
using namespace
std;
23
24
/// \cond CLASSIMP
25
ClassImp(
A01EmCalorHit
)
26
/// \endcond
27
28
//_____________________________________________________________________________
29
A01EmCalorHit
::
A01EmCalorHit
(Int_t z)
30
:
TObject
(),
fCellID
(z),
fVolID
(-1),
fEdep
(0.),
fTransformation
()
31
{
32
/// Standard constructor
33
/// \param z The cell ID
34
}
29
A01EmCalorHit
::
A01EmCalorHit
(Int_t z) {
…
}
35
36
//_____________________________________________________________________________
37
A01EmCalorHit::A01EmCalorHit
()
38
:
TObject
(),
fCellID
(-1),
fVolID
(-1),
fEdep
(0.),
fTransformation
()
39
{
40
/// Default constructor
41
}
37
A01EmCalorHit::A01EmCalorHit
() {
…
}
42
43
//_____________________________________________________________________________
44
A01EmCalorHit::~A01EmCalorHit
()
45
{
46
/// Destructor
47
}
44
A01EmCalorHit::~A01EmCalorHit
() {
…
}
48
49
//_____________________________________________________________________________
50
void
A01EmCalorHit::Print
(Option_t*
/*option*/
)
const
51
{
52
/// Print hit info
53
54
cout <<
" Cell["
<<
fCellID
<<
"] "
<<
fEdep
* 1.0e03 <<
" (MeV)"
<< endl;
55
}
50
void
A01EmCalorHit::Print
(Option_t*
/*option*/
)
const
{
…
}
56
57
//_____________________________________________________________________________
58
void
A01EmCalorHit::Reset
()
59
{
60
/// Reset all accounted values.
61
62
fCellID
= -1;
63
fVolID
= -1;
64
fEdep
= 0.;
65
fTransformation
= TGeoHMatrix();
66
}
58
void
A01EmCalorHit::Reset
() {
…
}
A01EmCalorHit.h
Definition of the A01EmCalorHit class.
A01EmCalorHit
The EM calorimeter hit.
Definition
A01EmCalorHit.h:31
A01EmCalorHit::fVolID
Int_t fVolID
The volume ID.
Definition
A01EmCalorHit.h:61
A01EmCalorHit::fEdep
Double_t fEdep
The energy deposit.
Definition
A01EmCalorHit.h:62
A01EmCalorHit::A01EmCalorHit
A01EmCalorHit()
Definition
A01EmCalorHit.cxx:37
A01EmCalorHit::~A01EmCalorHit
virtual ~A01EmCalorHit()
Definition
A01EmCalorHit.cxx:44
A01EmCalorHit::Reset
void Reset()
Definition
A01EmCalorHit.cxx:58
A01EmCalorHit::fCellID
Int_t fCellID
The cell ID.
Definition
A01EmCalorHit.h:60
A01EmCalorHit::Print
virtual void Print(Option_t *option="") const
Definition
A01EmCalorHit.cxx:50
A01EmCalorHit::fTransformation
TGeoHMatrix fTransformation
The transformation of the hit volume.
Definition
A01EmCalorHit.h:63
A01EmCalorHit::A01EmCalorHit
A01EmCalorHit(Int_t z)
Definition
A01EmCalorHit.cxx:29
TObject
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2