VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01EmCalorHit Class Reference

The EM calorimeter hit. More...

#include <A01EmCalorHit.h>

Inheritance diagram for A01EmCalorHit:

Public Member Functions

 A01EmCalorHit (Int_t z)
 
 A01EmCalorHit ()
 
virtual ~A01EmCalorHit ()
 
virtual void Print (Option_t *option="") const
 
void Reset ()
 
void SetCellID (Int_t z)
 
void SetVolId (Int_t volId)
 
void SetEdep (Double_t de)
 
void AddEdep (Double_t de)
 
void SetTransformation (const TGeoHMatrix &transformation)
 
Int_t GetCellID () const
 
Int_t GetVolId () const
 
Double_t GetEdep () const
 
const TGeoHMatrix & GetTransformation () const
 

Private Member Functions

Int_t GetCellID (Int_t column, Int_t row) const
 

Private Attributes

Int_t fCellID
 The cell ID.
 
Int_t fVolID
 The volume ID.
 
Double_t fEdep
 The energy deposit.
 
TGeoHMatrix fTransformation
 The transformation of the hit volume.
 

Detailed Description

The EM calorimeter hit.

Date
12/05/2012
Author
I. Hrivnacova; IPN, Orsay

Definition at line 30 of file A01EmCalorHit.h.

Constructor & Destructor Documentation

◆ A01EmCalorHit() [1/2]

A01EmCalorHit::A01EmCalorHit ( Int_t z)

Standard constructor

Parameters
zThe cell ID

Definition at line 29 of file A01EmCalorHit.cxx.

30 : TObject(), fCellID(z), fVolID(-1), fEdep(0.), fTransformation()
31{
32 /// Standard constructor
33 /// \param z The cell ID
34}
Int_t fVolID
The volume ID.
Double_t fEdep
The energy deposit.
Int_t fCellID
The cell ID.
TGeoHMatrix fTransformation
The transformation of the hit volume.

◆ A01EmCalorHit() [2/2]

A01EmCalorHit::A01EmCalorHit ( )

Default constructor

Definition at line 37 of file A01EmCalorHit.cxx.

38 : TObject(), fCellID(-1), fVolID(-1), fEdep(0.), fTransformation()
39{
40 /// Default constructor
41}

◆ ~A01EmCalorHit()

A01EmCalorHit::~A01EmCalorHit ( )
virtual

Destructor

Definition at line 44 of file A01EmCalorHit.cxx.

45{
46 /// Destructor
47}

Member Function Documentation

◆ Print()

void A01EmCalorHit::Print ( Option_t * option = "") const
virtual

Print hit info

Definition at line 50 of file A01EmCalorHit.cxx.

51{
52 /// Print hit info
53
54 cout << " Cell[" << fCellID << "] " << fEdep * 1.0e03 << " (MeV)" << endl;
55}

◆ Reset()

void A01EmCalorHit::Reset ( )

Reset all accounted values.

Definition at line 58 of file A01EmCalorHit.cxx.

59{
60 /// Reset all accounted values.
61
62 fCellID = -1;
63 fVolID = -1;
64 fEdep = 0.;
65 fTransformation = TGeoHMatrix();
66}

◆ SetCellID()

void A01EmCalorHit::SetCellID ( Int_t z)
inline

Definition at line 42 of file A01EmCalorHit.h.

42{ fCellID = z; }

◆ SetVolId()

void A01EmCalorHit::SetVolId ( Int_t volId)
inline

Definition at line 43 of file A01EmCalorHit.h.

43{ fVolID = volId; }

◆ SetEdep()

void A01EmCalorHit::SetEdep ( Double_t de)
inline

Definition at line 44 of file A01EmCalorHit.h.

44{ fEdep = de; }

◆ AddEdep()

void A01EmCalorHit::AddEdep ( Double_t de)
inline

Definition at line 45 of file A01EmCalorHit.h.

45{ fEdep += de; }

◆ SetTransformation()

void A01EmCalorHit::SetTransformation ( const TGeoHMatrix & transformation)
inline

Definition at line 46 of file A01EmCalorHit.h.

47 {
48 fTransformation = transformation;
49 }

◆ GetCellID() [1/2]

Int_t A01EmCalorHit::GetCellID ( ) const
inline

Definition at line 52 of file A01EmCalorHit.h.

52{ return fCellID; }

◆ GetVolId()

Int_t A01EmCalorHit::GetVolId ( ) const
inline

Definition at line 53 of file A01EmCalorHit.h.

53{ return fVolID; }

◆ GetEdep()

Double_t A01EmCalorHit::GetEdep ( ) const
inline

Definition at line 54 of file A01EmCalorHit.h.

54{ return fEdep; }

◆ GetTransformation()

const TGeoHMatrix & A01EmCalorHit::GetTransformation ( ) const
inline

Definition at line 55 of file A01EmCalorHit.h.

55{ return fTransformation; }

◆ GetCellID() [2/2]

Int_t A01EmCalorHit::GetCellID ( Int_t column,
Int_t row ) const
private

Member Data Documentation

◆ fCellID

Int_t A01EmCalorHit::fCellID
private

The cell ID.

Definition at line 60 of file A01EmCalorHit.h.

◆ fVolID

Int_t A01EmCalorHit::fVolID
private

The volume ID.

Definition at line 61 of file A01EmCalorHit.h.

◆ fEdep

Double_t A01EmCalorHit::fEdep
private

The energy deposit.

Definition at line 62 of file A01EmCalorHit.h.

◆ fTransformation

TGeoHMatrix A01EmCalorHit::fTransformation
private

The transformation of the hit volume.

Definition at line 63 of file A01EmCalorHit.h.


The documentation for this class was generated from the following files: