![]() |
AliRoot Core
edcc906 (edcc906)
|
EMCal digits object. More...
#include <AliEMCALDigit.h>
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... | |
AliEMCALDigit & | operator= (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 &) const |
Int_t | GetNALTROSamplesHG () const |
Bool_t | GetALTROSampleHG (const Int_t iSample, Int_t &timeBin, Int_t &) const |
Int_t | GetNFALTROSamples () const |
Bool_t | GetFALTROSample (const Int_t iSample, Int_t &timeBin, Int_t &) 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... | |
![]() | |
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 | |
![]() | |
Int_t | fAmp |
Int_t | fId |
Int_t | fIndexInList |
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
Definition at line 30 of file AliEMCALDigit.h.
Enumerator | |
---|---|
kUnknown | |
kHG | |
kLG | |
kLGnoHG | |
kTrigger | |
kEmbedded |
Definition at line 51 of file AliEMCALDigit.h.
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
primary | label of primary particle |
iparent | label of parent |
id | cell absolute ID |
digEnergy | digit energy |
time | digit time |
type | Trigger, High Gain, Low Gain |
index | check |
chi2 | fit chi2 |
ndf | fit ndf |
dE | primary/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.
|
virtual |
Destructor Delete arrays if any
Definition at line 244 of file AliEMCALDigit.cxx.
void AliEMCALDigit::Clear | ( | Option_t * | ) |
Clear, needed for TClonesArray Delete arrays if any
Definition at line 258 of file AliEMCALDigit.cxx.
|
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
iSample | sample bin number |
timeBin | time bin |
amp | amplitude |
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
iSample | sample bin number |
timeBin | time bin |
amp | amplitude |
Definition at line 325 of file AliEMCALDigit.cxx.
Referenced by GetNALTROSamplesLG(), and Print().
|
inline |
Definition at line 55 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::AddDigit(), AliEMCALDigitizer::Digitize(), AliEMCALRawUtils::Digits2Raw(), AliEMCALReconstructor::FillESD(), AliEMCALClusterizerv2::MakeClusters(), AliEMCALClusterizerv1::MakeClusters(), AliEMCALClusterizerFixedWindow::MakeClusters(), AliEMCALClusterizerNxN::MakeClusters(), AliEMCALQADataMakerRec::MakeDigits(), AliEMCALDigitizer::PrintDigits(), AliEMCALSDigitizer::PrintSDigits(), AliEMCALAfterBurnerUF::RecPoints2Clusters(), TestEMCALData(), TestEMCALDigit(), and TestEMCALSDigit().
|
inline |
Definition at line 111 of file AliEMCALDigit.h.
Referenced by AliEMCALClusterizerv2::AreNeighbours(), AliEMCALClusterizerNxN::AreNeighbours(), AliEMCALClusterizerv2::MakeClusters(), AliEMCALClusterizerv1::MakeClusters(), AliEMCALClusterizerFixedWindow::MakeClusters(), and AliEMCALClusterizerNxN::MakeClusters().
|
inline |
Definition at line 66 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::TrimDigits().
Float_t AliEMCALDigit::GetDEParent | ( | Int_t | index | ) | const |
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 |
Definition at line 392 of file AliEMCALDigit.cxx.
Referenced by AliEMCALRecPoint::EvalPrimaries(), GetNprimary(), and TestEMCALDigit().
Float_t AliEMCALDigit::GetEta | ( | ) | const |
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
iSample | sample bin number |
timeBin | time bin |
amp | amplitude |
Definition at line 306 of file AliEMCALDigit.cxx.
Referenced by GetNFALTROSamples(), and Print().
Int_t AliEMCALDigit::GetIparent | ( | Int_t | index | ) | const |
Definition at line 403 of file AliEMCALDigit.cxx.
Referenced by AliEMCALRecPoint::EvalParents(), AliEMCALReconstructor::FillESD(), GetNiparent(), and TestEMCALDigit().
|
inline |
Definition at line 88 of file AliEMCALDigit.h.
Referenced by Print().
|
inline |
Definition at line 86 of file AliEMCALDigit.h.
Referenced by Print().
|
inline |
Definition at line 67 of file AliEMCALDigit.h.
|
inline |
Definition at line 92 of file AliEMCALDigit.h.
Referenced by Print().
|
inline |
Definition at line 60 of file AliEMCALDigit.h.
Referenced by AliEMCALRecPoint::EvalParents(), AliEMCALReconstructor::FillESD(), and TestEMCALDigit().
|
inline |
Definition at line 57 of file AliEMCALDigit.h.
Referenced by AliEMCALRecPoint::EvalPrimaries(), AliEMCALDigitizer::PrintDigits(), AliEMCALSDigitizer::PrintSDigits(), and TestEMCALDigit().
Float_t AliEMCALDigit::GetPhi | ( | ) | const |
Definition at line 286 of file AliEMCALDigit.cxx.
Referenced by GetNiparent().
Int_t AliEMCALDigit::GetPrimary | ( | Int_t | index | ) | const |
Definition at line 381 of file AliEMCALDigit.cxx.
Referenced by AliEMCALRecPoint::EvalPrimaries(), GetNprimary(), AliEMCALDigitizer::PrintDigits(), AliEMCALSDigitizer::PrintSDigits(), and TestEMCALDigit().
|
inline |
Definition at line 64 of file AliEMCALDigit.h.
Referenced by AliEMCALDigitizer::Digitize(), AliEMCALRawUtils::Digits2Raw(), AliEMCALReconstructor::FillESD(), AliEMCALClusterizerv2::MakeClusters(), AliEMCALClusterizerv1::MakeClusters(), AliEMCALClusterizerFixedWindow::MakeClusters(), AliEMCALClusterizerNxN::MakeClusters(), AliEMCALDigitizer::PrintDigits(), AliEMCALSDigitizer::PrintSDigits(), TestEMCALDigit(), TestEMCALSDigit(), and AliEMCALRawUtils::TrimDigits().
|
inline |
Definition at line 65 of file AliEMCALDigit.h.
|
inline |
Definition at line 69 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::AddDigit(), AliEMCALDigitizer::Digitize(), AliEMCALReconstructor::FillESD(), TestEMCALDigit(), and AliEMCALRawUtils::TrimDigits().
|
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 |
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().
|
inline |
Definition at line 71 of file AliEMCALDigit.h.
|
inline |
Definition at line 72 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::AddDigit(), AliEMCALDigitizer::Digitize(), and AliEMCALAfterBurnerUF::UnfoldClusters().
|
inline |
Definition at line 110 of file AliEMCALDigit.h.
Referenced by AliEMCALClusterizerv2::MakeClusters(), AliEMCALClusterizerv1::MakeClusters(), AliEMCALClusterizerFixedWindow::MakeClusters(), and AliEMCALClusterizerNxN::MakeClusters().
|
inline |
Definition at line 76 of file AliEMCALDigit.h.
|
inline |
Definition at line 97 of file AliEMCALDigit.h.
|
inline |
Definition at line 73 of file AliEMCALDigit.h.
Referenced by AliEMCALDigitizer::Digits2FastOR(), and AliEMCALAfterBurnerUF::UnfoldClusters().
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.
npar | number of parents |
parlist | list of parent index |
edepList | list 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
npri | number of primaries |
prilist | list of primary index |
edepList | list of primary deposited energy |
Definition at line 701 of file AliEMCALDigit.cxx.
Referenced by SetFALTROSamples().
|
inline |
Definition at line 77 of file AliEMCALDigit.h.
|
inline |
Definition at line 74 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::AddDigit(), AliEMCALDigitizer::Digitize(), AliEMCALClusterizerv2::MakeClusters(), AliEMCALClusterizerv1::MakeClusters(), AliEMCALClusterizerFixedWindow::MakeClusters(), AliEMCALClusterizerNxN::MakeClusters(), and AliEMCALAfterBurnerUF::UnfoldClusters().
|
inline |
Definition at line 75 of file AliEMCALDigit.h.
Referenced by AliEMCALAfterBurnerUF::UnfoldClusters().
|
inline |
Definition at line 78 of file AliEMCALDigit.h.
Referenced by AliEMCALRawUtils::AddDigit(), AliEMCALDigitizer::Digitize(), and AliEMCAL::Raw2SDigits().
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().
|
friend |
Prints the data of the digit.
Definition at line 636 of file AliEMCALDigit.cxx.
|
private |
Calibrated energy.
Definition at line 161 of file AliEMCALDigit.h.
Referenced by GetCalibAmp(), operator=(), and SetCalibAmp().
|
private |
Cell amplitude, float.
Definition at line 117 of file AliEMCALDigit.h.
Referenced by GetAmplitude(), operator*(), operator+(), operator=(), Print(), and SetAmplitude().
|
private |
Fit quality parameter, chi square.
Definition at line 155 of file AliEMCALDigit.h.
Referenced by GetChi2(), operator=(), Print(), and SetChi2().
|
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().
|
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().
|
private |
This is a trigger digit(0), HG (1) or LG (3)
Definition at line 159 of file AliEMCALDigit.h.
Referenced by GetALTROSampleHG(), GetALTROSampleLG(), GetFALTROSample(), GetNALTROSamplesHG(), GetNALTROSamplesLG(), GetNFALTROSamples(), GetType(), operator=(), Print(), SetFALTROSamples(), and SetType().
|
private |
Array of parents labels.
Definition at line 144 of file AliEMCALDigit.h.
Referenced by AliEMCALDigit(), Clear(), GetIparent(), operator+(), operator<<(), operator=(), SetListOfParents(), ShiftPrimary(), and ~AliEMCALDigit().
|
private |
Number to Increment Maxiparent, and MaxPrimary if default is not sufficient.
Definition at line 149 of file AliEMCALDigit.h.
Referenced by operator=().
|
private |
Fit quality parameter, number of Degrees of Freedom.
Definition at line 157 of file AliEMCALDigit.h.
Referenced by GetNDF(), operator=(), Print(), and SetNDF().
|
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().
|
private |
Max Number of parents.
Definition at line 141 of file AliEMCALDigit.h.
Referenced by AliEMCALDigit(), operator+(), and operator=().
|
private |
Max Number of primaries.
Definition at line 131 of file AliEMCALDigit.h.
Referenced by AliEMCALDigit(), operator+(), and operator=().
|
private |
Number of primaries.
Definition at line 129 of file AliEMCALDigit.h.
Referenced by AliEMCALDigit(), GetDEPrimary(), GetNprimary(), GetPrimary(), operator*(), operator+(), operator<<(), operator=(), SetListOfPrimaries(), and ShiftPrimary().
|
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().
|
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().
|
private |
Array of primary labels.
Definition at line 134 of file AliEMCALDigit.h.
Referenced by AliEMCALDigit(), Clear(), GetPrimary(), operator+(), operator<<(), operator=(), SetListOfPrimaries(), ShiftPrimary(), and ~AliEMCALDigit().
|
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().
|
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().
|
private |
Calculated time.
Definition at line 151 of file AliEMCALDigit.h.
Referenced by GetTime(), operator+(), operator<<(), operator=(), Print(), and SetTime().
|
private |
Earliest time: to be used by Digits2Raw.
Definition at line 153 of file AliEMCALDigit.h.
Referenced by GetTimeR(), operator+(), operator=(), and SetTimeR().