VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01EmCalorHit.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2007 - 2014 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 A01EmCalorHit.cxx
11/// \brief Implementation of the A01EmCalorHit class
12///
13/// Geant4 example A01 adapted to Virtual Monte Carlo \n
14///
15/// \date 12/05/2012
16/// \author I. Hrivnacova; IPN, Orsay
17
18#include <Riostream.h>
19
20#include "A01EmCalorHit.h"
21
22using namespace std;
23
24/// \cond CLASSIMP
25ClassImp(A01EmCalorHit)
26 /// \endcond
27
28 //_____________________________________________________________________________
30 : TObject(), fCellID(z), fVolID(-1), fEdep(0.), fTransformation()
31{
32 /// Standard constructor
33 /// \param z The cell ID
34}
35
36//_____________________________________________________________________________
38 : TObject(), fCellID(-1), fVolID(-1), fEdep(0.), fTransformation()
39{
40 /// Default constructor
41}
42
43//_____________________________________________________________________________
45{
46 /// Destructor
47}
48
49//_____________________________________________________________________________
50void A01EmCalorHit::Print(Option_t* /*option*/) const
51{
52 /// Print hit info
53
54 cout << " Cell[" << fCellID << "] " << fEdep * 1.0e03 << " (MeV)" << endl;
55}
56
57//_____________________________________________________________________________
59{
60 /// Reset all accounted values.
61
62 fCellID = -1;
63 fVolID = -1;
64 fEdep = 0.;
65 fTransformation = TGeoHMatrix();
66}
Definition of the A01EmCalorHit class.
The EM calorimeter hit.
Int_t fVolID
The volume ID.
Double_t fEdep
The energy deposit.
virtual ~A01EmCalorHit()
Int_t fCellID
The cell ID.
virtual void Print(Option_t *option="") const
TGeoHMatrix fTransformation
The transformation of the hit volume.