VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01HadCalorHit.h
Go to the documentation of this file.
1#ifndef A01_HAD_CALOR_HIT_H
2#define A01_HAD_CALOR_HIT_H
3
4//------------------------------------------------
5// The Virtual Monte Carlo examples
6// Copyright (C) 2007 - 2014 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 A01HadCalorHit.h
14/// \brief Definition of the A01HadCalorHit class
15///
16/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17///
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include <TGeoMatrix.h>
21#include <TObject.h>
22#include <TVector3.h>
23
24/// \ingroup A01
25/// \brief The hadron calorimeter hit
26///
27/// \date 12/05/2012
28/// \author I. Hrivnacova; IPN, Orsay
29
30class A01HadCalorHit : public TObject
31{
32 public:
33 A01HadCalorHit(Int_t icol, Int_t irow);
35 virtual ~A01HadCalorHit();
36
37 // methods
38 virtual void Print(Option_t* option = "") const;
39 void Reset();
40
41 // set methods
42 void SetColumnID(Int_t z) { fColumnID = z; }
43 void SetRowID(Int_t volId) { fRowID = volId; }
44 void SetEdep(Double_t de) { fEdep = de; }
45 void AddEdep(Double_t de) { fEdep += de; }
46 void SetTransformation(const TGeoHMatrix& transformation)
47 {
48 fTransformation = transformation;
49 }
50
51 // get methods
52 Int_t GetColumnID() const { return fColumnID; }
53 Int_t GetRowID() const { return fRowID; }
54 Double_t GetEdep() const { return fEdep; }
55 const TGeoHMatrix& GetTransformation() const { return fTransformation; }
56
57 private:
58 Int_t fColumnID; ///< The column ID
59 Int_t fRowID; ///< The row ID
60 Double_t fEdep; ///< The energy deposit
61 TGeoHMatrix fTransformation; ///< The transformation of the hit volume
62
63 ClassDef(A01HadCalorHit, 1) // A01HadCalorHit
64};
65
66#endif // A01_HAD_CALOR_HIT_H
The hadron calorimeter hit.
Int_t GetColumnID() const
TGeoHMatrix fTransformation
The transformation of the hit volume.
Double_t GetEdep() const
void SetRowID(Int_t volId)
void SetTransformation(const TGeoHMatrix &transformation)
void SetColumnID(Int_t z)
void SetEdep(Double_t de)
virtual ~A01HadCalorHit()
Int_t fRowID
The row ID.
virtual void Print(Option_t *option="") const
Int_t fColumnID
The column ID.
const TGeoHMatrix & GetTransformation() const
void AddEdep(Double_t de)
Int_t GetRowID() const
Double_t fEdep
The energy deposit.