ROOT logo
AliRoot » ITS » AliITSTriggerConditions

class AliITSTriggerConditions: public TObject

Author: Henrik Tydesjo

Implementation of conditions data from Pixel Trigger (PIT)

The information is propagated from pixel trigger system to DCS file exchange
server (text file format). The ReadFromTextFile method will populate this
object with the values from the text file. Via a Preprocessor, this object
can be stored in OCDB.

One can also manually create conditions data that may be interesting for
simulation.


Function Members (Methods)

public:
AliITSTriggerConditions()
AliITSTriggerConditions(const AliITSTriggerConditions& cond)
virtual~AliITSTriggerConditions()
voidTObject::AbstractMethod(const char* method) const
virtual voidAddAlgo(UShort_t id, const Char_t* aLabel, const Char_t* aDescr)
virtual voidAddAlgoParam(UShort_t id, const Char_t* pName, Int_t pValue)
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 voidClearAlgoParamsI(UShort_t aIndex)
virtual voidClearAlgoParamsL(const Char_t* aLabel)
virtual voidClearAlgorithms()
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 voidDumpAll() const
virtual voidDumpInActiveChips() const
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
virtual const Char_t*GetAlgoDescriptionI(UShort_t aIndex) const
virtual Short_tGetAlgoIDI(UShort_t aIndex) const
virtual Short_tGetAlgoIndexL(const Char_t* aLabel) const
virtual const Char_t*GetAlgoLabelI(UShort_t aIndex) const
virtual const Char_t*GetAlgoParamNameII(UShort_t aIndex, UShort_t pIndex) const
virtual const Char_t*GetAlgoParamNameLI(const Char_t* aLabel, UShort_t pIndex) const
virtual Int_tGetAlgoParamValueII(UShort_t aIndex, UShort_t pIndex) const
virtual Int_tGetAlgoParamValueIN(UShort_t aIndex, const Char_t* pName) const
virtual Int_tGetAlgoParamValueLI(const Char_t* aLabel, UShort_t pIndex) const
virtual Int_tGetAlgoParamValueLN(const Char_t* aLabel, const Char_t* pName) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual UShort_tGetFirmWareVersion() const
virtual const Char_t*GetGlobalDescription() const
virtual const char*TObject::GetIconName() const
virtual UShort_tGetInputConditionsVersion() const
virtual const char*TObject::GetName() const
virtual Bool_tGetNextInActiveChip(Int_t& eq, Int_t& hs, Int_t& chip) const
virtual UShort_tGetNumAlgo() const
virtual Short_tGetNumAlgoParamI(UShort_t aIndex) const
virtual Short_tGetNumAlgoParamL(const Char_t* aLabel) const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UShort_tGetParametersVersion() const
virtual UInt_tGetRunNumber() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual UShort_tGetVersionRegister() 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_tIsChipActive(UInt_t eq, UInt_t hs, UInt_t chip) const
virtual Bool_tIsChipInActive(UInt_t eq, UInt_t hs, UInt_t chip) const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tIsEqualTo(AliITSTriggerConditions* cond) 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)
AliITSTriggerConditions&operator=(const AliITSTriggerConditions& cond)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual voidPrintAsInPIT() const
virtual Int_tTObject::Read(const char* name)
virtual voidReadFromTextFile(const Char_t* fileName)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidResetAll()
voidTObject::ResetBit(UInt_t f)
virtual voidResetInActiveChips()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual voidSetActiveChip(UInt_t eq, UInt_t hs, UInt_t chip)
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)
virtual voidSetFirmWareVersion(UShort_t num)
virtual voidSetGlobalDescription(const Char_t* descr)
virtual voidSetInActiveChip(UInt_t eq, UInt_t hs, UInt_t chip)
virtual voidSetInputConditionsVersion(UShort_t num)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetParametersVersion(UShort_t num)
virtual voidSetRunNumber(UInt_t num)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetVersionRegister(UShort_t num)
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
voidGetChipFromKey(UInt_t key, Int_t& eq, Int_t& hs, Int_t& chip) const
UInt_tGetChipKey(Int_t eq, Int_t hs, Int_t chip) const
TStringGetStringBetween(TString orig, Char_t sep1, Char_t sep2)
voidTObject::MakeZombie()
Bool_tSplitStringIn2(TString orig, TString& word1, TString& word2, Char_t sep)

Data Members

protected:
TObjArrayfAlgoListList of conditions for each algorithm used
UShort_tfFirmWareVersionPIT Processing firmware version
TStringfGlobalDescriptionPIT Global description
TBitsfInActiveChipsMap of PIT de-activated chips
UShort_tfInputConditionsVersionPIT Input configuration version
UShort_tfNumAlgoNumber of algorithms used
UShort_tfParametersVersionPIT Parameters version
UInt_tfRunNumberRun number
UShort_tfVersionRegisterPIT Version register value

Class Charts

Inheritance Chart:
TObject
AliITSTriggerConditions

Function documentation

AliITSTriggerConditions()
 default constructor
AliITSTriggerConditions(const AliITSTriggerConditions& cond)
 copy constructor
~AliITSTriggerConditions()
 destructor
AliITSTriggerConditions& operator=(const AliITSTriggerConditions& cond)
 assignment operator
void DumpAll() const
 Dumps all conditions data. This is as it is shown in PVSS, whereas the content of
 the txt file they are read from has a swap in the chip numbering
void ResetAll()
 clear all data, and put default values
void ClearAlgorithms()
 clears the list of algorithms
void ClearAlgoParamsI(UShort_t aIndex)
 clears the list of parameters for algorithm with index aIndex
void ClearAlgoParamsL(const Char_t* aLabel)
 clears the list of parameters for algorithm with label aLabel
void AddAlgo(UShort_t id, const Char_t* aLabel, const Char_t* aDescr)
 adds a new algorithm with id 'id', label aLabel, and description aDescr
 if the id or label is already used in the list of algorithms, the old entry will be over-written
void AddAlgoParam(UShort_t id, const Char_t* pName, Int_t pValue)
 adds a new parameter with name 'name' and value 'value', for the algorithm with id 'id'
Short_t GetAlgoIndexL(const Char_t* aLabel) const
 returns the index for the algorithm with label aLabel
Short_t GetAlgoIDI(UShort_t aIndex) const
 returns the ID for the algorithm with index aIndex (in real life, could be 1-10)
const Char_t* GetAlgoLabelI(UShort_t aIndex) const
 returns the label for the algorithm with index aIndex
const Char_t* GetAlgoDescriptionI(UShort_t aIndex) const
 returns the description for the algorithm with index aIndex
Short_t GetNumAlgoParamI(UShort_t aIndex) const
 returns the number of parameters, corresponding to the algorithm with index aIndex
const Char_t* GetAlgoParamNameII(UShort_t aIndex, UShort_t pIndex) const
 returns the parameter name for the parameter with index pIndex, corresponding to the algorithm with index aIndex
Int_t GetAlgoParamValueII(UShort_t aIndex, UShort_t pIndex) const
 returns the parameter value for the parameter with index pIndex, corresponding to the algorithm with index aIndex
Int_t GetAlgoParamValueIN(UShort_t aIndex, const Char_t* pName) const
 returns parameter value for the parameter named pName, corresponding to the algorithm with index aIndex
Short_t GetNumAlgoParamL(const Char_t* aLabel) const
 returns the number of parameters, corresponding to the algorithm with label aLabel
const Char_t* GetAlgoParamNameLI(const Char_t* aLabel, UShort_t pIndex) const
 returns parameter name for the parameter with index pIndex, corresponding to the algorithm with label aLabel
Int_t GetAlgoParamValueLI(const Char_t* aLabel, UShort_t pIndex) const
 returns parameter value for the parameter with index pIndex, corresponding to the algorithm with label aLabel
Int_t GetAlgoParamValueLN(const Char_t* aLabel, const Char_t* pName) const
 returns parameter value for the parameter named pName, corresponding to the algorithm with label aLabel
UInt_t GetChipKey(Int_t eq, Int_t hs, Int_t chip) const
 translates eq,hs,chip numbers into one integer key (0-1199)
void GetChipFromKey(UInt_t key, Int_t& eq, Int_t& hs, Int_t& chip) const
 translates a chip key back into eq,hs,chip numbers
Bool_t GetNextInActiveChip(Int_t& eq, Int_t& hs, Int_t& chip) const
 Returns true if an in-active chip was found (start looking after the bit number
 corresponding to the input parameters eq,hs,chip).
 If either of eq,hs,chip < 0 , start from beginning of TBits array.
 See example of usage in AliITSDetTypeRec::RemoveFastOrFiredInActive.
void DumpInActiveChips() const
 Prints a list of all inactive chips
void ReadFromTextFile(const Char_t* fileName)
 Reads conditions from text file (file format is used online by PIT system)
Bool_t SplitStringIn2(TString orig, TString& word1, TString& word2, Char_t sep)
 splits a string in two parts (one before separator character and one after)
TString GetStringBetween(TString orig, Char_t sep1, Char_t sep2)
 returns string between separator character 1 and separator character 2
Bool_t IsEqualTo(AliITSTriggerConditions* cond) const
 checks if this object contains the same information as the input cond object
void PrintAsInPIT() const
void SetRunNumber(UInt_t num)
{fRunNumber=num;}
UInt_t GetRunNumber() const
{return fRunNumber;}
void SetFirmWareVersion(UShort_t num)
UShort_t GetFirmWareVersion() const
void SetGlobalDescription(const Char_t* descr)
const Char_t* GetGlobalDescription() const
{return fGlobalDescription.Data();}
void SetVersionRegister(UShort_t num)
UShort_t GetVersionRegister() const
void SetInputConditionsVersion(UShort_t num)
UShort_t GetInputConditionsVersion() const
void SetParametersVersion(UShort_t num)
UShort_t GetParametersVersion() const
void SetInActiveChip(UInt_t eq, UInt_t hs, UInt_t chip)
{fInActiveChips.SetBitNumber(GetChipKey(eq,hs,chip));}
void ResetInActiveChips()
{fInActiveChips.ResetAllBits();}
void SetActiveChip(UInt_t eq, UInt_t hs, UInt_t chip)
{fInActiveChips.SetBitNumber(GetChipKey(eq,hs,chip),kFALSE);}
Bool_t IsChipActive(UInt_t eq, UInt_t hs, UInt_t chip) const
{return !IsChipInActive(eq,hs,chip);}
Bool_t IsChipInActive(UInt_t eq, UInt_t hs, UInt_t chip) const
{return fInActiveChips.TestBitNumber(GetChipKey(eq,hs,chip));}
UShort_t GetNumAlgo() const
{return fNumAlgo;}