AliRoot Core  edcc906 (edcc906)
AliEMCALHit Class Reference

EMCal hits object. More...

#include <AliEMCALHit.h>

Inheritance diagram for AliEMCALHit:

Public Member Functions

 AliEMCALHit ()
 Default constructor. More...
 
 AliEMCALHit (const AliEMCALHit &hit)
 Copy constructor. More...
 
AliEMCALHitoperator= (const AliEMCALHit &source)
 Assignment operator; use copy constructor. More...
 
 AliEMCALHit (Int_t shunt, Int_t primary, Int_t tracknumber, Int_t iparent, Float_t ienergy, Int_t id, Float_t *hits, Float_t *p)
 
virtual ~AliEMCALHit (void)
 
Float_t GetEnergy (void) const
 
Int_t GetId (void) const
 
Int_t GetIparent (void) const
 
Float_t GetIenergy (void) const
 
Int_t GetPrimary (void) const
 
Float_t GetTime (void) const
 
Float_t GetPx (void) const
 
Float_t GetPy (void) const
 
Float_t GetPz (void) const
 
Float_t GetPe (void) const
 
void SetIparent (Int_t iparent)
 
void SetPrimary (Int_t primary)
 
Bool_t operator== (AliEMCALHit const &rValue) const
 
AliEMCALHit operator+ (const AliEMCALHit &rValue)
 Add the energy of the hit. More...
 
- Public Member Functions inherited from AliHit
 AliHit ()
 
 AliHit (Int_t shunt, Int_t track)
 
virtual ~AliHit ()
 
Int_t GetTrack () const
 
void SetTrack (Int_t track)
 
Float_t X () const
 
Float_t Y () const
 
Float_t Z () const
 
Int_t Track () const
 

Private Attributes

Int_t fId
 Absolute Id number EMCAL segment. More...
 
Float_t fELOS
 Energy deposited. More...
 
Int_t fPrimary
 Primary particles at the origin of the hit. More...
 
Float_t fPx
 Primary particle entrance momentum/energy. More...
 
Float_t fPy
 Primary particle entrance momentum/energy. More...
 
Float_t fPz
 Primary particle entrance momentum/energy. More...
 
Float_t fPe
 Primary particle entrance momentum/energy. More...
 
Int_t fIparent
 Parent particle that entered emcal. More...
 
Float_t fIenergy
 Initial energy of parent particle that enterred the emcal. More...
 
Float_t fTime
 Time of the energy deposition. More...
 

Friends

ostream & operator<< (ostream &, AliEMCALHit &)
 Dump hit info. More...
 

Additional Inherited Members

- Protected Attributes inherited from AliHit
Int_t fTrack
 
Float_t fX
 
Float_t fY
 
Float_t fZ
 

Detailed Description

EMCal hits object.

A hit in EMCAL is the sum of all hits from the same entering particle Based on AliPHOSHit

Author
Sahal Yacoob (LBL)

Definition at line 24 of file AliEMCALHit.h.

Constructor & Destructor Documentation

AliEMCALHit::AliEMCALHit ( )

Default constructor.

Definition at line 31 of file AliEMCALHit.cxx.

Referenced by operator=().

AliEMCALHit::AliEMCALHit ( const AliEMCALHit hit)

Copy constructor.

Definition at line 47 of file AliEMCALHit.cxx.

AliEMCALHit::AliEMCALHit ( Int_t  shunt,
Int_t  primary,
Int_t  track,
Int_t  iparent,
Float_t  ienergy,
Int_t  id,
Float_t *  hits,
Float_t *  p 
)

Create an EMCal hit object

Parameters
shuntlevel of primary selection to store
primaryindex label
trackindex
iparentindex
ienergydeposited energy?
idcell id?
hitshit position time energy
phit momentum

Definition at line 84 of file AliEMCALHit.cxx.

virtual AliEMCALHit::~AliEMCALHit ( void  )
inlinevirtual

Definition at line 38 of file AliEMCALHit.h.

Member Function Documentation

Float_t AliEMCALHit::GetEnergy ( void  ) const
inline
Returns
the energy loss for this hit

Definition at line 41 of file AliEMCALHit.h.

Referenced by AliEMCALSDigitizer::Digitize(), AliEMCALQADataMakerSim::MakeHits(), operator+(), operator<<(), TestEMCALData(), and TestEMCALHit().

Int_t AliEMCALHit::GetId ( void  ) const
inline
Returns
the identificator of this his

Definition at line 44 of file AliEMCALHit.h.

Referenced by AliEMCALSDigitizer::Digitize(), operator<<(), operator==(), TestEMCALData(), and TestEMCALHit().

Float_t AliEMCALHit::GetIenergy ( void  ) const
inline

Definition at line 49 of file AliEMCALHit.h.

Referenced by operator<<().

Int_t AliEMCALHit::GetIparent ( void  ) const
inline
Returns
the primary particle id at the origine of this hit

Definition at line 47 of file AliEMCALHit.h.

Referenced by AliEMCALSDigitizer::Digitize(), operator<<(), and operator==().

Float_t AliEMCALHit::GetPe ( void  ) const
inline

Definition at line 59 of file AliEMCALHit.h.

Referenced by operator<<().

Int_t AliEMCALHit::GetPrimary ( void  ) const
inline
Float_t AliEMCALHit::GetPx ( void  ) const
inline

Definition at line 56 of file AliEMCALHit.h.

Referenced by operator<<().

Float_t AliEMCALHit::GetPy ( void  ) const
inline

Definition at line 57 of file AliEMCALHit.h.

Referenced by operator<<().

Float_t AliEMCALHit::GetPz ( void  ) const
inline

Definition at line 58 of file AliEMCALHit.h.

Referenced by operator<<().

Float_t AliEMCALHit::GetTime ( void  ) const
inline
Returns
the time of the first energy deposition

Definition at line 54 of file AliEMCALHit.h.

Referenced by AliEMCALSDigitizer::Digitize(), operator+(), operator<<(), and TestEMCALHit().

AliEMCALHit AliEMCALHit::operator+ ( const AliEMCALHit rValue)

Add the energy of the hit.

Definition at line 127 of file AliEMCALHit.cxx.

Referenced by SetPrimary().

AliEMCALHit & AliEMCALHit::operator= ( const AliEMCALHit source)

Assignment operator; use copy constructor.

Definition at line 64 of file AliEMCALHit.cxx.

Bool_t AliEMCALHit::operator== ( AliEMCALHit const &  rValue) const

Two hits are identical if they have the same Id and originat from the same enterring Particle

Definition at line 114 of file AliEMCALHit.cxx.

Referenced by SetPrimary().

void AliEMCALHit::SetIparent ( Int_t  iparent)
inline

Definition at line 61 of file AliEMCALHit.h.

void AliEMCALHit::SetPrimary ( Int_t  primary)
inline

Definition at line 62 of file AliEMCALHit.h.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
AliEMCALHit hit 
)
friend

Dump hit info.

Definition at line 140 of file AliEMCALHit.cxx.

Member Data Documentation

Float_t AliEMCALHit::fELOS
private

Energy deposited.

Definition at line 70 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), GetEnergy(), and operator+().

Int_t AliEMCALHit::fId
private

Absolute Id number EMCAL segment.

Definition at line 69 of file AliEMCALHit.h.

Referenced by GetId(), and operator==().

Float_t AliEMCALHit::fIenergy
private

Initial energy of parent particle that enterred the emcal.

Definition at line 77 of file AliEMCALHit.h.

Referenced by GetIenergy().

Int_t AliEMCALHit::fIparent
private

Parent particle that entered emcal.

Definition at line 76 of file AliEMCALHit.h.

Referenced by GetIparent(), operator==(), and SetIparent().

Float_t AliEMCALHit::fPe
private

Primary particle entrance momentum/energy.

Definition at line 75 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), and GetPe().

Int_t AliEMCALHit::fPrimary
private

Primary particles at the origin of the hit.

Definition at line 71 of file AliEMCALHit.h.

Referenced by GetPrimary(), and SetPrimary().

Float_t AliEMCALHit::fPx
private

Primary particle entrance momentum/energy.

Definition at line 72 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), and GetPx().

Float_t AliEMCALHit::fPy
private

Primary particle entrance momentum/energy.

Definition at line 73 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), and GetPy().

Float_t AliEMCALHit::fPz
private

Primary particle entrance momentum/energy.

Definition at line 74 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), and GetPz().

Float_t AliEMCALHit::fTime
private

Time of the energy deposition.

Definition at line 78 of file AliEMCALHit.h.

Referenced by AliEMCALHit(), GetTime(), and operator+().


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