AliRoot Core  edcc906 (edcc906)
AliEMCALDigit Class Reference

EMCal digits object. More...

#include <AliEMCALDigit.h>

Inheritance diagram for AliEMCALDigit:

Public Types

enum  digitType {
  kUnknown =-1, kHG =0, kLG =1, kLGnoHG =2,
  kTrigger =3, kEmbedded = 4
}
 

Public Member Functions

 AliEMCALDigit ()
 Default Constructor. More...
 
 AliEMCALDigit (Int_t primary, Int_t iparent, Int_t id, Float_t digEnergy, Float_t time, Int_t type, Int_t index=-1, Float_t chi2=0, Int_t ndf=0, Float_t dE=0)
 
 AliEMCALDigit (const AliEMCALDigit &digit)
 Copy constructor. More...
 
virtual ~AliEMCALDigit ()
 
Bool_t operator== (const AliEMCALDigit &rValue) const
 Two digits are equal if they have the same Id. More...
 
AliEMCALDigit operator+ (const AliEMCALDigit &rValue)
 
AliEMCALDigit operator* (Float_t factor)
 Multiplies the amplitude by a factor. More...
 
AliEMCALDigitoperator= (const AliEMCALDigit &digit)
 Assignment operator. More...
 
void Clear (Option_t *)
 
Int_t Compare (const TObject *obj) const
 
Float_t GetAmplitude () const
 
Float_t GetEta () const
 
Int_t GetNprimary () const
 
Int_t GetPrimary (Int_t index) const
 
Float_t GetDEPrimary (Int_t index) const
 
Int_t GetNiparent () const
 
Int_t GetIparent (Int_t index) const
 
Float_t GetDEParent (Int_t index) const
 
Float_t GetPhi () const
 
Float_t GetTime (void) const
 
Float_t GetTimeR (void) const
 
Float_t GetChi2 (void) const
 
Int_t GetNDF (void) const
 
Bool_t IsSortable () const
 
Int_t GetType () const
 
void SetAmp (Int_t amp)
 
void SetAmplitude (Float_t amp)
 
void SetId (Int_t idt)
 
void SetTime (Float_t time)
 
void SetTimeR (Float_t time)
 
void SetChi2 (Float_t chi)
 
void SetNDF (Int_t ndf)
 
void SetType (Int_t t)
 
void ShiftPrimary (Int_t shift)
 Shifts primary number to BIG offset, to separate primary in different TreeK. More...
 
Int_t GetNALTROSamplesLG () const
 
Bool_t GetALTROSampleLG (const Int_t iSample, Int_t &timeBin, Int_t &amp) const
 
Int_t GetNALTROSamplesHG () const
 
Bool_t GetALTROSampleHG (const Int_t iSample, Int_t &timeBin, Int_t &amp) const
 
Int_t GetNFALTROSamples () const
 
Bool_t GetFALTROSample (const Int_t iSample, Int_t &timeBin, Int_t &amp) const
 
void SetALTROSamplesHG (const Int_t nSamplesHG, Int_t *samplesHG)
 Set array of ALTRO samples, High Gain. More...
 
void SetALTROSamplesLG (const Int_t nSamplesLG, Int_t *samplesLG)
 Set array of ALTRO samples, Low Gain or FALTRO. More...
 
void SetFALTROSamples (const Int_t nSamples, Int_t *samples)
 
void SetListOfPrimaries (Int_t npri, Int_t *prilist, Float_t *edepList)
 
void SetListOfParents (Int_t npar, Int_t *parlist, Float_t *edepList)
 
void SetCalibAmp (Float_t amp)
 
Double_t GetCalibAmp () const
 
void Print (const Option_t *) const
 Dump digit info. More...
 
- Public Member Functions inherited from AliDigitNew
 AliDigitNew ()
 
 ~AliDigitNew ()
 
Int_t GetAmp () const
 
Int_t GetId () const
 
Int_t GetIndexInList () const
 
void SetIndexInList (Int_t val)
 

Private Attributes

Float_t fAmpFloat
 Cell amplitude, float. More...
 
Int_t fNSamples
 Number of time samples, Low Gain for ALTRO, used also for FALTRO. More...
 
Int_t * fSamples
 List of time bin constents, Low Gain for ALTRO, used also for FALTRO. More...
 
Int_t fNSamplesHG
 Number of time samples, High Gain for ALTRO. More...
 
Int_t * fSamplesHG
 List of time bin constents, High Gain for ALTRO, used also for FALTRO. More...
 
Int_t fNprimary
 Number of primaries. More...
 
Int_t fNMaxPrimary
 Max Number of primaries. More...
 
Int_t * fPrimary
 Array of primary labels. More...
 
Float_t * fDEPrimary
 Array of primary energy contributions. More...
 
Int_t fNiparent
 Number of initial parents. More...
 
Int_t fNMaxiparent
 Max Number of parents. More...
 
Int_t * fIparent
 Array of parents labels. More...
 
Float_t * fDEParent
 Array of parent energy contributions. More...
 
Int_t fMaxIter
 Number to Increment Maxiparent, and MaxPrimary if default is not sufficient. More...
 
Float_t fTime
 Calculated time. More...
 
Float_t fTimeR
 Earliest time: to be used by Digits2Raw. More...
 
Float_t fChi2
 Fit quality parameter, chi square. More...
 
Int_t fNDF
 Fit quality parameter, number of Degrees of Freedom. More...
 
Int_t fDigitType
 This is a trigger digit(0), HG (1) or LG (3) More...
 
Float_t fAmpCalib
 Calibrated energy. More...
 

Friends

ostream & operator<< (ostream &, const AliEMCALDigit &)
 Prints the data of the digit. More...
 

Additional Inherited Members

- Protected Attributes inherited from AliDigitNew
Int_t fAmp
 
Int_t fId
 
Int_t fIndexInList
 

Detailed Description

EMCal digits object.

A Digit is the sum of the energy lost in an EMCAL Tower It also stores information on Primary, and enterring particle tracknumbers Digits are created using AliEMCALSDigitizer, followed by AliEMCALDigitizer. Based on : AliPHOSDigit

Author
Sahal Yacoob (LBL)
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-IN2P3-CNRS

Definition at line 30 of file AliEMCALDigit.h.

Member Enumeration Documentation

Enumerator
kUnknown 
kHG 
kLG 
kLGnoHG 
kTrigger 
kEmbedded 

Definition at line 51 of file AliEMCALDigit.h.

Constructor & Destructor Documentation

AliEMCALDigit::AliEMCALDigit ( )

Default Constructor.

Definition at line 36 of file AliEMCALDigit.cxx.

AliEMCALDigit::AliEMCALDigit ( Int_t  primary,
Int_t  iparent,
Int_t  id,
Float_t  digEnergy,
Float_t  time,
Int_t  type,
Int_t  index = -1,
Float_t  chi2 = 0,
Int_t  ndf = 0,
Float_t  dE = 0 
)

Constructor, initialize most of parameters

Parameters
primarylabel of primary particle
iparentlabel of parent
idcell absolute ID
digEnergydigit energy
timedigit time
typeTrigger, High Gain, Low Gain
indexcheck
chi2fit chi2
ndffit ndf
dEprimary/parent deposited energy

Definition at line 92 of file AliEMCALDigit.cxx.

AliEMCALDigit::AliEMCALDigit ( const AliEMCALDigit digit)

Copy constructor.

Definition at line 166 of file AliEMCALDigit.cxx.

AliEMCALDigit::~AliEMCALDigit ( )
virtual

Destructor Delete arrays if any

Definition at line 244 of file AliEMCALDigit.cxx.

Member Function Documentation

void AliEMCALDigit::Clear ( Option_t *  )

Clear, needed for TClonesArray Delete arrays if any

Definition at line 258 of file AliEMCALDigit.cxx.

Int_t AliEMCALDigit::Compare ( const TObject *  obj) const
inline

Compares two digits with respect to its Id to sort according increasing Id

Definition at line 175 of file AliEMCALDigit.h.

Bool_t AliEMCALDigit::GetALTROSampleHG ( const Int_t  iSample,
Int_t &  timeBin,
Int_t &  amp 
) const

Get High Gain ALTRO sample in time bin iSample

Parameters
iSamplesample bin number
timeBintime bin
ampamplitude
Returns
true if trigger digit and good sample bin

Definition at line 368 of file AliEMCALDigit.cxx.

Referenced by GetNALTROSamplesHG(), and Print().

Bool_t AliEMCALDigit::GetALTROSampleLG ( const Int_t  iSample,
Int_t &  timeBin,
Int_t &  amp 
) const

Get Low Gain ALTRO sample in time bin iSample

Parameters
iSamplesample bin number
timeBintime bin
ampamplitude
Returns
true if trigger digit and good sample bin

Definition at line 325 of file AliEMCALDigit.cxx.

Referenced by GetNALTROSamplesLG(), and Print().

Float_t AliEMCALDigit::GetChi2 ( void  ) const
inline

Definition at line 66 of file AliEMCALDigit.h.

Referenced by AliEMCALRawUtils::TrimDigits().

Float_t AliEMCALDigit::GetDEParent ( Int_t  index) const
Returns
the parent particle energy contribution given its index in the list

Definition at line 414 of file AliEMCALDigit.cxx.

Referenced by AliEMCALRecPoint::EvalParents(), AliEMCALReconstructor::FillESD(), GetNiparent(), and TestEMCALDigit().

Float_t AliEMCALDigit::GetDEPrimary ( Int_t  index) const
Returns
the primary particle energy contribution given its index in the list

Definition at line 392 of file AliEMCALDigit.cxx.

Referenced by AliEMCALRecPoint::EvalPrimaries(), GetNprimary(), and TestEMCALDigit().

Float_t AliEMCALDigit::GetEta ( ) const
Returns
pseudorapidity for this digit

Definition at line 272 of file AliEMCALDigit.cxx.

Referenced by GetAmplitude().

Bool_t AliEMCALDigit::GetFALTROSample ( const Int_t  iSample,
Int_t &  timeBin,
Int_t &  amp 
) const

Get FALTRO sample in time bin iSample

Parameters
iSamplesample bin number
timeBintime bin
ampamplitude
Returns
true if trigger digit and good sample bin

Definition at line 306 of file AliEMCALDigit.cxx.

Referenced by GetNFALTROSamples(), and Print().

Int_t AliEMCALDigit::GetIparent ( Int_t  index) const
Returns
the primary particle number given its index in the list

Definition at line 403 of file AliEMCALDigit.cxx.

Referenced by AliEMCALRecPoint::EvalParents(), AliEMCALReconstructor::FillESD(), GetNiparent(), and TestEMCALDigit().

Int_t AliEMCALDigit::GetNALTROSamplesHG ( ) const
inline

Definition at line 88 of file AliEMCALDigit.h.

Referenced by Print().

Int_t AliEMCALDigit::GetNALTROSamplesLG ( ) const
inline

Definition at line 86 of file AliEMCALDigit.h.

Referenced by Print().

Int_t AliEMCALDigit::GetNDF ( void  ) const
inline

Definition at line 67 of file AliEMCALDigit.h.

Int_t AliEMCALDigit::GetNFALTROSamples ( ) const
inline

Definition at line 92 of file AliEMCALDigit.h.

Referenced by Print().

Int_t AliEMCALDigit::GetNiparent ( ) const
inline
Int_t AliEMCALDigit::GetNprimary ( ) const
inline
Float_t AliEMCALDigit::GetPhi ( ) const
Returns
azimuthal angle for this digit

Definition at line 286 of file AliEMCALDigit.cxx.

Referenced by GetNiparent().

Int_t AliEMCALDigit::GetPrimary ( Int_t  index) const
Returns
the primary particle number given its index in the list

Definition at line 381 of file AliEMCALDigit.cxx.

Referenced by AliEMCALRecPoint::EvalPrimaries(), GetNprimary(), AliEMCALDigitizer::PrintDigits(), AliEMCALSDigitizer::PrintSDigits(), and TestEMCALDigit().

Float_t AliEMCALDigit::GetTimeR ( void  ) const
inline

Definition at line 65 of file AliEMCALDigit.h.

Int_t AliEMCALDigit::GetType ( ) const
inline
Bool_t AliEMCALDigit::IsSortable ( ) const
inline

Definition at line 68 of file AliEMCALDigit.h.

AliEMCALDigit AliEMCALDigit::operator* ( Float_t  factor)

Multiplies the amplitude by a factor.

Definition at line 614 of file AliEMCALDigit.cxx.

AliEMCALDigit AliEMCALDigit::operator+ ( const AliEMCALDigit digit)

Adds the amplitude of digits and completes the list of primary particles if amplitude is larger than

Definition at line 523 of file AliEMCALDigit.cxx.

AliEMCALDigit & AliEMCALDigit::operator= ( const AliEMCALDigit digit)

Assignment operator.

Definition at line 438 of file AliEMCALDigit.cxx.

Bool_t AliEMCALDigit::operator== ( const AliEMCALDigit rValue) const

Two digits are equal if they have the same Id.

Definition at line 511 of file AliEMCALDigit.cxx.

void AliEMCALDigit::Print ( const Option_t *  ) const

Dump digit info.

Definition at line 655 of file AliEMCALDigit.cxx.

Referenced by GetCalibAmp().

void AliEMCALDigit::SetALTROSamplesHG ( const Int_t  nSamplesHG,
Int_t *  samplesHG 
)

Set array of ALTRO samples, High Gain.

Definition at line 350 of file AliEMCALDigit.cxx.

Referenced by GetNFALTROSamples().

void AliEMCALDigit::SetALTROSamplesLG ( const Int_t  nSamplesLG,
Int_t *  samplesLG 
)

Set array of ALTRO samples, Low Gain or FALTRO.

Definition at line 338 of file AliEMCALDigit.cxx.

Referenced by GetNFALTROSamples(), and SetFALTROSamples().

void AliEMCALDigit::SetAmp ( Int_t  amp)
inline

Definition at line 71 of file AliEMCALDigit.h.

void AliEMCALDigit::SetAmplitude ( Float_t  amp)
inline
void AliEMCALDigit::SetChi2 ( Float_t  chi)
inline

Definition at line 76 of file AliEMCALDigit.h.

void AliEMCALDigit::SetFALTROSamples ( const Int_t  nSamples,
Int_t *  samples 
)
inline

Definition at line 97 of file AliEMCALDigit.h.

void AliEMCALDigit::SetId ( Int_t  idt)
inline
void AliEMCALDigit::SetListOfParents ( Int_t  npar,
Int_t *  parlist,
Float_t *  edepList 
)

Set the list of primary particles and energy deposition Not used in reconstruction/simulation, but in analysis for reclusterization.

Parameters
nparnumber of parents
parlistlist of parent index
edepListlist of parent deposited energy

Definition at line 732 of file AliEMCALDigit.cxx.

Referenced by SetFALTROSamples().

void AliEMCALDigit::SetListOfPrimaries ( Int_t  npri,
Int_t *  prilist,
Float_t *  edepList 
)

Set the list of primary particles and energy deposition Not used in reconstruction/simulation, add here just in case used in analysis

Parameters
nprinumber of primaries
prilistlist of primary index
edepListlist of primary deposited energy

Definition at line 701 of file AliEMCALDigit.cxx.

Referenced by SetFALTROSamples().

void AliEMCALDigit::SetNDF ( Int_t  ndf)
inline

Definition at line 77 of file AliEMCALDigit.h.

void AliEMCALDigit::SetTimeR ( Float_t  time)
inline

Definition at line 75 of file AliEMCALDigit.h.

Referenced by AliEMCALAfterBurnerUF::UnfoldClusters().

void AliEMCALDigit::SetType ( Int_t  t)
inline
void AliEMCALDigit::ShiftPrimary ( Int_t  shift)

Shifts primary number to BIG offset, to separate primary in different TreeK.

Definition at line 425 of file AliEMCALDigit.cxx.

Referenced by AliEMCALDigitizer::Digitize(), and SetType().

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const AliEMCALDigit digit 
)
friend

Prints the data of the digit.

Definition at line 636 of file AliEMCALDigit.cxx.

Member Data Documentation

Float_t AliEMCALDigit::fAmpCalib
private

Calibrated energy.

Definition at line 161 of file AliEMCALDigit.h.

Referenced by GetCalibAmp(), operator=(), and SetCalibAmp().

Float_t AliEMCALDigit::fAmpFloat
private

Cell amplitude, float.

Definition at line 117 of file AliEMCALDigit.h.

Referenced by GetAmplitude(), operator*(), operator+(), operator=(), Print(), and SetAmplitude().

Float_t AliEMCALDigit::fChi2
private

Fit quality parameter, chi square.

Definition at line 155 of file AliEMCALDigit.h.

Referenced by GetChi2(), operator=(), Print(), and SetChi2().

Float_t* AliEMCALDigit::fDEParent
private

Array of parent energy contributions.

Definition at line 147 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), Clear(), GetDEParent(), operator*(), operator+(), operator<<(), operator=(), SetListOfParents(), and ~AliEMCALDigit().

Float_t* AliEMCALDigit::fDEPrimary
private

Array of primary energy contributions.

Definition at line 137 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), Clear(), GetDEPrimary(), operator*(), operator+(), operator<<(), operator=(), SetListOfPrimaries(), and ~AliEMCALDigit().

Int_t AliEMCALDigit::fDigitType
private
Int_t* AliEMCALDigit::fIparent
private
Int_t AliEMCALDigit::fMaxIter
private

Number to Increment Maxiparent, and MaxPrimary if default is not sufficient.

Definition at line 149 of file AliEMCALDigit.h.

Referenced by operator=().

Int_t AliEMCALDigit::fNDF
private

Fit quality parameter, number of Degrees of Freedom.

Definition at line 157 of file AliEMCALDigit.h.

Referenced by GetNDF(), operator=(), Print(), and SetNDF().

Int_t AliEMCALDigit::fNiparent
private

Number of initial parents.

Definition at line 139 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), GetDEParent(), GetNiparent(), operator*(), operator+(), operator<<(), operator=(), SetListOfParents(), and ShiftPrimary().

Int_t AliEMCALDigit::fNMaxiparent
private

Max Number of parents.

Definition at line 141 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), operator+(), and operator=().

Int_t AliEMCALDigit::fNMaxPrimary
private

Max Number of primaries.

Definition at line 131 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), operator+(), and operator=().

Int_t AliEMCALDigit::fNprimary
private
Int_t AliEMCALDigit::fNSamples
private

Number of time samples, Low Gain for ALTRO, used also for FALTRO.

Definition at line 119 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), GetALTROSampleLG(), GetFALTROSample(), GetNALTROSamplesLG(), GetNFALTROSamples(), operator*(), operator+(), operator=(), Print(), and SetALTROSamplesLG().

Int_t AliEMCALDigit::fNSamplesHG
private

Number of time samples, High Gain for ALTRO.

Definition at line 124 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), GetALTROSampleHG(), GetNALTROSamplesHG(), operator*(), operator+(), operator=(), and SetALTROSamplesHG().

Int_t* AliEMCALDigit::fPrimary
private
Int_t* AliEMCALDigit::fSamples
private

List of time bin constents, Low Gain for ALTRO, used also for FALTRO.

Definition at line 122 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), Clear(), GetALTROSampleLG(), GetFALTROSample(), operator*(), operator+(), operator=(), SetALTROSamplesLG(), and ~AliEMCALDigit().

Int_t* AliEMCALDigit::fSamplesHG
private

List of time bin constents, High Gain for ALTRO, used also for FALTRO.

Definition at line 127 of file AliEMCALDigit.h.

Referenced by AliEMCALDigit(), Clear(), GetALTROSampleHG(), operator*(), operator+(), operator=(), SetALTROSamplesHG(), and ~AliEMCALDigit().

Float_t AliEMCALDigit::fTime
private

Calculated time.

Definition at line 151 of file AliEMCALDigit.h.

Referenced by GetTime(), operator+(), operator<<(), operator=(), Print(), and SetTime().

Float_t AliEMCALDigit::fTimeR
private

Earliest time: to be used by Digits2Raw.

Definition at line 153 of file AliEMCALDigit.h.

Referenced by GetTimeR(), operator+(), operator=(), and SetTimeR().


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