ROOT logo
AliRoot » TRD » AliTRDCalibraVector

class AliTRDCalibraVector: public TObject


AliTRDCalibraVector

This class is for the vector method of the TRD calibration.

Author:
R. Bailhache (R.Bailhache@gsi.de)


Function Members (Methods)

public:
AliTRDCalibraVector()
AliTRDCalibraVector(const AliTRDCalibraVector& c)
virtual~AliTRDCalibraVector()
voidTObject::AbstractMethod(const char* method) const
Bool_tAdd(AliTRDCalibraVector* calvector)
AliTRDCalibraVector*AddStatsPerDetectorCH()
AliTRDCalibraVector*AddStatsPerDetectorPH()
AliTRDCalibraVector*AddStatsPerDetectorPRF()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
TH1F*ConvertVectorCHHisto(Int_t det, Int_t group, const Char_t* name)
TGraphErrors*ConvertVectorPHTGraphErrors(Int_t det, Int_t group, const Char_t* name)
TGraphErrors*ConvertVectorPRFTGraphErrors(Int_t det, Int_t group, const Char_t* name)
virtual voidTObject::Copy(TObject& object) const
TH1F*CorrectTheError(const TGraphErrors* hist, Int_t& nbEntries)
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
Bool_tFillVectorCH(Int_t det, Int_t group, Int_t bin, Int_t entries)
Bool_tFillVectorPH(Int_t det, Int_t group, Int_t bin, Int_t entries, Float_t mean, Float_t square)
Bool_tFillVectorPRF(Int_t det, Int_t group, Int_t bin, Int_t entries, Float_t mean, Float_t square)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Bool_tFindTheMaxEntries(Int_t i, Int_t& detectormax, Int_t& groupmax)
TObject*GetCHEntries(Int_t det, Bool_t force = kFALSE)
Short_tGetDetCha0(Int_t i) const
Short_tGetDetCha2(Int_t i) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
TStringGetNameCH() const
TStringGetNamePH() const
TStringGetNamePRF() const
Int_tGetNbGroupPRF() const
Int_tGetNrphi(Int_t i) const
Short_tGetNumberBinCharge() const
Short_tGetNumberBinPRF() const
Int_tGetNz(Int_t i) const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObject*GetPHEntries(Int_t det, Bool_t force = kFALSE)
TObject*GetPHMean(Int_t det, Bool_t force = kFALSE)
TObject*GetPHSquares(Int_t det, Bool_t force = kFALSE)
TObject*GetPRFEntries(Int_t det, Bool_t force = kFALSE)
TObject*GetPRFMean(Int_t det, Bool_t force = kFALSE)
Float_tGetPRFRange() const
TObject*GetPRFSquares(Int_t det, Bool_t force = kFALSE)
Int_tGetTimeMax() const
virtual const char*TObject::GetTitle() const
Int_tGetTotalNumberOfBinsInDetector(Int_t det, Int_t i, Int_t nbBin) 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_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Long64_tMerge(const TCollection* list)
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)
AliTRDCalibraVector&operator=(const AliTRDCalibraVector& source)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") 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 = "")
Int_tSearchBin(Float_t value, Int_t i) const
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDetCha0(Int_t i, Short_t total)
voidSetDetCha2(Int_t i, Short_t total)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetNbGroupPRF(Int_t nbGroup)
voidSetNumberBinCharge(Short_t numberbincharge)
voidSetNumberBinPRF(Short_t numberbinprf)
voidSetNzNrphi(Int_t i, Int_t nz, Int_t nrphi)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPRFRange(Float_t prfrange)
voidSetTimeMax(Int_t timemax)
virtual voidTObject::SetUniqueID(UInt_t uid)
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
voidTestInit(Int_t i, Int_t detmax)
Bool_tUpdateVectorCH(Int_t det, Int_t group, Float_t value)
Bool_tUpdateVectorPH(Int_t det, Int_t group, Int_t time, Float_t value)
Bool_tUpdateVectorPRF(Int_t det, Int_t group, Float_t x, Float_t y)
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
AliTRDEntriesInfo*GetEntriesCH(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
AliTRDEntriesInfo*GetEntriesPH(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
AliTRDEntriesInfo*GetEntriesPRF(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
AliTRDPhInfo*GetMeanSquaresPH(Int_t det, AliTRDPhInfo** array, Bool_t force)
AliTRDPrfInfo*GetMeanSquaresPRF(Int_t det, AliTRDPrfInfo** array, Bool_t force)
voidTObject::MakeZombie()

Data Members

protected:
AliTRDEntriesInfo*fCHEntries[540]CH entries
AliTRDCalibraVector*fCalVector! AliTRDCalibraVector
Short_tfDetCha0[3]Number of XBins for chamber != 2
Short_tfDetCha2[3]Number of Xbins for chamber 2
Int_tfDetectorCH! Current detector
Int_tfDetectorPH! Current detector
Int_tfDetectorPRF! Current detector
TGraphErrors*fGraph! TGraphError
TH1F*fHisto! Histo to be fitted
UChar_tfModeCHCalibration mode
UChar_tfModePHCalibration mode
UChar_tfModePRFCalibration mode
UChar_tfNbGroupPRFNb of group PRD
Short_tfNumberBinChargeNumber of bins for the gain factor
Short_tfNumberBinPRFNumber of bin for the PRF
AliTRDEntriesInfo*fPHEntries[540]PH entries
AliTRDPhInfo*fPHMean[540]PH Mean
AliTRDPhInfo*fPHSquares[540]PH Squares
AliTRDEntriesInfo*fPRFEntries[540]PRF entries
AliTRDPrfInfo*fPRFMean[540]PRF Mean
Float_tfPRFRangeRange PRF
AliTRDPrfInfo*fPRFSquares[540]PRF Squares
Bool_tfStopFillCH! To know if we stop to fill
Int_tfTimeMaxNumber of time bins

Class Charts

Inheritance Chart:
TObject
AliTRDCalibraVector

Function documentation

AliTRDCalibraVector()
 Default constructor

AliTRDCalibraVector(const AliTRDCalibraVector& c)
 Copy constructor

~AliTRDCalibraVector()
 AliTRDCalibraVector destructor

Long64_t Merge(const TCollection* list)
 Merge list of objects (needed by PROOF)
void TestInit(Int_t i, Int_t detmax)
 Init to see the size

Int_t SearchBin(Float_t value, Int_t i) const
 Search the bin

Bool_t UpdateVectorCH(Int_t det, Int_t group, Float_t value)
 Fill the vector CH

Bool_t UpdateVectorPRF(Int_t det, Int_t group, Float_t x, Float_t y)
 Fill the vector PRF

Bool_t UpdateVectorPH(Int_t det, Int_t group, Int_t time, Float_t value)
 Fill the vector PH

Bool_t FillVectorCH(Int_t det, Int_t group, Int_t bin, Int_t entries)
 Fill the vector CH

Bool_t FillVectorPRF(Int_t det, Int_t group, Int_t bin, Int_t entries, Float_t mean, Float_t square)
 Fill the vector PRF

Bool_t FillVectorPH(Int_t det, Int_t group, Int_t bin, Int_t entries, Float_t mean, Float_t square)
 Fill the vector PH

Bool_t Add(AliTRDCalibraVector* calvector)
 Add a other AliTRCalibraVector to this one

AliTRDCalibraVector * AddStatsPerDetectorCH()
 Create a AliTRDCalibraVector detector wise

AliTRDCalibraVector * AddStatsPerDetectorPH()
 Create a AliTRDCalibraVector detector wise

AliTRDCalibraVector * AddStatsPerDetectorPRF()
 Create a AliTRDCalibraVector detector wise

Bool_t FindTheMaxEntries(Int_t i, Int_t& detectormax, Int_t& groupmax)
 Find detectormax and groupmax with the biggest number of entries

TGraphErrors * ConvertVectorPHTGraphErrors(Int_t det, Int_t group, const Char_t* name)
 Convert the fVectorPHMean, fVectorPHSquares and fVectorPHEntries in TGraphErrors

TGraphErrors * ConvertVectorPRFTGraphErrors(Int_t det, Int_t group, const Char_t* name)
 Convert the fVectorPRFMean, fVectorPRFSquares and fVectorPRFEntries in TGraphErrors

TH1F * CorrectTheError(const TGraphErrors* hist, Int_t& nbEntries)
 In the case of the vectors method the trees contains TGraphErrors for PH and PRF
 to be able to add them after
 We convert it to a TH1F to be able to applied the same fit function method
 After having called this function you can not add the statistics anymore

TH1F * ConvertVectorCHHisto(Int_t det, Int_t group, const Char_t* name)
 Convert the fVectorCHEntries in TH1F

TObject* GetPHEntries(Int_t det, Bool_t force = kFALSE)
 return pointer to Carge ROC Calibration
 if force is true create a new histogram if it doesn't exist allready

TObject* GetPRFEntries(Int_t det, Bool_t force = kFALSE)
 return pointer to Carge ROC Calibration
 if force is true create a new histogram if it doesn't exist allready

TObject* GetCHEntries(Int_t det, Bool_t force = kFALSE)
 return pointer to Carge ROC Calibration
 if force is true create a new histogram if it doesn't exist allready

TObject* GetPHMean(Int_t det, Bool_t force = kFALSE)
 return pointer to ROC Calibration
 if force is true create a new array

TObject* GetPHSquares(Int_t det, Bool_t force = kFALSE)
 return pointer to ROC Calibration
 if force is true create a new array

TObject* GetPRFMean(Int_t det, Bool_t force = kFALSE)
 return pointer to ROC Calibration
 if force is true create a new array

TObject* GetPRFSquares(Int_t det, Bool_t force = kFALSE)
 return pointer to ROC Calibration
 if force is true create a new array

AliTRDEntriesInfo* GetEntriesCH(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
 return pointer to UShort_t array Entries
 if force is true create a new UShort_t array if it doesn't exist allready

AliTRDEntriesInfo* GetEntriesPRF(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
 return pointer to UShort_t array Entries
 if force is true create a new UShort_t array if it doesn't exist allready

AliTRDEntriesInfo * GetEntriesPH(Int_t det, AliTRDEntriesInfo** array, Bool_t force)
 return pointer to UShort_t array Entries
 if force is true create a new UShort_t array if it doesn't exist allready

AliTRDPhInfo* GetMeanSquaresPH(Int_t det, AliTRDPhInfo** array, Bool_t force)
 return pointer to Float_t array Mean or Squares
 if force is true create a new Float_t array if it doesn't exist allready

AliTRDPrfInfo* GetMeanSquaresPRF(Int_t det, AliTRDPrfInfo** array, Bool_t force)
 return pointer to Float_t array Mean or Squares
 if force is true create a new array if it doesn't exist allready

Int_t GetTotalNumberOfBinsInDetector(Int_t det, Int_t i, Int_t nbBin) const
 Get the total number of bins (Nb of bins*Nb of groups) in the detector det for the group i

Int_t GetNz(Int_t i) const
 Get Nz the granularity in row

Int_t GetNrphi(Int_t i) const
 Get Nrphi the granularity in col

TString GetNamePH() const
 Get the name of PH to know the granularity

TString GetNameCH() const
 Get the name of CH to know the granularity

TString GetNamePRF() const
 Get the name of PRF to know the granularity

void SetNzNrphi(Int_t i, Int_t nz, Int_t nrphi)
 Set NzNrphi for the granularity

void SetNumberBinCharge(Short_t numberbincharge)
 Set and Get methods

{ fNumberBinCharge = numberbincharge; }
void SetNumberBinPRF(Short_t numberbinprf)
{ fNumberBinPRF = numberbinprf; }
void SetTimeMax(Int_t timemax)
{ fTimeMax = timemax; }
void SetPRFRange(Float_t prfrange)
{ fPRFRange = prfrange; }
void SetDetCha0(Int_t i, Short_t total)
{ fDetCha0[i] = total; }
void SetDetCha2(Int_t i, Short_t total)
{ fDetCha2[i] = total; }
void SetNbGroupPRF(Int_t nbGroup)
{ fNbGroupPRF = (UChar_t) nbGroup; }
Short_t GetNumberBinCharge() const
{ return fNumberBinCharge; }
Short_t GetNumberBinPRF() const
{ return fNumberBinPRF; }
Int_t GetTimeMax() const
{ return fTimeMax; }
Float_t GetPRFRange() const
{ return fPRFRange; }
Short_t GetDetCha0(Int_t i) const
{ return fDetCha0[i]; }
Short_t GetDetCha2(Int_t i) const
{ return fDetCha2[i]; }
Int_t GetNbGroupPRF() const
{ return (Int_t)fNbGroupPRF; }