VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex03CalorHit.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2014 - 2018 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
10/// \file Ex03CalorHit.cxx
11/// \brief Implementation of the Ex03CalorHit class
12///
13/// Geant4 ExampleN03 adapted to Virtual Monte Carlo \n
14/// Id: ExN03CalorHit.cc,v 1.5 2002/01/09 17:24:12 ranjard Exp \n
15/// GEANT4 tag Name: geant4-05-00
16///
17/// \date 06/03/2002
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include <Riostream.h>
21
22#include "Ex03CalorHit.h"
23
24using namespace std;
25
26/// \cond CLASSIMP
27ClassImp(Ex03CalorHit)
28 /// \endcond
29
30 //_____________________________________________________________________________
32 : TObject(),
33 fEdepAbs(0.),
34 fTrackLengthAbs(0.),
35 fEdepGap(0.),
36 fTrackLengthGap(0.)
37{
38 /// Default constructor
39}
40
41//_____________________________________________________________________________
43{
44 /// Destructor
45}
46
47//_____________________________________________________________________________
48void Ex03CalorHit::Print(Option_t* /*option*/) const
49{
50 /// Print hit info
51
52 cout << "In absorber: " << endl
53 << " energy deposit (keV): " << fEdepAbs * 1.0e06 << endl
54 << " track length (cm): " << fTrackLengthAbs << endl
55 << "In gap: " << endl
56 << " energy deposit (keV): " << fEdepGap * 1.0e06 << endl
57 << " track length (cm): " << fTrackLengthGap << endl;
58}
59
60//_____________________________________________________________________________
62{
63 /// Reset all accounted values.
64
65 fEdepAbs = 0.;
66 fTrackLengthAbs = 0.;
67 fEdepGap = 0.;
68 fTrackLengthGap = 0.;
69}
The calorimeter hit.
Double_t fEdepGap
Energy deposit in the gap.
virtual void Print(Option_t *option="") const
Double_t fTrackLengthAbs
Track length in the absorber.
virtual ~Ex03CalorHit()
Double_t fTrackLengthGap
Track length in the gap.
Double_t fEdepAbs
Energy deposit in the absorber.