ROOT logo
AliRoot » HMPID » AliHMPIDCalib

class AliHMPIDCalib: public TObject

  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  *                                                                        *
  * Author: The ALICE Off-line Project.                                    *
  * Contributors are mentioned in the code where appropriate.              *
  *                                                                        *
  * Permission to use, copy, modify and distribute this software and its   *
  * documentation strictly for non-commercial purposes is hereby granted   *
  * without fee, provided that the above copyright notice appears in all   *
  * copies and that both the copyright notice and this permission notice   *
  * appear in the supporting documentation. The authors make no claims     *
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *

Function Members (Methods)

public:
AliHMPIDCalib()
virtual~AliHMPIDCalib()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Bool_tCalcPedestal(Int_t nDDL, Char_t* name, Char_t* name2, Int_t nEv)
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
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
voidFillDDLCnt(Int_t iddl, Int_t inDDL, Int_t outDDL)
voidFillErrors(Int_t nDDL, Int_t nErrType, Int_t nErr)
voidFillPedestal(Int_t pad, Int_t q)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
THnSparse*GetDeadMap()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
Int_tGetNumDeadPads()
Int_tGetNumMaskedPads()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TH1F*GetPedMean(Int_t iChFee)
TH2F*GetPedMeanMap(Int_t iDDL)
TH1F*GetPedSigma(Int_t iChFee)
TH2F*GetPedSigMap(Int_t iDDL)
Bool_tGetSelectedDDL() 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
voidInit()
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)
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 = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDeadChannelMapFromFile(TString name)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRunParams(ULong_t runNum, Int_t timeStamp, Int_t ldcId)
voidSetSigCut(Int_t nSigCut)
voidSetSigCutFromFile(TString name)
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
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
Bool_tWriteErrors(Int_t nDDL, Char_t* name, Int_t nEv)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

protected:
TH1F**f1DPedMean1D mean pedestal map to export to AMORE
TH1F**f1DPedSigma1D pedestal sigma map to export to AMORE
THnSparse*fDeadMapDead Channel Map
Int_t**fErrStore the numner of errors for a given error type and a given DDL
TFile*fFileADC histo output file (one per LDC)
Bool_t*fIsPadCheck if the ADC histo for the pad is booked or not
Bool_tfLargeHistoDefault is kFALSE.if kTRUE then write large pad histograms with 4093 bins!!!! Only if you have 2GB of RAM!!!
UInt_tfLdcIdLdc ID
Int_tfNumDeadPadsNumber of currently dead channels
Int_tfNumMaskedPadsNumber of masked pads
TH1I**fPadAdcCharge distribution for pads
TH2F**fPedMeanMap2D mean pedestal map to export to AMORE
TH2F**fPedSigMap2D pedestal sigma map to export to AMORE
Int_tfRunNumRun Number
Int_tfSelectDDLSelect the DDL to write for the in the large histograms. Only ONE at one time!
Int_tfSigCutn. of pedestal distribution sigmas used to create zero suppresion table
UInt_tfTimeStampTime Stamp
Bool_t*faddlcheck is ddl is filled
Int_t*fnDDLInStreamif the DDL is in the raw data
Int_t*fnDDLOutStreamif the DDL is in the raw data
Int_t****fnpc# of the pad was called with non zero charge
Int_t****fpedQ0Check how many times a pad gives 0 charge in pedestal runs
Float_t****fsqSum of pad Q
Float_t****fsq2Sum of pad Q^2

Class Charts

Inheritance Chart:
TObject
AliHMPIDCalib

Function documentation

AliHMPIDCalib()
constructor

~AliHMPIDCalib()
destructor

void Init()
Init the q calc.
Arguments: none
Return: none

void SetRunParams(ULong_t runNum, Int_t timeStamp, Int_t ldcId)
Set run parameters for the Pedestal and Error Files
Arguments: run number, time stamp and LDC Id
Returns: none

void SetSigCutFromFile(TString name)
Set Sigma Cut from the file on the LDC, if the input file is not present default value is set!
Arguments: the name of the SigmaCut file on the LDC
Returns: none

void SetDeadChannelMapFromFile(TString name)
Set Dead Channel Map Cut from the file on the LDC, if the input file is not present default value is set!
Arguments: the name of the Dead Channel Map file on the LDC
Returns: none

void FillPedestal(Int_t pad, Int_t q)
Called from the HMPIDda and fills the pedestal values
Arguments: absolute pad number as from AliHMPIDParam and q-charge
Returns: none

void FillErrors(Int_t nDDL, Int_t nErrType, Int_t nErr)
Fill decoding errors from AliHMPIDRawStream
Arguments: nDDL-DDL number, eType- error type as in AliHMPIDRawStream.h and the # of occurence for eType
Retutns: none

void FillDDLCnt(Int_t iddl, Int_t inDDL, Int_t outDDL)
Fill decoding DDL check from RawStream
Arguments: iddl - DDL under setting, inDDL- How many times the DDL is present in the raw stream, outDDL - How many time sthe DDL is succesfylly decoded
Retutns: none

Bool_t WriteErrors(Int_t nDDL, Char_t* name, Int_t nEv)
Write decoding errors to a txt file
Arguments: nDDL-DDL number, name of the error file and number of the read events
Retutns: kTRUE/kFALSE

Bool_t CalcPedestal(Int_t nDDL, Char_t* name, Char_t* name2, Int_t nEv)
Calculate pedestal for each pad
Arguments: nDDL-DDL number, name of the pedestal file and number of the read events
Retutns: kTRUE/kFALSE

AliHMPIDCalib()
void SetSigCut(Int_t nSigCut)
{ fSigCut=nSigCut;}
Bool_t GetSelectedDDL() const
{return fSelectDDL;}
TH2F * GetPedMeanMap(Int_t iDDL)
{return fPedMeanMap[iDDL];}
TH2F * GetPedSigMap(Int_t iDDL)
{return fPedSigMap[iDDL];}
TH1F * GetPedMean(Int_t iChFee)
{return f1DPedMean[iChFee];}
TH1F * GetPedSigma(Int_t iChFee)
{return f1DPedSigma[iChFee];}
THnSparse * GetDeadMap()
{return fDeadMap;}
Int_t GetNumMaskedPads()
{return fNumMaskedPads;}
Int_t GetNumDeadPads()
{return fNumDeadPads;}
AliHMPIDCalib & operator=(const AliHMPIDCalib& c)