VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01HadCalorHit.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 A01HadCalorHit.cxx
11/// \brief Implementation of the A01HadCalorHit 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 "A01HadCalorHit.h"
21
22using namespace std;
23
24/// \cond CLASSIMP
25ClassImp(A01HadCalorHit)
26 /// \endcond
27
28 //_____________________________________________________________________________
29 A01HadCalorHit::A01HadCalorHit(Int_t icol, Int_t irow)
30 : TObject(), fColumnID(icol), fRowID(irow), fEdep(0.), fTransformation()
31{
32 /// Standard constructor
33 /// \param icol Volume cell column number
34 /// \param irow Volume cell row number
35}
36
37//_____________________________________________________________________________
39 : TObject(), fColumnID(-1), fRowID(-1), fEdep(0.), fTransformation()
40{
41 /// Default constructor
42}
43
44//_____________________________________________________________________________
46{
47 /// Destructor
48}
49
50//_____________________________________________________________________________
51void A01HadCalorHit::Print(Option_t* /*option*/) const
52{
53 /// Print hit info
54
55 cout << " Cell[" << fRowID << ", " << fColumnID << "] " << fEdep * 1.0e03
56 << " (MeV) " << endl;
57}
58
59//_____________________________________________________________________________
61{
62 /// Reset all accounted values.
63
64 fColumnID = -1;
65 fRowID = -1;
66 fEdep = 0.;
67 fTransformation = TGeoHMatrix();
68}
Definition of the A01HadCalorHit class.
The hadron calorimeter hit.
TGeoHMatrix fTransformation
The transformation of the hit volume.
virtual ~A01HadCalorHit()
Int_t fRowID
The row ID.
virtual void Print(Option_t *option="") const
Int_t fColumnID
The column ID.
Double_t fEdep
The energy deposit.