VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
A01
src
A01HadCalorHit.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 A01HadCalorHit.cxx
11
/// \brief Implementation of the A01HadCalorHit 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 "
A01HadCalorHit.h
"
21
22
using namespace
std;
23
24
/// \cond CLASSIMP
25
ClassImp(
A01HadCalorHit
)
26
/// \endcond
27
28
//_____________________________________________________________________________
29
A01HadCalorHit
::
A01HadCalorHit
(Int_t icol, Int_t irow)
30
:
TObject
(), fColumnID(icol), fRowID(irow), fEdep(0.), fTransformation()
31
{
32
/// Standard constructor
33
/// \param icol Volume cell column number
34
/// \param irow Volume cell row number
35
}
36
37
//_____________________________________________________________________________
38
A01HadCalorHit::A01HadCalorHit
()
39
:
TObject
(), fColumnID(-1), fRowID(-1), fEdep(0.), fTransformation()
40
{
41
/// Default constructor
42
}
43
44
//_____________________________________________________________________________
45
A01HadCalorHit::~A01HadCalorHit
()
46
{
47
/// Destructor
48
}
49
50
//_____________________________________________________________________________
51
void
A01HadCalorHit::Print
(Option_t*
/*option*/
)
const
52
{
53
/// Print hit info
54
55
cout <<
" Cell["
<<
fRowID
<<
", "
<<
fColumnID
<<
"] "
<<
fEdep
* 1.0e03
56
<<
" (MeV) "
<< endl;
57
}
58
59
//_____________________________________________________________________________
60
void
A01HadCalorHit::Reset
()
61
{
62
/// Reset all accounted values.
63
64
fColumnID
= -1;
65
fRowID
= -1;
66
fEdep
= 0.;
67
fTransformation
= TGeoHMatrix();
68
}
A01HadCalorHit.h
Definition of the A01HadCalorHit class.
A01HadCalorHit
The hadron calorimeter hit.
Definition
A01HadCalorHit.h:31
A01HadCalorHit::fTransformation
TGeoHMatrix fTransformation
The transformation of the hit volume.
Definition
A01HadCalorHit.h:61
A01HadCalorHit::~A01HadCalorHit
virtual ~A01HadCalorHit()
Definition
A01HadCalorHit.cxx:45
A01HadCalorHit::A01HadCalorHit
A01HadCalorHit()
Definition
A01HadCalorHit.cxx:38
A01HadCalorHit::fRowID
Int_t fRowID
The row ID.
Definition
A01HadCalorHit.h:59
A01HadCalorHit::Print
virtual void Print(Option_t *option="") const
Definition
A01HadCalorHit.cxx:51
A01HadCalorHit::fColumnID
Int_t fColumnID
The column ID.
Definition
A01HadCalorHit.h:58
A01HadCalorHit::fEdep
Double_t fEdep
The energy deposit.
Definition
A01HadCalorHit.h:60
A01HadCalorHit::Reset
void Reset()
Definition
A01HadCalorHit.cxx:60
TObject
Generated on Thu Nov 28 2024 11:31:17 for VMC Examples by
1.12.0