ROOT logo
AliRoot » TRD » AliTRDCalibPadStatus

class AliTRDCalibPadStatus: public TObject


Example: fill pedestal with Gaussian noise

AliTRDCalibPadStatus ped;
ped.TestEvent(numberofevent);

 Method without histo
ped.Analyse();

 Create the histo of the AliTRDCalROC
TH2F * histo2dm = ped.GetCalRocMean(0,kFALSE)->MakeHisto2D();
histo2dm->Scale(10.0);
TH1F * histo1dm = ped.GetCalRocMean(0,kFALSE)->MakeHisto1D();
histo1dm->Scale(10.0);
TH2F * histo2ds = ped.GetCalRocSquares(0,kFALSE)->MakeHisto2D();
histo2ds->Scale(10.0);
TH1F * histo1ds = ped.GetCalRocSquares(0,kFALSE)->MakeHisto1D();
histo1ds->Scale(10.0)

 Draw output
TCanvas* c1 = new TCanvas;
c1->Divide(2,2);
c1->cd(1);
histo2dm->Draw("colz");
c1->cd(2);
histo1dm->Draw();
c1->cd(3);
histo2ds->Draw("colz");
c1->cd(4);
histo1ds->Draw();

 Method with histo
ped.AnalyseHisto();

 Take the histo
TH1F *histo = ped.GetHisto(31);
histo->SetEntries(1);
histo->Draw();

 Authors:
   R. Bailhache (R.Bailhache@gsi.de, rbailhache@ikf.uni-frankfurt.de)
   J. Book (jbook@ikf.uni-frankfurt.de)


Function Members (Methods)

public:
AliTRDCalibPadStatus()
AliTRDCalibPadStatus(const AliTRDCalibPadStatus& ped)
virtual~AliTRDCalibPadStatus()
voidTObject::AbstractMethod(const char* method) const
voidAnalyseHisto()
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
virtual voidTObject::Copy(TObject& object) const
AliTRDCalDet*CreateCalDet() const
AliTRDCalPad*CreateCalPad()
AliTRDCalPadStatus*CreateCalPadStatus()
virtual voidTObject::Delete(Option_t* option = "")MENU
voidDestroy()
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
voidDumpToFile(const Char_t* filename, const Char_t* dir = "", Bool_t append = kFALSE)
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
Int_tGetAdcMax() const
Int_tGetAdcMin() const
AliTRDCalROC*GetCalRocMean(Int_t det, Bool_t force = kFALSE)
AliTRDCalROC*GetCalRocMeand(Int_t det, Bool_t force = kFALSE)
AliTRDCalROC*GetCalRocRMS(Int_t det, Bool_t force = kFALSE)
AliTRDCalROC*GetCalRocRMSd(Int_t det, Bool_t force = kFALSE)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TH2F*GetHisto(Int_t det, Bool_t force = kFALSE)
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() 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 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)
AliTRDCalibPadStatus&operator=(const AliTRDCalibPadStatus& source)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
Int_tProcessEvent(AliRawReader* rawReader)
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 = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCalRocMean(AliTRDCalROC* mean, Int_t det)
voidSetCalRocMeand(AliTRDCalROC* mean, Int_t det)
voidSetCalRocRMS(AliTRDCalROC* rms, Int_t det)
voidSetCalRocRMSd(AliTRDCalROC* rms, Int_t det)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRangeAdc(Int_t aMin, Int_t aMax)
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
Int_tUpdateHisto(const Int_t idet, const Int_t iRow, const Int_t iCol, const Int_t signal, const Int_t crowMax, const Int_t ccold, const Int_t icMcm, const Int_t icRob)
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()
private:
AliTRDCalROC*GetCalRoc(Int_t det, TObjArray* arr, Bool_t force)
TH2F*GetHisto(Int_t det, TObjArray* arr, Int_t nbinsY, Float_t ymin, Float_t ymax, const Char_t* type, Bool_t force)
virtual Int_tGetLayer(Int_t d) const
virtual Int_tGetSector(Int_t d) const
virtual Int_tGetStack(Int_t d) const

Data Members

private:
Int_tfAdcMaxmax adc channel of pedestal value
Int_tfAdcMinmin adc channel of pedestal value
TObjArrayfCalRocArrayMeanArray of AliTRDCalROC class for signal width calibration
TObjArrayfCalRocArrayMeandArray of AliTRDCalROC class for signal width calibration doubled
TObjArrayfCalRocArrayRMSArray of AliTRDCalROC class for mean width calibration
TObjArrayfCalRocArrayRMSdArray of AliTRDCalROC class for mean width calibration doubled
Int_tfDetectorCurrent detector
AliTRDgeometry*fGeo! The TRD geometry
TObjArrayfHistoArrayArray of histos for mean width calibration
Int_tfNumberOfTimeBinsCurrent number of time bins

Class Charts

Inheritance Chart:
TObject
AliTRDCalibPadStatus

Function documentation

AliTRDCalibPadStatus()
 default constructor

AliTRDCalibPadStatus(const AliTRDCalibPadStatus& ped)
 copy constructor

~AliTRDCalibPadStatus()
 destructor

void Destroy()
Int_t UpdateHisto(const Int_t idet, const Int_t iRow, const Int_t iCol, const Int_t signal, const Int_t crowMax, const Int_t ccold, const Int_t icMcm, const Int_t icRob)
 Signal filling methode

Int_t ProcessEvent(AliRawReader* rawReader)
 RawReader = AliTRDrawStream (Jochen Klein)

 Event Processing loop - AliTRDRawStreamCosmic
 0 time bin problem or zero suppression
 1 no input
 2 input
 Raw version number:
 [3,31] non zero suppressed
 2,4 and [32,63] zero suppressed

TH2F* GetHisto(Int_t det, TObjArray* arr, Int_t nbinsY, Float_t ymin, Float_t ymax, const Char_t* type, Bool_t force)
 return pointer to histogram
 if force is true create a new histogram if it doesn't exist allready

TH2F* GetHisto(Int_t det, Bool_t force = kFALSE)
 return pointer to histogram
 if force is true create a new histogram if it doesn't exist allready

AliTRDCalROC* GetCalRoc(Int_t det, TObjArray* arr, Bool_t force)
 return pointer to ROC Calibration
 if force is true create a new AliTRDCalROC if it doesn't exist allready

AliTRDCalROC* GetCalRocMean(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

AliTRDCalROC* GetCalRocRMS(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

AliTRDCalROC* GetCalRocMeand(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

AliTRDCalROC* GetCalRocRMSd(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

void AnalyseHisto()
  Calculate calibration constants

AliTRDCalPadStatus* CreateCalPadStatus()
 Create Pad Status out of Mean and RMS values
 The chamber without data are masked, this is the corrected in the preprocessor

AliTRDCalPad* CreateCalPad()
 Create Pad Noise out of RMS values

AliTRDCalDet* CreateCalDet() const
 Create Det Noise correction factor

void DumpToFile(const Char_t* filename, const Char_t* dir = "", Bool_t append = kFALSE)
  Write class to file

void SetCalRocMean(AliTRDCalROC* mean, Int_t det)
  Put the AliTRDCalROC in the array fCalRocArrayMean

void SetCalRocRMS(AliTRDCalROC* rms, Int_t det)
  Put the AliTRDCalROC in the array fCalRocArrayRMS

void SetCalRocMeand(AliTRDCalROC* mean, Int_t det)
  Put the AliTRDCalROC in the array fCalRocArrayMean

void SetCalRocRMSd(AliTRDCalROC* rms, Int_t det)
  Put the AliTRDCalROC in the array fCalRocArrayRMS

Int_t GetLayer(Int_t d) const
 Reconstruct the layer number from the detector number

Int_t GetStack(Int_t d) const
 Reconstruct the chamber number from the detector number

Int_t GetSector(Int_t d) const
 Reconstruct the sector number from the detector number

Int_t GetAdcMin() const
{ return fAdcMin; }
Int_t GetAdcMax() const
{ return fAdcMax; }
void SetRangeAdc(Int_t aMin, Int_t aMax)
{ fAdcMin=aMin; fAdcMax=aMax; }