AliRoot Core  edcc906 (edcc906)
AliAODCaloCells Class Reference

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

#include <AliAODCaloCells.h>

Inheritance diagram for AliAODCaloCells:

Public Member Functions

 AliAODCaloCells ()
 
 AliAODCaloCells (const char *name, const char *title, VCells_t ttype=kUndef)
 
 AliAODCaloCells (const AliAODCaloCells &cells)
 
AliAODCaloCellsoperator= (const AliAODCaloCells &cells)
 
virtual ~AliAODCaloCells ()
 
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 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
 
Short_t GetCellNumber (Short_t pos) const
 
Double_t GetTime (Short_t pos) const
 
Bool_t IsEMCAL () const
 
Bool_t IsPHOS () const
 
Char_t GetType () const
 
void SetType (Char_t ttype)
 
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 AOD data handling.

AOD class to store calorimeter cell data

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
Markus Oldenburg, CERN.
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 26 of file AliAODCaloCells.h.

Constructor & Destructor Documentation

AliAODCaloCells::AliAODCaloCells ( )

Default constructor.

Definition at line 26 of file AliAODCaloCells.cxx.

Referenced by CopyCaloCells().

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

Constructor.

Definition at line 37 of file AliAODCaloCells.cxx.

AliAODCaloCells::AliAODCaloCells ( const AliAODCaloCells cells)

Copy constructor.

Definition at line 48 of file AliAODCaloCells.cxx.

AliAODCaloCells::~AliAODCaloCells ( )
virtual

Definition at line 122 of file AliAODCaloCells.cxx.

Member Function Documentation

void AliAODCaloCells::Clear ( const Option_t *  )

Clear arrays.

Definition at line 133 of file AliAODCaloCells.cxx.

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

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

Implements AliVCaloCells.

Definition at line 144 of file AliAODCaloCells.cxx.

AliVCaloCells * AliAODCaloCells::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 157 of file AliAODCaloCells.cxx.

void AliAODCaloCells::CreateContainer ( Short_t  nCells)
virtual

Function that creates container to store calorimeter cell data.

Implements AliVCaloCells.

Definition at line 190 of file AliAODCaloCells.cxx.

void AliAODCaloCells::DeleteContainer ( )
virtual

Deletes allocated memory.

Implements AliVCaloCells.

Definition at line 225 of file AliAODCaloCells.cxx.

Referenced by Clear(), AliAODEvent::ClearStd(), CreateContainer(), AliAODEvent::ResetStd(), and ~AliAODCaloCells().

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

Implements AliVCaloCells.

Definition at line 211 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

Bool_t AliAODCaloCells::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 119 of file AliAODCaloCells.h.

Referenced by AliAODHandler::StoreMCParticles().

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

Implements AliVCaloCells.

Definition at line 145 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

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

Implements AliVCaloCells.

Definition at line 353 of file AliAODCaloCells.h.

Referenced by SetType().

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

Implements AliVCaloCells.

Definition at line 164 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

Int_t AliAODCaloCells::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 332 of file AliAODCaloCells.h.

Referenced by SetType().

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

Implements AliVCaloCells.

Definition at line 257 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

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

Implements AliVCaloCells.

Definition at line 270 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

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

Implements AliVCaloCells.

Definition at line 190 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

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

Implements AliVCaloCells.

Definition at line 319 of file AliAODCaloCells.h.

Referenced by SetType().

Bool_t AliAODCaloCells::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 224 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

Int_t AliAODCaloCells::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 299 of file AliAODCaloCells.h.

Referenced by SetType().

Short_t AliAODCaloCells::GetNumberOfCells ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 45 of file AliAODCaloCells.h.

Referenced by AliAODHandler::StoreMCParticles().

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

Implements AliVCaloCells.

Definition at line 244 of file AliAODCaloCells.h.

Referenced by SetNumberOfCells().

Char_t AliAODCaloCells::GetType ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 61 of file AliAODCaloCells.h.

Referenced by CopyCaloCells().

Bool_t AliAODCaloCells::IsEMCAL ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 58 of file AliAODCaloCells.h.

Bool_t AliAODCaloCells::IsPHOS ( ) const
inlinevirtual

Implements AliVCaloCells.

Definition at line 59 of file AliAODCaloCells.h.

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

Assignment operator.

Definition at line 78 of file AliAODCaloCells.cxx.

Bool_t AliAODCaloCells::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 335 of file AliAODCaloCells.cxx.

Referenced by AliAODHandler::StoreMCParticles().

void AliAODCaloCells::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 389 of file AliAODCaloCells.h.

Referenced by SetType().

void AliAODCaloCells::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 375 of file AliAODCaloCells.h.

Referenced by SetType().

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

Implements AliVCaloCells.

Definition at line 308 of file AliAODCaloCells.h.

Referenced by SetType().

void AliAODCaloCells::SetNumberOfCells ( Int_t  n)
inlinevirtual

Implements AliVCaloCells.

Definition at line 46 of file AliAODCaloCells.h.

void AliAODCaloCells::SetType ( Char_t  ttype)
inlinevirtual

Implements AliVCaloCells.

Definition at line 62 of file AliAODCaloCells.h.

void AliAODCaloCells::Sort ( )
virtual

Sort the cell array by cell number.

Implements AliVCaloCells.

Definition at line 271 of file AliAODCaloCells.cxx.

Referenced by GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellPosition(), GetCellTime(), and SetCellEFraction().

Member Data Documentation

Double32_t* AliAODCaloCells::fAmplitude
protected
Double32_t* AliAODCaloCells::fEFraction
protected

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

Definition at line 92 of file AliAODCaloCells.h.

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

Bool_t* AliAODCaloCells::fHGLG
protected

If Cell is High Gain or Low Gain.

Definition at line 80 of file AliAODCaloCells.h.

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

Bool_t AliAODCaloCells::fIsSorted
protected
Int_t* AliAODCaloCells::fMCLabel
protected

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

Definition at line 95 of file AliAODCaloCells.h.

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

Double32_t* AliAODCaloCells::fTime
protected
Char_t AliAODCaloCells::fType
protected

Cell type.

Definition at line 99 of file AliAODCaloCells.h.

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


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