![]() |
AliRoot Core
d69033e (d69033e)
|
Helper class for sorted integer array. More...
#include <AliMpArrayI.h>
Public Member Functions | |
AliMpArrayI (Bool_t sort=true) | |
AliMpArrayI (TRootIOCtor *) | |
virtual | ~AliMpArrayI () |
Bool_t | Add (Int_t value, Bool_t warn=kTRUE) |
Bool_t | Remove (Int_t value) |
Bool_t | Revert () |
void | Reset () |
void | SetSize (Int_t size) |
Int_t | GetSize () const |
Int_t | GetValue (Int_t index) const |
Bool_t | HasValue (Int_t value) const |
Private Member Functions | |
Int_t | GetPosition (Int_t value) const |
Private Attributes | |
Bool_t | fSort |
Option to sort the values. More... | |
Int_t | fNofValues |
Number of values in the array. More... | |
TArrayI | fValues |
Array of values. More... | |
Int_t | fMinValue |
The minimum value in the array. More... | |
Int_t | fMaxValue |
The maximum value in the array. More... | |
Static Private Attributes | |
static const Int_t | fgkDefaultSize = 100 |
Default initial size. More... | |
Helper class for sorted integer array.
Definition at line 21 of file AliMpArrayI.h.
AliMpArrayI::AliMpArrayI | ( | Bool_t | sort = true | ) |
Standard & default constructor
Definition at line 46 of file AliMpArrayI.cxx.
AliMpArrayI::AliMpArrayI | ( | TRootIOCtor * | ) |
IO constructor
Definition at line 59 of file AliMpArrayI.cxx.
|
virtual |
Destructor
Definition at line 71 of file AliMpArrayI.cxx.
Bool_t AliMpArrayI::Add | ( | Int_t | value, |
Bool_t | warn = kTRUE |
||
) |
Add object with its key to the map and arrays
Definition at line 97 of file AliMpArrayI.cxx.
Referenced by AliMpDetElement::AddBusPatch(), AliMpDDL::AddDE(), AliMpLocalBoard::AddDE(), AliMpDDL::AddFrt(), AliMpTriggerCrate::AddLocalBoard(), AliMUONTriggerCrateConfig::AddLocalBoard(), AliMpBusPatch::AddManu(), AliMpDetElement::AddManu(), AliMpDDL::AddTriggerCrate(), AliMpDDL::FillBusPatchIds(), AliMUONTrackerHV::ReportTrips(), and AliMpBusPatch::SetNofManusPerModule().
|
private |
Return the new positon where the value should be put
Definition at line 81 of file AliMpArrayI.cxx.
Int_t AliMpArrayI::GetSize | ( | ) | const |
Return the map size
Definition at line 199 of file AliMpArrayI.cxx.
Referenced by AliMUONTrackerConditionDataMaker::CreateHVStore(), AliMpDDL::GetBusPerDsp(), AliMpTriggerCrate::GetLocalBoardId(), AliMpDDL::GetMaxDsp(), AliMpDDL::GetNofBusPatches(), AliMpDetElement::GetNofBusPatches(), AliMpLocalBoard::GetNofDEs(), AliMpDDL::GetNofDEs(), AliMpDDL::GetNofFrts(), AliMpTriggerCrate::GetNofLocalBoards(), AliMUONTriggerCrateConfig::GetNofLocalBoardsOld(), AliMpBusPatch::GetNofManus(), AliMpBusPatch::GetNofPatchModules(), AliMpDDL::GetNofTriggerCrates(), AliMpBusPatch::Print(), AliMUONTrackerHV::ReportTrips(), Revert(), AliMUONRejectList::SetHVProbability(), and AliMUONPadStatusMaker::SetHVStatus().
Int_t AliMpArrayI::GetValue | ( | Int_t | index | ) | const |
Return the index-th value
Definition at line 207 of file AliMpArrayI.cxx.
Referenced by AliMUONCDB::CheckHV(), AliMUONTrackerConditionDataMaker::CreateHVStore(), AliMpDDL::GetBusPatchId(), AliMpDetElement::GetBusPatchId(), AliMpLocalBoard::GetDEId(), AliMpDDL::GetDEId(), AliMpLocalBoard::GetDEIdByChamber(), AliMpDDL::GetFrtId(), AliMpTriggerCrate::GetLocalBoardId(), AliMUONTriggerCrateConfig::GetLocalBoardIdOld(), AliMpBusPatch::GetManuId(), AliMpBusPatch::GetNofManusPerModule(), AliMpDDL::GetTriggerCrateId(), AliMpBusPatch::Print(), AliMUONTrackerHV::ReportTrips(), Revert(), AliMUONRejectList::SetHVProbability(), and AliMUONPadStatusMaker::SetHVStatus().
Bool_t AliMpArrayI::HasValue | ( | Int_t | value | ) | const |
Return true if contains the given value
Definition at line 220 of file AliMpArrayI.cxx.
Referenced by AliMpDDL::HasBusPatchId(), AliMpDetElement::HasBusPatchId(), AliMpLocalBoard::HasDEId(), AliMpDDL::HasDEId(), AliMpDDL::HasFrtId(), AliMpTriggerCrate::HasLocalBoard(), AliMpBusPatch::HasManu(), and AliMpDDL::HasTriggerCrateId().
Bool_t AliMpArrayI::Remove | ( | Int_t | value | ) |
Remove value from the array
Definition at line 135 of file AliMpArrayI.cxx.
void AliMpArrayI::Reset | ( | void | ) |
Reset the array
Definition at line 180 of file AliMpArrayI.cxx.
Referenced by AliMpBusPatch::ResetReadout().
Bool_t AliMpArrayI::Revert | ( | ) |
Revert the order of elements
Definition at line 156 of file AliMpArrayI.cxx.
Referenced by AliMpBusPatch::RevertReadout().
void AliMpArrayI::SetSize | ( | Int_t | size | ) |
Set given size to the array
Definition at line 191 of file AliMpArrayI.cxx.
Referenced by AliMUONTrackerHV::ReportTrips().
|
staticprivate |
|
private |
The maximum value in the array.
Definition at line 54 of file AliMpArrayI.h.
Referenced by Add(), HasValue(), and Reset().
|
private |
The minimum value in the array.
Definition at line 53 of file AliMpArrayI.h.
|
private |
Number of values in the array.
Definition at line 51 of file AliMpArrayI.h.
Referenced by Add(), GetPosition(), GetSize(), GetValue(), HasValue(), Remove(), and Reset().
|
private |
Option to sort the values.
Definition at line 50 of file AliMpArrayI.h.
|
private |
Array of values.
Definition at line 52 of file AliMpArrayI.h.
Referenced by Add(), GetPosition(), GetValue(), HasValue(), Remove(), Reset(), Revert(), and SetSize().