VMC Examples
Version 6.6
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
}
35
36
//_____________________________________________________________________________
37
A01EmCalorHit::A01EmCalorHit
()
38
:
TObject
(), fCellID(-1), fVolID(-1), fEdep(0.), fTransformation()
39
{
40
/// Default constructor
41
}
42
43
//_____________________________________________________________________________
44
A01EmCalorHit::~A01EmCalorHit
()
45
{
46
/// Destructor
47
}
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
}
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
}
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
TObject
Generated on Thu Nov 28 2024 11:31:17 for VMC Examples by
1.12.0