VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
Gflash
include
Hit.h
Go to the documentation of this file.
1
#ifndef GFLASH_HIT_H
2
#define GFLASH_HIT_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2015 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 Gflash/include/Hit.h
14
/// \brief Definition of the Gflash::Hit class
15
///
16
/// Geant4 gflash example adapted to Virtual Monte Carlo.
17
///
18
/// \date 28/10/2015
19
/// \author I. Hrivnacova; IPN, Orsay
20
21
#include <TObject.h>
22
#include <TVector3.h>
23
24
namespace
VMC
25
{
26
namespace
Gflash
27
{
28
29
/// \ingroup Gflash
30
/// \brief The calorimeter hit
31
///
32
/// Geant4 gflash example adapted to Virtual Monte Carlo.
33
///
34
/// \author I. Hrivnacova; IPN, Orsay
35
36
class
Hit
:
public
TObject
37
{
38
public
:
39
Hit
();
40
virtual
~Hit
();
41
42
// methods
43
virtual
void
Print
(Option_t* option =
""
)
const
;
44
void
Reset
();
45
46
// set methods
47
void
SetEdep
(Double_t de) {
fEdep
= de; };
48
void
SetPos
(TVector3 xyz) {
fPos
= xyz; };
49
void
SetCrystalNum
(Int_t num) {
fCrystalNumber
= num; };
50
51
// get methods
52
Double_t
GetEdep
()
const
{
return
fEdep
; };
53
Int_t
GetCrystalNum
()
const
{
return
fCrystalNumber
; };
54
TVector3
GetPos
()
const
{
return
fPos
; };
55
56
private
:
57
Double_t
fEdep
;
///< Energy deposit in the absorber
58
TVector3
fPos
;
///< Cell position
59
Int_t
fCrystalNumber
;
///< Crystal number
60
61
ClassDef(
Hit
, 1)
// Hit
62
};
63
64
}
// namespace Gflash
65
}
// namespace VMC
66
67
#endif
// GFLASH_HIT_H
TObject
VMC::Gflash::Hit::GetEdep
Double_t GetEdep() const
Definition
Hit.h:52
VMC::Gflash::Hit::Hit
Hit()
Definition
Hit.cxx:34
VMC::Gflash::Hit::Reset
void Reset()
Definition
Hit.cxx:55
VMC::Gflash::Hit::SetPos
void SetPos(TVector3 xyz)
Definition
Hit.h:48
VMC::Gflash::Hit::GetCrystalNum
Int_t GetCrystalNum() const
Definition
Hit.h:53
VMC::Gflash::Hit::SetEdep
void SetEdep(Double_t de)
Definition
Hit.h:47
VMC::Gflash::Hit::fPos
TVector3 fPos
Cell position.
Definition
Hit.h:58
VMC::Gflash::Hit::~Hit
virtual ~Hit()
Definition
Hit.cxx:40
VMC::Gflash::Hit::SetCrystalNum
void SetCrystalNum(Int_t num)
Definition
Hit.h:49
VMC::Gflash::Hit::Print
virtual void Print(Option_t *option="") const
Definition
Hit.cxx:46
VMC::Gflash::Hit::GetPos
TVector3 GetPos() const
Definition
Hit.h:54
VMC::Gflash::Hit::fCrystalNumber
Int_t fCrystalNumber
Crystal number.
Definition
Hit.h:59
VMC::Gflash::Hit::fEdep
Double_t fEdep
Energy deposit in the absorber.
Definition
Hit.h:57
VMC::Gflash
Definition
DetectorConstruction.h:30
VMC
Definition
FastSimulation.h:26
Generated on
for VMC Examples by
1.17.0