VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
24namespace VMC
25{
26namespace 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
36class 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
The calorimeter hit.
Definition Hit.h:37
Double_t GetEdep() const
Definition Hit.h:52
void Reset()
Definition Hit.cxx:55
void SetPos(TVector3 xyz)
Definition Hit.h:48
Int_t GetCrystalNum() const
Definition Hit.h:53
void SetEdep(Double_t de)
Definition Hit.h:47
TVector3 fPos
Cell position.
Definition Hit.h:58
virtual ~Hit()
Definition Hit.cxx:40
void SetCrystalNum(Int_t num)
Definition Hit.h:49
virtual void Print(Option_t *option="") const
Definition Hit.cxx:46
TVector3 GetPos() const
Definition Hit.h:54
Int_t fCrystalNumber
Crystal number.
Definition Hit.h:59
Double_t fEdep
Energy deposit in the absorber.
Definition Hit.h:57