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

The hadron calorimeter hit. More...

#include <A01HadCalorHit.h>

Inheritance diagram for A01HadCalorHit:

Public Member Functions

 A01HadCalorHit (Int_t icol, Int_t irow)
 
 A01HadCalorHit ()
 
virtual ~A01HadCalorHit ()
 
virtual void Print (Option_t *option="") const
 
void Reset ()
 
void SetColumnID (Int_t z)
 
void SetRowID (Int_t volId)
 
void SetEdep (Double_t de)
 
void AddEdep (Double_t de)
 
void SetTransformation (const TGeoHMatrix &transformation)
 
Int_t GetColumnID () const
 
Int_t GetRowID () const
 
Double_t GetEdep () const
 
const TGeoHMatrix & GetTransformation () const
 

Private Attributes

Int_t fColumnID
 The column ID.
 
Int_t fRowID
 The row ID.
 
Double_t fEdep
 The energy deposit.
 
TGeoHMatrix fTransformation
 The transformation of the hit volume.
 

Detailed Description

The hadron calorimeter hit.

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

Definition at line 30 of file A01HadCalorHit.h.

Constructor & Destructor Documentation

◆ A01HadCalorHit() [1/2]

A01HadCalorHit::A01HadCalorHit ( Int_t icol,
Int_t irow )

Standard constructor

Parameters
icolVolume cell column number
irowVolume cell row number

Definition at line 29 of file A01HadCalorHit.cxx.

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}
TGeoHMatrix fTransformation
The transformation of the hit volume.
Int_t fRowID
The row ID.
Int_t fColumnID
The column ID.
Double_t fEdep
The energy deposit.

◆ A01HadCalorHit() [2/2]

A01HadCalorHit::A01HadCalorHit ( )

Default constructor

Definition at line 38 of file A01HadCalorHit.cxx.

39 : TObject(), fColumnID(-1), fRowID(-1), fEdep(0.), fTransformation()
40{
41 /// Default constructor
42}

◆ ~A01HadCalorHit()

A01HadCalorHit::~A01HadCalorHit ( )
virtual

Destructor

Definition at line 45 of file A01HadCalorHit.cxx.

46{
47 /// Destructor
48}

Member Function Documentation

◆ Print()

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

Print hit info

Definition at line 51 of file A01HadCalorHit.cxx.

52{
53 /// Print hit info
54
55 cout << " Cell[" << fRowID << ", " << fColumnID << "] " << fEdep * 1.0e03
56 << " (MeV) " << endl;
57}

◆ Reset()

void A01HadCalorHit::Reset ( )

Reset all accounted values.

Definition at line 60 of file A01HadCalorHit.cxx.

61{
62 /// Reset all accounted values.
63
64 fColumnID = -1;
65 fRowID = -1;
66 fEdep = 0.;
67 fTransformation = TGeoHMatrix();
68}

◆ SetColumnID()

void A01HadCalorHit::SetColumnID ( Int_t z)
inline

Definition at line 42 of file A01HadCalorHit.h.

42{ fColumnID = z; }

◆ SetRowID()

void A01HadCalorHit::SetRowID ( Int_t volId)
inline

Definition at line 43 of file A01HadCalorHit.h.

43{ fRowID = volId; }

◆ SetEdep()

void A01HadCalorHit::SetEdep ( Double_t de)
inline

Definition at line 44 of file A01HadCalorHit.h.

44{ fEdep = de; }

◆ AddEdep()

void A01HadCalorHit::AddEdep ( Double_t de)
inline

Definition at line 45 of file A01HadCalorHit.h.

45{ fEdep += de; }

◆ SetTransformation()

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

Definition at line 46 of file A01HadCalorHit.h.

47 {
48 fTransformation = transformation;
49 }

◆ GetColumnID()

Int_t A01HadCalorHit::GetColumnID ( ) const
inline

Definition at line 52 of file A01HadCalorHit.h.

52{ return fColumnID; }

◆ GetRowID()

Int_t A01HadCalorHit::GetRowID ( ) const
inline

Definition at line 53 of file A01HadCalorHit.h.

53{ return fRowID; }

◆ GetEdep()

Double_t A01HadCalorHit::GetEdep ( ) const
inline

Definition at line 54 of file A01HadCalorHit.h.

54{ return fEdep; }

◆ GetTransformation()

const TGeoHMatrix & A01HadCalorHit::GetTransformation ( ) const
inline

Definition at line 55 of file A01HadCalorHit.h.

55{ return fTransformation; }

Member Data Documentation

◆ fColumnID

Int_t A01HadCalorHit::fColumnID
private

The column ID.

Definition at line 58 of file A01HadCalorHit.h.

◆ fRowID

Int_t A01HadCalorHit::fRowID
private

The row ID.

Definition at line 59 of file A01HadCalorHit.h.

◆ fEdep

Double_t A01HadCalorHit::fEdep
private

The energy deposit.

Definition at line 60 of file A01HadCalorHit.h.

◆ fTransformation

TGeoHMatrix A01HadCalorHit::fTransformation
private

The transformation of the hit volume.

Definition at line 61 of file A01HadCalorHit.h.


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