VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01EmCalorHit.h
Go to the documentation of this file.
1#ifndef A01_EM_CALOR_HIT_H
2#define A01_EM_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 A01EmCalorHit.h
14/// \brief Definition of the A01EmCalorHit 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 EM calorimeter hit
26///
27/// \date 12/05/2012
28/// \author I. Hrivnacova; IPN, Orsay
29
30class A01EmCalorHit : public TObject
31{
32 public:
33 A01EmCalorHit(Int_t z);
35 virtual ~A01EmCalorHit();
36
37 // methods
38 virtual void Print(Option_t* option = "") const;
39 void Reset();
40
41 // set methods
42 void SetCellID(Int_t z) { fCellID = z; }
43 void SetVolId(Int_t volId) { fVolID = 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 GetCellID() const { return fCellID; }
53 Int_t GetVolId() const { return fVolID; }
54 Double_t GetEdep() const { return fEdep; }
55 const TGeoHMatrix& GetTransformation() const { return fTransformation; }
56
57 private:
58 Int_t GetCellID(Int_t column, Int_t row) const;
59
60 Int_t fCellID; ///< The cell ID
61 Int_t fVolID; ///< The volume ID
62 Double_t fEdep; ///< The energy deposit
63 TGeoHMatrix fTransformation; ///< The transformation of the hit volume
64
65 ClassDef(A01EmCalorHit, 1) // A01EmCalorHit
66};
67
68#endif // A01_EM_CALOR_HIT_H
The EM calorimeter hit.
Int_t fVolID
The volume ID.
void AddEdep(Double_t de)
void SetTransformation(const TGeoHMatrix &transformation)
Double_t fEdep
The energy deposit.
virtual ~A01EmCalorHit()
Int_t fCellID
The cell ID.
const TGeoHMatrix & GetTransformation() const
Double_t GetEdep() const
Int_t GetCellID(Int_t column, Int_t row) const
Int_t GetCellID() const
virtual void Print(Option_t *option="") const
void SetCellID(Int_t z)
void SetEdep(Double_t de)
TGeoHMatrix fTransformation
The transformation of the hit volume.
Int_t GetVolId() const
void SetVolId(Int_t volId)