![]() |
AliRoot Core
v5-06-15 (45dab64)
|
Determine which channels, manus, DEs, stations are missing from a 2DStore. More...
#include <AliMUON2DStoreValidator.h>
Public Member Functions | |
AliMUON2DStoreValidator () | |
virtual | ~AliMUON2DStoreValidator () |
TObjArray * | Validate (const AliMUONVStore &store, Float_t invalidFloatValue, AliMUONVStore *config=0x0) |
TObjArray * | Validate (const AliMUONVStore &store, AliMUONVStore *config=0x0) |
TObjArray * | Validate (const AliMUONVStore &store, Bool_t(*check)(const AliMUONVCalibParam &, Int_t), AliMUONVStore *config=0x0) |
AliMUONVStore * | GetStatus () const |
Return statuses. More... | |
void | Report (TList &lines) const |
Reports what is missing, trying to be as concise as possible. More... | |
Static Public Member Functions | |
static void | Report (TList &lines, const TObjArray &chambers) |
Private Member Functions | |
AliMUON2DStoreValidator (const AliMUON2DStoreValidator &) | |
Not implemented. More... | |
AliMUON2DStoreValidator & | operator= (const AliMUON2DStoreValidator &) |
Not implemented. More... | |
void | AddMissingChannel (Int_t detElemId, Int_t manuId, Int_t manuChannel) |
void | AddMissingManu (Int_t detElemId, Int_t manuId) |
AliMUONCheckItem * | GetChamber (Int_t chamberID) |
AliMUONCheckItem * | GetDE (Int_t detElemId) |
AliMUONCheckItem * | GetManu (Int_t detElemId, Int_t manuId) |
Static Private Member Functions | |
static void | ReportChamber (TList &list, const AliMUONCheckItem &chamber) |
static void | ReportDE (TList &list, const AliMUONCheckItem &de) |
static void | ReportManu (TList &list, const AliMUONCheckItem &manu) |
Private Attributes | |
TObjArray * | fChambers |
! Array of AliMUONCheckItem. More... | |
AliMUONVStore * | fStatus |
! Statuses More... | |
Determine which channels, manus, DEs, stations are missing from a 2DStore.
Determine which channels, manus, DEs, stations are missing from a VStore, which must be 2D, and the 2 dimensions must be (detElemId,manuId). This is mainly to be used during (shuttle) preprocessing to insure that what we'll put in the CDB is as complete as possible, and to detect possible problem.
We made an effort to present the result of the validation in the most concise way (i.e. if all channels of a DE are missing, we do not list them, we just write "DE dead" ;-) )
The list of missing things is kept in a structure of objects defined as :
fMissing = TObjArray[0..N tracking chambers]
fMissing[iChamber] = AliMUONCheckItem which contains n AliMUONCheckItem, where n is the number of DE for that chamber
fMissing[iChamber]->GetItem(de) = AliMUONCheckItem which contains m AliMUONCheckItem where m is the number of Manu for that DE
fMissing[iChamber]->GetItem(de)->GetItem(manu) = AliMUONCheckItem which contains k TObjString = Form("%d",manuChannel)
Definition at line 26 of file AliMUON2DStoreValidator.h.
AliMUON2DStoreValidator::AliMUON2DStoreValidator | ( | ) |
ctor
Definition at line 69 of file AliMUON2DStoreValidator.cxx.
|
virtual |
dtor
Definition at line 78 of file AliMUON2DStoreValidator.cxx.
|
private |
Not implemented.
|
private |
Add one missing channel to the list of missing things
Definition at line 165 of file AliMUON2DStoreValidator.cxx.
Referenced by AddMissingManu(), and Validate().
|
private |
Add one missing manu to the list of missing things
Definition at line 184 of file AliMUON2DStoreValidator.cxx.
Referenced by Validate().
|
private |
Return (and create if not present) the given chamber chamberID in 0..NCh()
Definition at line 87 of file AliMUON2DStoreValidator.cxx.
Referenced by GetDE().
|
private |
Return (and create if not present) a given detection element
Definition at line 118 of file AliMUON2DStoreValidator.cxx.
Referenced by GetManu().
|
private |
Return (and create) a given manu
Definition at line 144 of file AliMUON2DStoreValidator.cxx.
Referenced by AddMissingChannel().
|
inline |
Return statuses.
Definition at line 41 of file AliMUON2DStoreValidator.h.
|
private |
Not implemented.
void AliMUON2DStoreValidator::Report | ( | TList & | lines | ) | const |
Reports what is missing, trying to be as concise as possible.
Definition at line 265 of file AliMUON2DStoreValidator.cxx.
Referenced by AliMUONPedestalSubprocessor::Process(), and AliMUONGainSubprocessor::Process().
|
static |
Reports what is missing, trying to be as concise as possible.
Definition at line 276 of file AliMUON2DStoreValidator.cxx.
|
staticprivate |
Report list of missing de from this chamber
Definition at line 243 of file AliMUON2DStoreValidator.cxx.
Referenced by Report().
|
staticprivate |
Report list of missing manus from this de
Definition at line 218 of file AliMUON2DStoreValidator.cxx.
Referenced by ReportChamber().
|
staticprivate |
Report list of missing channels from this manu
Definition at line 201 of file AliMUON2DStoreValidator.cxx.
Referenced by ReportDE().
TObjArray * AliMUON2DStoreValidator::Validate | ( | const AliMUONVStore & | store, |
Float_t | invalidFloatValue, | ||
AliMUONVStore * | config = 0x0 |
||
) |
Validate the store. The invalidFloatValue is used to decide if a store content value is valid or not.
Definition at line 367 of file AliMUON2DStoreValidator.cxx.
Referenced by AliMUONPedestalSubprocessor::Process(), AliMUONGainSubprocessor::Process(), and Validate().
TObjArray * AliMUON2DStoreValidator::Validate | ( | const AliMUONVStore & | store, |
AliMUONVStore * | config = 0x0 |
||
) |
Validate the store. Check only the presence of all manus (i.e. check nothing about the values themselves). Absence of manus which are not in the config is considered as normal.
Definition at line 299 of file AliMUON2DStoreValidator.cxx.
TObjArray * AliMUON2DStoreValidator::Validate | ( | const AliMUONVStore & | store, |
Bool_t(*)(const AliMUONVCalibParam &, Int_t) | check, | ||
AliMUONVStore * | config = 0x0 |
||
) |
Validate the store. The check method is used to decide if a store content value is valid or not.
Definition at line 312 of file AliMUON2DStoreValidator.cxx.
|
private |
! Array of AliMUONCheckItem.
Definition at line 67 of file AliMUON2DStoreValidator.h.
Referenced by GetChamber(), Report(), Validate(), and ~AliMUON2DStoreValidator().
|
private |
! Statuses
Definition at line 68 of file AliMUON2DStoreValidator.h.
Referenced by GetStatus(), and ~AliMUON2DStoreValidator().