VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex03CalorHit.h
Go to the documentation of this file.
1#ifndef EX03_CALOR_HIT_H
2#define EX03_CALOR_HIT_H
3
4//------------------------------------------------
5// The Virtual Monte Carlo examples
6// Copyright (C) 2014 - 2018 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 Ex03CalorHit.h
14/// \brief Definition of the Ex03CalorHit class
15///
16/// Geant4 ExampleN03 adapted to Virtual Monte Carlo: \n
17/// Id: ExN03CalorHit.hh,v 1.5 2002/01/09 17:24:11 ranjard Exp \n
18/// GEANT4 tag Name: geant4-05-00
19///
20/// \author I. Hrivnacova; IPN, Orsay
21
22#include <TObject.h>
23#include <TVector3.h>
24
25/// \ingroup E03
26/// \brief The calorimeter hit
27///
28/// \date 06/03/2003
29/// \author I. Hrivnacova; IPN, Orsay
30
31class Ex03CalorHit : public TObject
32{
33 public:
35 virtual ~Ex03CalorHit();
36
37 // methods
38 virtual void Print(Option_t* option = "") const;
39
40 /// Add energy deposit and track length in the absorber
41 /// \param de Enery deposit
42 /// \param dl Track length
43 void AddAbs(Double_t de, Double_t dl)
44 {
45 fEdepAbs += de;
46 fTrackLengthAbs += dl;
47 }
48
49 /// Add energy deposit and track length in the gap
50 /// \param de Enery deposit
51 /// \param dl Track length
52 void AddGap(Double_t de, Double_t dl)
53 {
54 fEdepGap += de;
55 fTrackLengthGap += dl;
56 }
57
58 void Reset();
59
60 // get methods
61 /// \return The energy deposit in the absorber
62 Double_t GetEdepAbs() { return fEdepAbs; };
63 /// \return The track length in the absorber
64 Double_t GetTrakAbs() { return fTrackLengthAbs; };
65 /// \return The energy deposit in the gap
66 Double_t GetEdepGap() { return fEdepGap; };
67 /// \return The track length in the gap
68 Double_t GetTrakGap() { return fTrackLengthGap; };
69
70 private:
71 Double_t fEdepAbs; ///< Energy deposit in the absorber
72 Double_t fTrackLengthAbs; ///< Track length in the absorber
73 Double_t fEdepGap; ///< Energy deposit in the gap
74 Double_t fTrackLengthGap; ///< Track length in the gap
75
76 ClassDef(Ex03CalorHit, 1) // Ex03CalorHit
77};
78
79#endif // EX03_CALOR_HIT_H
The calorimeter hit.
Double_t fEdepGap
Energy deposit in the gap.
Double_t GetEdepGap()
virtual void Print(Option_t *option="") const
Double_t GetTrakGap()
Double_t fTrackLengthAbs
Track length in the absorber.
void AddAbs(Double_t de, Double_t dl)
virtual ~Ex03CalorHit()
Double_t GetEdepAbs()
Double_t GetTrakAbs()
void AddGap(Double_t de, Double_t dl)
Double_t fTrackLengthGap
Track length in the gap.
Double_t fEdepAbs
Energy deposit in the absorber.