AliRoot Core  edcc906 (edcc906)
AliESDCaloCells Class Reference

Class for calorimeter cell ESD data handling. More...

#include <AliESDCaloCells.h>

Inheritance diagram for AliESDCaloCells:

Public Member Functions

 AliESDCaloCells ()
 
 AliESDCaloCells (const char *name, const char *title, VCells_t ttype=kUndef)
 
 AliESDCaloCells (const AliESDCaloCells &cells)
 
AliESDCaloCellsoperator= (const AliESDCaloCells &source)
 
virtual ~AliESDCaloCells ()
 
virtual AliVCaloCellsCopyCaloCells (Bool_t all) const
 
virtual void Copy (TObject &obj) const
 
void Clear (const Option_t *)
 
void CreateContainer (Short_t nCells)
 
void DeleteContainer ()
 
void Sort ()
 
Bool_t IsEMCAL () const
 
Bool_t IsPHOS () const
 
Char_t GetType () const
 
void SetType (Char_t t)
 
Bool_t GetCell (Short_t pos, Short_t &cellNumber, Double_t &amplitude, Double_t &time, Int_t &mclabel, Double_t &efrac) const
 
Bool_t SetCell (Short_t pos, Short_t cellNumber, Double_t amplitude, Double_t time, Int_t mclabel=-1, Double_t efrac=0., Bool_t isHG=kFALSE)
 
Short_t GetNumberOfCells () const
 
void SetNumberOfCells (Int_t n)
 
Double_t GetCellAmplitude (Short_t cellNumber)
 
Bool_t GetCellHighGain (Short_t cellNumber)
 
Short_t GetCellPosition (Short_t cellNumber)
 
Double_t GetCellTime (Short_t cellNumber)
 
Double_t GetAmplitude (Short_t pos) const
 
Bool_t GetHighGain (Short_t pos) const
 
Double_t GetTime (Short_t pos) const
 
Short_t GetCellNumber (Short_t pos) const
 
Int_t GetCellMCLabel (Short_t cellNumber)
 
Int_t GetMCLabel (Short_t pos) const
 
void SetMCLabel (Short_t pos, Int_t val)
 
Double_t GetCellEFraction (Short_t cellNumber)
 
Double_t GetEFraction (Short_t pos) const
 
void SetEFraction (Short_t pos, Double32_t efrac)
 
void SetCellEFraction (Short_t cellNumber, Double32_t efrac)
 
- Public Member Functions inherited from AliVCaloCells
 AliVCaloCells ()
 
 AliVCaloCells (const char *name, const char *title)
 
 AliVCaloCells (const AliVCaloCells &cells)
 
AliVCaloCellsoperator= (const AliVCaloCells &cells)
 
virtual ~AliVCaloCells ()
 
void Clear (const Option_t *)
 
virtual void SetCellEFraction (Short_t cellNumber, Double_t efrac)=0
 
virtual void SetEFraction (Short_t pos, Double_t efrac)=0
 

Protected Attributes

Int_t fNCells
 Number of cells. More...
 
Bool_t * fHGLG
 If Cell is High Gain or Low Gain. More...
 
Short_t * fCellNumber
 Array of cell absolute Id. numbers. More...
 
Double32_t * fAmplitude
 Array with cell amplitudes (= energy!). More...
 
Double32_t * fTime
 Array with cell times. More...
 
Double32_t * fEFraction
 Array with fraction of MC energy and data - for embedding. More...
 
Int_t * fMCLabel
 Array of MC labels, each label is the highest contributor to the cell signal. More...
 
Bool_t fIsSorted
 ! True if cell arrays are sorted by index. More...
 
Char_t fType
 Cell type. More...
 

Additional Inherited Members

- Public Types inherited from AliVCaloCells
enum  VCells_t { kUndef = -1, kPHOSCell, kEMCALCell }
 

Detailed Description

Class for calorimeter cell ESD data handling.

ESD class to store calorimeter cell data Clone of AliAODCaloCells made by Markus Oldenburg, CERN.

Data is stored in different arrays, each entry of the array corresponding to a cell. The data stored is the cell energy, time, high gain bool, absolute id number, MC label that deposited most energy, and a container for the MC embedded energy.

Author
Gustavo Conesa Balbastre, Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-Grenoble

Definition at line 24 of file AliESDCaloCells.h.

Constructor & Destructor Documentation

AliESDCaloCells::AliESDCaloCells ( )

Default constructor.

Definition at line 26 of file AliESDCaloCells.cxx.

Referenced by CopyCaloCells().

AliESDCaloCells::AliESDCaloCells ( const char *  name,
const char *  title,
VCells_t  ttype = kUndef 
)

Constructor.

Definition at line 37 of file AliESDCaloCells.cxx.

AliESDCaloCells::AliESDCaloCells ( const AliESDCaloCells c)

Copy constructor.

Definition at line 48 of file AliESDCaloCells.cxx.

AliESDCaloCells::~AliESDCaloCells ( )
virtual

Destructor.

Definition at line 173 of file AliESDCaloCells.cxx.

Member Function Documentation

void AliESDCaloCells::Clear ( const Option_t *  )

Clear arrays.

Definition at line 182 of file AliESDCaloCells.cxx.

void AliESDCaloCells::Copy ( TObject &  obj) const
virtual

This overwrites the virtual TObject::Copy() to allow run time copying without casting in AliESDEvent

Implements AliVCaloCells.

Definition at line 131 of file AliESDCaloCells.cxx.

AliVCaloCells * AliESDCaloCells::CopyCaloCells ( Bool_t  all = kTRUE) const
virtual

Copy the calo cells into a new object. If option all=FALSE, just the object type, for mixing.

Implements AliVCaloCells.

Definition at line 144 of file AliESDCaloCells.cxx.

void AliESDCaloCells::CreateContainer ( Short_t  nCells)
virtual

Function that creates container to store calorimeter cell data.

Implements AliVCaloCells.

Definition at line 191 of file AliESDCaloCells.cxx.

Referenced by AliEMCALReconstructor::FillESD().

void AliESDCaloCells::DeleteContainer ( )
virtual

Deletes allocated memory

Implements AliVCaloCells.

Definition at line 226 of file AliESDCaloCells.cxx.

Referenced by Clear(), CreateContainer(), AliESDEvent::ResetStdContent(), and ~AliESDCaloCells().

Double_t AliESDCaloCells::GetAmplitude ( Short_t  pos) const
inlinevirtual
Returns
Cell amplitude (GeV).
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 208 of file AliESDCaloCells.h.

Referenced by AliEMCALQADataMakerRec::MakeESDs(), and SetNumberOfCells().

Bool_t AliESDCaloCells::GetCell ( Short_t  pos,
Short_t &  cellNumber,
Double_t &  amplitude,
Double_t &  time,
Int_t &  mclabel,
Double_t &  efrac 
) const
inlinevirtual

Given the position index in the array, return the cell parameters.

Parameters
posIndex of cell in array
cellNumberAbsolute cell Id. number
amplitudeCell energy
timeCell time
mclabelMC particle index in kine tree
efracFraction of energy (embedding)
Returns
True if pos is correct not negative or larger than expected.

Implements AliVCaloCells.

Definition at line 118 of file AliESDCaloCells.h.

Referenced by SetType().

Double_t AliESDCaloCells::GetCellAmplitude ( Short_t  cellNumber)
inlinevirtual
Returns
Cell amplitude (GeV).
Parameters
cellNumberCell absolute Id.

Implements AliVCaloCells.

Definition at line 144 of file AliESDCaloCells.h.

Referenced by AliEMCALReconstructor::FillESD(), SetNumberOfCells(), and TestESDCaloClusterAndCell().

Double_t AliESDCaloCells::GetCellEFraction ( Short_t  cellNumber)
inlinevirtual
Returns
Fraction of energy in cell from embedding.
Parameters
cellNumberAbsolute Id number of cell.

Implements AliVCaloCells.

Definition at line 348 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Bool_t AliESDCaloCells::GetCellHighGain ( Short_t  cellNumber)
inlinevirtual
Returns
True for high gain, False for low gain.
Parameters
cellNumberCell absolute Id.

Implements AliVCaloCells.

Definition at line 163 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Int_t AliESDCaloCells::GetCellMCLabel ( Short_t  cellNumber)
inlinevirtual
Returns
MC label of highest contributor particle depositing energy in cell.
Parameters
cellNumberCell position in array.

Implements AliVCaloCells.

Definition at line 329 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Short_t AliESDCaloCells::GetCellNumber ( Short_t  pos) const
inlinevirtual
Returns
Cell absolute Id. number.
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 254 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Short_t AliESDCaloCells::GetCellPosition ( Short_t  cellNumber)
inlinevirtual
Parameters
cellNumberCell absolute Id. number.
Returns
Cell position in array.

Implements AliVCaloCells.

Definition at line 267 of file AliESDCaloCells.h.

Referenced by AliEMCALReconstructor::FillESD(), and SetNumberOfCells().

Double_t AliESDCaloCells::GetCellTime ( Short_t  cellNumber)
inlinevirtual
Returns
Cell time (s).
Parameters
cellNumberCell absolute Id.

Implements AliVCaloCells.

Definition at line 189 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells(), and TestESDCaloClusterAndCell().

Double_t AliESDCaloCells::GetEFraction ( Short_t  pos) const
inlinevirtual
Returns
Fraction of energy in cell from embedding.
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 316 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Bool_t AliESDCaloCells::GetHighGain ( Short_t  pos) const
inlinevirtual
Returns
True for high gain, False for low gain.
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 221 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Int_t AliESDCaloCells::GetMCLabel ( Short_t  pos) const
inlinevirtual
Returns
MC label of highest contributor particle depositing energy in cell.
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 296 of file AliESDCaloCells.h.

Referenced by AliESDEvent::AdjustMCLabels(), and SetNumberOfCells().

Short_t AliESDCaloCells::GetNumberOfCells ( ) const
inlinevirtual
Double_t AliESDCaloCells::GetTime ( Short_t  pos) const
inlinevirtual
Returns
Cell time (s).
Parameters
posCell position in array.

Implements AliVCaloCells.

Definition at line 241 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

Char_t AliESDCaloCells::GetType ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 43 of file AliESDCaloCells.h.

Referenced by CopyCaloCells(), and TestESDCaloClusterAndCell().

Bool_t AliESDCaloCells::IsEMCAL ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 41 of file AliESDCaloCells.h.

Bool_t AliESDCaloCells::IsPHOS ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 42 of file AliESDCaloCells.h.

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

Assignment operator.

Definition at line 82 of file AliESDCaloCells.cxx.

Bool_t AliESDCaloCells::SetCell ( Short_t  pos,
Short_t  cellNumber,
Double_t  amplitude,
Double_t  time,
Int_t  mclabel = -1,
Double_t  efrac = 0.,
Bool_t  isHG = kFALSE 
)
virtual

Sets a cell at the given position.

Parameters
poscell position in array.
cellNumberCell absolute Id. number.
amplitudeCell signal (GeV).
timeCell time (s).
mclabelMC particle index in kine array.
efracFraction of energy from embedding.
isHGbool true if cell is from high gain.

Implements AliVCaloCells.

Definition at line 332 of file AliESDCaloCells.cxx.

Referenced by AliEMCALReconstructor::FillESD(), and SetType().

void AliESDCaloCells::SetCellEFraction ( Short_t  cellNumber,
Double32_t  efrac 
)
inline

Set fraction of energy in cell from embedding.

Parameters
cellNumberAbsolute cell Id. number of cell.
efracfraction of energy.

Definition at line 382 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

void AliESDCaloCells::SetEFraction ( Short_t  pos,
Double32_t  efrac 
)
inline

Set Fraction of energy in cell from embedding.

Parameters
posCell position in array.
efracfraction of energy.

Definition at line 368 of file AliESDCaloCells.h.

Referenced by SetNumberOfCells().

void AliESDCaloCells::SetMCLabel ( Short_t  pos,
Int_t  val 
)
inlinevirtual

Implements AliVCaloCells.

Definition at line 305 of file AliESDCaloCells.h.

Referenced by AliESDEvent::AdjustMCLabels(), and SetNumberOfCells().

void AliESDCaloCells::SetNumberOfCells ( Int_t  n)
inlinevirtual

Implements AliVCaloCells.

Definition at line 50 of file AliESDCaloCells.h.

Referenced by AliEMCALReconstructor::FillESD().

void AliESDCaloCells::SetType ( Char_t  t)
inlinevirtual

Implements AliVCaloCells.

Definition at line 44 of file AliESDCaloCells.h.

Referenced by AliEMCALReconstructor::FillESD().

void AliESDCaloCells::Sort ( )
virtual

Member Data Documentation

Double32_t* AliESDCaloCells::fAmplitude
protected
Double32_t* AliESDCaloCells::fEFraction
protected

Array with fraction of MC energy and data - for embedding.

Definition at line 91 of file AliESDCaloCells.h.

Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellEFraction(), GetEFraction(), operator=(), SetCell(), SetCellEFraction(), SetEFraction(), and Sort().

Bool_t* AliESDCaloCells::fHGLG
protected

If Cell is High Gain or Low Gain.

Definition at line 79 of file AliESDCaloCells.h.

Referenced by AliESDCaloCells(), CreateContainer(), DeleteContainer(), GetCellHighGain(), GetHighGain(), operator=(), SetCell(), and Sort().

Bool_t AliESDCaloCells::fIsSorted
protected
Int_t* AliESDCaloCells::fMCLabel
protected

Array of MC labels, each label is the highest contributor to the cell signal.

Definition at line 94 of file AliESDCaloCells.h.

Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellHighGain(), GetCellMCLabel(), GetHighGain(), GetMCLabel(), operator=(), SetCell(), SetMCLabel(), and Sort().

Double32_t* AliESDCaloCells::fTime
protected
Char_t AliESDCaloCells::fType
protected

Cell type.

Definition at line 98 of file AliESDCaloCells.h.

Referenced by GetType(), IsEMCAL(), IsPHOS(), operator=(), and SetType().


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