ROOT logo
AliRoot » TOF » AliTOFLvHvDataPoints

class AliTOFLvHvDataPoints: public TObject

Function Members (Methods)

public:
AliTOFLvHvDataPoints()
AliTOFLvHvDataPoints(const AliTOFLvHvDataPoints& data)
AliTOFLvHvDataPoints(Int_t nRun, UInt_t startTime, UInt_t endTime, UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery)
virtual~AliTOFLvHvDataPoints()
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 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 voidDraw(Option_t*)
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
voidDrawHVandLVMap(Int_t index)
voidDrawHVMap(Int_t index)
voidDrawLVMap(Int_t index)
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
const char*GetAliasNameXHV(Int_t pos1, Int_t pos2) const
const char*GetAliasNameXLV(Int_t pos) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetEndTime() const
Int_tGetEndTimeDCSQuery() const
Bool_tGetFDRFlag() const
AliTOFDCSmaps*GetHVandLVmap(Int_t index) const
AliTOFDCSmaps*GetHVandLVmapAtEOR()
AliTOFDCSmaps*GetHVandLVmapAtSOR() const
AliTOFDCSmaps*GetHVmap(Int_t index) const
virtual const char*TObject::GetIconName() const
AliTOFDCSmaps*GetLVmap(Int_t index) const
virtual const char*TObject::GetName() const
Int_tGetNSecondsBeforeEOR() const
Int_tGetNumberOfHVandLVmaps() const
Int_tGetNumberOfHVmaps() const
Int_tGetNumberOfLVmaps() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetRun() const
Int_tGetStartTime() const
Int_tGetStartTimeDCSQuery() 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)
AliTOFLvHvDataPoints&operator=(const AliTOFLvHvDataPoints& data)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
Bool_tProcessData(TMap& aliasMap)
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)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEndTime(Int_t endTime)
voidSetEndTimeDCSQuery(Int_t endTimeDCSQuery)
voidSetFDRFlag(Bool_t flag)
voidSetNSecondsBeforeEOR(Int_t nSecondsBeforeEOR)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRun(Int_t run)
voidSetStartTime(Int_t startTime)
voidSetStartTimeDCSQuery(Int_t startTimeDCSQuery)
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
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidCreateHisto(int nbin)
voidFillHVarrayPerDataPoint(Int_t sector, Int_t plate, UInt_t baseWord, Short_t* array) const
voidFillLVarrayPerDataPoint(Int_t nDDL, UInt_t baseWord, Short_t* array) const
Int_tFindHVdpIndex(Int_t z) const
Int_tFindLVdpIndex(Int_t z) const
voidGetStripsConnectedToFEAC(Int_t nDDL, Int_t nFEAC, Int_t* iStrip, Int_t& firstPadX, Int_t& lastPadX) const
voidInit()
Int_tInsertHVDataPoint(AliTOFDCSmaps* object)
Int_tInsertLVDataPoint(AliTOFDCSmaps* object)
Bool_tMergeHVmap()
Bool_tMergeLVmap()
Bool_tMergeMaps()
Bool_tReadHVDataPoints(TMap& aliasMap)
Bool_tReadLVDataPoints(TMap& aliasMap)

Data Members

public:
enum { kNsectors
kNplates
kNddl
kNpads
kNmaxDataPoints
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
TStringfAliasNamesXHVmap[18][5]aliases for HV map
TStringfAliasNamesXLVmap[72]aliases for LV map
Int_tfEndTimeend time
Int_tfEndTimeDCSQueryend time DCSQuery
Bool_tfFDRbool to know whether we are in a FDR run
AliTOFDCSmaps*fHVDataPoints[77777]HV status map VS time
TH1C*fHistohistogram
Bool_tfIsProcessedbool to know processing status
AliTOFDCSmaps*fLVDataPoints[77777]LV status map VS time
AliTOFDCSmaps*fMap[77777]LV&&HV status map VS time
Int_tfNSecondsBeforeEORtime window to choose if a run ended correctly or not [s]
Int_tfNumberOfHVandLVmapsnumber of found LV&&HV status maps
Int_tfNumberOfHVdataPointsnumber of found HV status dps
Int_tfNumberOfLVdataPointsnumber of found LV status dps
Int_tfRunRun number
Int_tfStartTimestart time
Int_tfStartTimeDCSQuerystart time DCSQuery
AliTOFDCSmaps*fStartingHVmapstarting value for HV map
AliTOFDCSmaps*fStartingLVmapstarting value for LV map

Class Charts

Inheritance Chart:
TObject
AliTOFLvHvDataPoints

Function documentation

AliTOFLvHvDataPoints()
 main constructor
AliTOFLvHvDataPoints(Int_t nRun, UInt_t startTime, UInt_t endTime, UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery)
AliTOFLvHvDataPoints(const AliTOFLvHvDataPoints& data)
~AliTOFLvHvDataPoints()
Bool_t ProcessData(TMap& aliasMap)
 method to process the data

Bool_t MergeMaps()
 Merge together LV and HV maps

Bool_t MergeHVmap()
 Create HV maps from HV dps

Bool_t MergeLVmap()
 Create LV maps from LV dps

Bool_t ReadHVDataPoints(TMap& aliasMap)
 Read HV dps

Bool_t ReadLVDataPoints(TMap& aliasMap)
 Read LV dps

Int_t InsertHVDataPoint(AliTOFDCSmaps* object)
 Insert HV dp in the HV dps array.
 The HV dps array is sorted according to increasing dp timeStamp value

Int_t FindHVdpIndex(Int_t z) const
 This function returns the index of the nearest HV DP in time

Int_t InsertLVDataPoint(AliTOFDCSmaps* object)
 Insert LV dp in the LV dps array.
 The LV dps array is sorted according to increasing dp timeStamp value

Int_t FindLVdpIndex(Int_t z) const
 This function returns the index of the nearest LV DP in time

void Init()
 Initialize aliases and DCS data

void FillHVarrayPerDataPoint(Int_t sector, Int_t plate, UInt_t baseWord, Short_t* array) const
 Set the status of the TOF pads connected to the HV dp
 labelled by sector and plate numbers

void FillLVarrayPerDataPoint(Int_t nDDL, UInt_t baseWord, Short_t* array) const
 Set the status of the TOF pads connected to the LV dp
 labelled by TOF crate number

void GetStripsConnectedToFEAC(Int_t nDDL, Int_t nFEAC, Int_t* iStrip, Int_t& firstPadX, Int_t& lastPadX) const
 FEAC-strip mapping:
 return the strips and first PadX numbers
 connected to the FEAC number nFEAC in the crate number nDDL

void Draw(Option_t* )
 Draw all histos and graphs

void DrawHVandLVMap(Int_t index)
 Draw HV+LV map labelled as index

void DrawLVMap(Int_t index)
 Draw LV map labelled as index

void DrawHVMap(Int_t index)
 Draw HV map labelled as index

AliTOFDCSmaps * GetHVandLVmapAtEOR()
 Returns HVandLV status map at EOR.
 If the end-of-run has been caused by TOF self,
 the second-last value of HVandLV status map
 will be taken into account, i.e. the value immediately before
 the change that caused EOR.
 This last condition is true
 if the time interval between the last map value and the EOR
 is less than 60s.
 If the run ended correctly, last map value will be take into account.
 If nothing changed during the run, the SOR map will be take into account.

AliTOFLvHvDataPoints& operator=(const AliTOFLvHvDataPoints& data)
void SetRun(Int_t run)
{fRun = run;}
void SetStartTime(Int_t startTime)
{fStartTime = startTime;}
void SetEndTime(Int_t endTime)
{fEndTime = endTime;}
void SetStartTimeDCSQuery(Int_t startTimeDCSQuery)
{fStartTimeDCSQuery = startTimeDCSQuery;}
void SetEndTimeDCSQuery(Int_t endTimeDCSQuery)
{fEndTimeDCSQuery = endTimeDCSQuery;}
void SetNSecondsBeforeEOR(Int_t nSecondsBeforeEOR)
{fNSecondsBeforeEOR = nSecondsBeforeEOR;}
Int_t GetRun() const
{return fRun;}
Int_t GetStartTime() const
{return fStartTime;}
Int_t GetEndTime() const
{return fEndTime;}
Int_t GetStartTimeDCSQuery() const
Int_t GetEndTimeDCSQuery() const
Int_t GetNSecondsBeforeEOR() const
const char* GetAliasNameXLV(Int_t pos) const
{return pos<kNddl ? fAliasNamesXLVmap[pos].Data() : 0;}
const char* GetAliasNameXHV(Int_t pos1, Int_t pos2) const
{return pos1<kNsectors&&pos2<kNplates ? fAliasNamesXHVmap[pos1][pos2].Data() : 0;}
void SetFDRFlag(Bool_t flag)
{fFDR = flag;}
Bool_t GetFDRFlag() const
{return fFDR;}
Int_t GetNumberOfHVandLVmaps() const
AliTOFDCSmaps * GetHVandLVmapAtSOR() const
{ return fMap[0]; }
AliTOFDCSmaps * GetHVandLVmap(Int_t index) const
{ if (index>=fNumberOfHVandLVmaps) return 0x0; else return fMap[index]; }
Int_t GetNumberOfLVmaps() const
AliTOFDCSmaps * GetLVmap(Int_t index) const
{ if (index>=fNumberOfLVdataPoints) return 0x0; else return fLVDataPoints[index]; }
Int_t GetNumberOfHVmaps() const
AliTOFDCSmaps * GetHVmap(Int_t index) const
{ if (index>=fNumberOfHVdataPoints) return 0x0; else return fHVDataPoints[index]; }
void CreateHisto(int nbin)