VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
A01
include
A01HadCalorHit.h
Go to the documentation of this file.
1
#ifndef A01_HAD_CALOR_HIT_H
2
#define A01_HAD_CALOR_HIT_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file A01HadCalorHit.h
14
/// \brief Definition of the A01HadCalorHit class
15
///
16
/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17
///
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include <TGeoMatrix.h>
21
#include <TObject.h>
22
#include <TVector3.h>
23
24
/// \ingroup A01
25
/// \brief The hadron calorimeter hit
26
///
27
/// \date 12/05/2012
28
/// \author I. Hrivnacova; IPN, Orsay
29
30
class
A01HadCalorHit
:
public
TObject
31
{
32
public
:
33
A01HadCalorHit
(Int_t icol, Int_t irow);
34
A01HadCalorHit
();
35
virtual
~A01HadCalorHit
();
36
37
// methods
38
virtual
void
Print
(Option_t* option =
""
)
const
;
39
void
Reset
();
40
41
// set methods
42
void
SetColumnID
(Int_t z) {
fColumnID
= z; }
43
void
SetRowID
(Int_t volId) {
fRowID
= volId; }
44
void
SetEdep
(Double_t de) {
fEdep
= de; }
45
void
AddEdep
(Double_t de) {
fEdep
+= de; }
46
void
SetTransformation
(
const
TGeoHMatrix& transformation)
47
{
48
fTransformation
= transformation;
49
}
50
51
// get methods
52
Int_t
GetColumnID
()
const
{
return
fColumnID
; }
53
Int_t
GetRowID
()
const
{
return
fRowID
; }
54
Double_t
GetEdep
()
const
{
return
fEdep
; }
55
const
TGeoHMatrix&
GetTransformation
()
const
{
return
fTransformation
; }
56
57
private
:
58
Int_t
fColumnID
;
///< The column ID
59
Int_t
fRowID
;
///< The row ID
60
Double_t
fEdep
;
///< The energy deposit
61
TGeoHMatrix
fTransformation
;
///< The transformation of the hit volume
62
63
ClassDef(
A01HadCalorHit
, 1)
// A01HadCalorHit
64
};
65
66
#endif
// A01_HAD_CALOR_HIT_H
A01HadCalorHit::GetColumnID
Int_t GetColumnID() const
Definition
A01HadCalorHit.h:52
A01HadCalorHit::fTransformation
TGeoHMatrix fTransformation
The transformation of the hit volume.
Definition
A01HadCalorHit.h:61
A01HadCalorHit::GetEdep
Double_t GetEdep() const
Definition
A01HadCalorHit.h:54
A01HadCalorHit::SetRowID
void SetRowID(Int_t volId)
Definition
A01HadCalorHit.h:43
A01HadCalorHit::SetTransformation
void SetTransformation(const TGeoHMatrix &transformation)
Definition
A01HadCalorHit.h:46
A01HadCalorHit::SetColumnID
void SetColumnID(Int_t z)
Definition
A01HadCalorHit.h:42
A01HadCalorHit::SetEdep
void SetEdep(Double_t de)
Definition
A01HadCalorHit.h:44
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::A01HadCalorHit
A01HadCalorHit(Int_t icol, Int_t irow)
Definition
A01HadCalorHit.cxx:29
A01HadCalorHit::GetTransformation
const TGeoHMatrix & GetTransformation() const
Definition
A01HadCalorHit.h:55
A01HadCalorHit::AddEdep
void AddEdep(Double_t de)
Definition
A01HadCalorHit.h:45
A01HadCalorHit::GetRowID
Int_t GetRowID() const
Definition
A01HadCalorHit.h:53
A01HadCalorHit::fEdep
Double_t fEdep
The energy deposit.
Definition
A01HadCalorHit.h:60
A01HadCalorHit::Reset
void Reset()
Definition
A01HadCalorHit.cxx:60
TObject
Generated on
for VMC Examples by
1.17.0