VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
A01
include
A01EmCalorHit.h
Go to the documentation of this file.
1
#ifndef A01_EM_CALOR_HIT_H
2
#define A01_EM_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 A01EmCalorHit.h
14
/// \brief Definition of the A01EmCalorHit 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 EM calorimeter hit
26
///
27
/// \date 12/05/2012
28
/// \author I. Hrivnacova; IPN, Orsay
29
30
class
A01EmCalorHit
:
public
TObject
31
{
32
public
:
33
A01EmCalorHit
(Int_t z);
34
A01EmCalorHit
();
35
virtual
~A01EmCalorHit
();
36
37
// methods
38
virtual
void
Print
(Option_t* option =
""
)
const
;
39
void
Reset
();
40
41
// set methods
42
void
SetCellID
(Int_t z) {
fCellID
= z; }
43
void
SetVolId
(Int_t volId) {
fVolID
= 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
GetCellID
()
const
{
return
fCellID
; }
53
Int_t
GetVolId
()
const
{
return
fVolID
; }
54
Double_t
GetEdep
()
const
{
return
fEdep
; }
55
const
TGeoHMatrix&
GetTransformation
()
const
{
return
fTransformation
; }
56
57
private
:
58
Int_t
GetCellID
(Int_t column, Int_t row)
const
;
59
60
Int_t
fCellID
;
///< The cell ID
61
Int_t
fVolID
;
///< The volume ID
62
Double_t
fEdep
;
///< The energy deposit
63
TGeoHMatrix
fTransformation
;
///< The transformation of the hit volume
64
65
ClassDef(
A01EmCalorHit
, 1)
// A01EmCalorHit
66
};
67
68
#endif
// A01_EM_CALOR_HIT_H
A01EmCalorHit::fVolID
Int_t fVolID
The volume ID.
Definition
A01EmCalorHit.h:61
A01EmCalorHit::AddEdep
void AddEdep(Double_t de)
Definition
A01EmCalorHit.h:45
A01EmCalorHit::SetTransformation
void SetTransformation(const TGeoHMatrix &transformation)
Definition
A01EmCalorHit.h:46
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::GetTransformation
const TGeoHMatrix & GetTransformation() const
Definition
A01EmCalorHit.h:55
A01EmCalorHit::GetEdep
Double_t GetEdep() const
Definition
A01EmCalorHit.h:54
A01EmCalorHit::GetCellID
Int_t GetCellID(Int_t column, Int_t row) const
A01EmCalorHit::GetCellID
Int_t GetCellID() const
Definition
A01EmCalorHit.h:52
A01EmCalorHit::Print
virtual void Print(Option_t *option="") const
Definition
A01EmCalorHit.cxx:50
A01EmCalorHit::SetCellID
void SetCellID(Int_t z)
Definition
A01EmCalorHit.h:42
A01EmCalorHit::SetEdep
void SetEdep(Double_t de)
Definition
A01EmCalorHit.h:44
A01EmCalorHit::fTransformation
TGeoHMatrix fTransformation
The transformation of the hit volume.
Definition
A01EmCalorHit.h:63
A01EmCalorHit::A01EmCalorHit
A01EmCalorHit(Int_t z)
Definition
A01EmCalorHit.cxx:29
A01EmCalorHit::GetVolId
Int_t GetVolId() const
Definition
A01EmCalorHit.h:53
A01EmCalorHit::SetVolId
void SetVolId(Int_t volId)
Definition
A01EmCalorHit.h:43
TObject
Generated on
for VMC Examples by
1.17.0