ROOT logo
AliRoot » EMCAL » AliEMCALDigit

class AliEMCALDigit: public AliDigitNew

  EMCAL digit:
      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

*-- Author: Sahal Yacoob (LBL)
 based on : AliPHOSDigit

Function Members (Methods)

public:
AliEMCALDigit()
AliEMCALDigit(const AliEMCALDigit& digit)
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)
virtual~AliEMCALDigit()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t*)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tCompare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Bool_tGetALTROSampleHG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
Bool_tGetALTROSampleLG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
Int_tAliDigitNew::GetAmp() const
Float_tGetAmplitude() const
Double_tGetCalibAmp() const
Float_tGetChi2() const
Float_tGetDEParent(Int_t index) const
Float_tGetDEPrimary(Int_t index) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Float_tGetEta() const
Bool_tGetFALTROSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
virtual const char*TObject::GetIconName() const
Int_tAliDigitNew::GetId() const
Int_tAliDigitNew::GetIndexInList() const
Int_tGetIparent(Int_t index) const
Int_tGetNALTROSamplesHG() const
Int_tGetNALTROSamplesLG() const
virtual const char*TObject::GetName() const
Int_tGetNDF() const
Int_tGetNFALTROSamples() const
Int_tGetNiparent() const
Int_tGetNprimary() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Float_tGetPhi() const
Int_tGetPrimary(Int_t index) const
Float_tGetTime() const
Float_tGetTimeR() const
virtual const char*TObject::GetTitle() const
Int_tGetType() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliEMCALDigitoperator*(Float_t factor)
AliEMCALDigitoperator+(const AliEMCALDigit& rValue)
AliEMCALDigit&operator=(const AliEMCALDigit& digit)
Bool_toperator==(const AliEMCALDigit& rValue) const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t*) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetALTROSamplesHG(const Int_t nSamplesHG, Int_t* samplesHG)
voidSetALTROSamplesLG(const Int_t nSamplesLG, Int_t* samplesLG)
voidSetAmp(Int_t amp)
voidSetAmplitude(Float_t amp)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCalibAmp(Float_t amp)
voidSetChi2(Float_t chi)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetFALTROSamples(const Int_t nSamples, Int_t* samples)
voidSetId(Int_t idt)
voidAliDigitNew::SetIndexInList(Int_t val)
voidSetNDF(Int_t ndf)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetTime(Float_t time)
voidSetTimeR(Float_t time)
voidSetType(Int_t t)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidShiftPrimary(Int_t shift)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum digitType { kUnknown
kHG
kLG
kLGnoHG
kTrigger
kEmbedded
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tAliDigitNew::fAmpdigitalized energy
Int_tAliDigitNew::fIdabsolute id
Int_tAliDigitNew::fIndexInListthe index of this digit in the list stored in TreeD
private:
Float_tfAmpCalib! Calibrated energy
Float_tfAmpFloatCell amplitude, float
Float_tfChi2Fit Chi aquare
Float_t*fDEParent[fNMaxiparent] Array of parent energy contributions
Float_t*fDEPrimary[fNMaxPrimary] Array of primary energy contributions
Int_tfDigitTypeThis is a trigger digit(0), HG (1) or LG (3)
Int_t*fIparent[fNMaxiparent] Array of parents
Int_tfMaxIterNumber to Increment Maxiparent, and MaxPrimary if default is not sufficient
Int_tfNDFFit Number of Degrees of Freedom
Int_tfNMaxPrimaryMax Number of primaries
Int_tfNMaxiparentMax Number of parents
Int_tfNSamplesNumber of time samples, Low Gain for ALTRO, used also for FALTRO
Int_tfNSamplesHGNumber of time samples, High Gain for ALTRO
Int_tfNiparentNumber of initial parents
Int_tfNprimaryNumber of primaries
Int_t*fPrimary[fNMaxPrimary] Array of primaries
Int_t*fSamples[fNSamples], list of time bin constents, Low Gain for ALTRO, used also for FALTRO
Int_t*fSamplesHG[fNSamples], list of time bin constents, High Gain for ALTRO, used also for FALTRO
Float_tfTimeCalculated time
Float_tfTimeREarliest time: to be used by Digits2Raw

Class Charts

Inheritance Chart:
TObject
AliDigitNew
AliEMCALDigit

Function documentation

AliEMCALDigit()
 default ctor
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)
 ctor with all data
AliEMCALDigit(const AliEMCALDigit& digit)
 copy ctor
 data memebrs of the base class (AliNewDigit)
~AliEMCALDigit()
 Delete array of primaries if any
void Clear(Option_t* )
 Delete array of primaries if any
Int_t Compare(const TObject* obj) const
 Compares two digits with respect to its Id
 to sort according increasing Id
Float_t GetEta() const
return pseudorapidity for this digit
 should be change in EMCALGeometry - 19-nov-04
Float_t GetPhi() const
return phi coordinate of digit
 should be change in EMCALGeometry - 19-nov-04
Bool_t GetFALTROSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
Get FALTRO sample in time bin iSample
Bool_t GetALTROSampleLG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
Get Low Gain ALTRO sample in time bin iSample
void SetALTROSamplesLG(const Int_t nSamplesLG, Int_t* samplesLG)
Set array of ALTRO samples, Low Gain or FALTRO
void SetALTROSamplesHG(const Int_t nSamplesHG, Int_t* samplesHG)
Set array of ALTRO samples, High Gain.
Bool_t GetALTROSampleHG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
Get High Gain ALTRO sample in time bin iSample
Int_t GetPrimary(Int_t index) const
 retrieves the primary particle number given its index in the list
Float_t GetDEPrimary(Int_t index) const
 retrieves the primary particle energy contribution
 given its index in the list
Int_t GetIparent(Int_t index) const
 retrieves the primary particle number given its index in the list
Float_t GetDEParent(Int_t index) const
 retrieves the parent particle energy contribution
 given its index in the list
void ShiftPrimary(Int_t shift)
shifts primary number to BIG offset, to separate primary in different TreeK
AliEMCALDigit& operator=(const AliEMCALDigit& digit)
 assignment operator
Bool_t operator==(const AliEMCALDigit& rValue) const
 Two digits are equal if they have the same Id
AliEMCALDigit operator+(const AliEMCALDigit& rValue)
 Adds the amplitude of digits and completes the list of primary particles
 if amplitude is larger than
AliEMCALDigit operator*(Float_t factor)
 Multiplies the amplitude by a factor
void Print(Option_t* ) const
Float_t GetAmplitude() const
{ if(!fAmp)return fAmpFloat ; else return fAmp ;}
Int_t GetNprimary() const
{ return fNprimary ;}
Int_t GetNiparent() const
{ return fNiparent ;}
Float_t GetTime(void)
{ return fTime ;}
Float_t GetTimeR(void)
{ return fTimeR ;}
Float_t GetChi2(void)
{ return fChi2 ;}
Int_t GetNDF(void)
{ return fNDF ;}
Bool_t IsSortable() const
{ return kTRUE ;}
Int_t GetType() const
{ return fDigitType ;}
void SetAmp(Int_t amp)
{ fAmp = amp ; }
void SetAmplitude(Float_t amp)
{ fAmpFloat = amp ; }
void SetId(Int_t idt)
{ fId = idt ; }
void SetTime(Float_t time)
{ fTime = time ; }
void SetTimeR(Float_t time)
{ fTimeR = time ; }
void SetChi2(Float_t chi)
{ fChi2 = chi ; }
void SetNDF(Int_t ndf)
{ fNDF = ndf ; }
void SetType(Int_t t)
{ fDigitType = t ; }
Int_t GetNALTROSamplesLG() const
Raw time sample
ALTRO
{if(fDigitType==kLG) return fNSamples; else return 0 ; }
Int_t GetNALTROSamplesHG() const
{if(fDigitType==kHG) return fNSamplesHG; else return 0 ; }
Int_t GetNFALTROSamples() const
FALTRO, trigger. Same data members as Low Gain
{if(fDigitType==kTrigger) return fNSamples; else return 0 ; }
void SetFALTROSamples(const Int_t nSamples, Int_t* samples)
{ if(fDigitType==kTrigger) SetALTROSamplesLG(nSamples, samples) ; }
void SetCalibAmp(Float_t amp)
{ fAmpCalib = amp ; }
Double_t GetCalibAmp() const
{ return fAmpCalib ; }