AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUON2DStoreValidator Class Reference

Determine which channels, manus, DEs, stations are missing from a 2DStore. More...

#include <AliMUON2DStoreValidator.h>

Inheritance diagram for AliMUON2DStoreValidator:

Public Member Functions

 AliMUON2DStoreValidator ()
 
virtual ~AliMUON2DStoreValidator ()
 
TObjArrayValidate (const AliMUONVStore &store, Float_t invalidFloatValue, AliMUONVStore *config=0x0)
 
TObjArrayValidate (const AliMUONVStore &store, AliMUONVStore *config=0x0)
 
TObjArrayValidate (const AliMUONVStore &store, Bool_t(*check)(const AliMUONVCalibParam &, Int_t), AliMUONVStore *config=0x0)
 
AliMUONVStoreGetStatus () 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...
 
AliMUON2DStoreValidatoroperator= (const AliMUON2DStoreValidator &)
 Not implemented. More...
 
void AddMissingChannel (Int_t detElemId, Int_t manuId, Int_t manuChannel)
 
void AddMissingManu (Int_t detElemId, Int_t manuId)
 
AliMUONCheckItemGetChamber (Int_t chamberID)
 
AliMUONCheckItemGetDE (Int_t detElemId)
 
AliMUONCheckItemGetManu (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

TObjArrayfChambers
 ! Array of AliMUONCheckItem. More...
 
AliMUONVStorefStatus
 ! Statuses More...
 

Detailed Description

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)

Author
Laurent Aphecetche

Definition at line 26 of file AliMUON2DStoreValidator.h.

Constructor & Destructor Documentation

AliMUON2DStoreValidator::AliMUON2DStoreValidator ( )

ctor

Definition at line 69 of file AliMUON2DStoreValidator.cxx.

AliMUON2DStoreValidator::~AliMUON2DStoreValidator ( )
virtual

dtor

Definition at line 78 of file AliMUON2DStoreValidator.cxx.

AliMUON2DStoreValidator::AliMUON2DStoreValidator ( const AliMUON2DStoreValidator )
private

Not implemented.

Member Function Documentation

void AliMUON2DStoreValidator::AddMissingChannel ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel 
)
private

Add one missing channel to the list of missing things

Definition at line 165 of file AliMUON2DStoreValidator.cxx.

Referenced by AddMissingManu(), and Validate().

void AliMUON2DStoreValidator::AddMissingManu ( Int_t  detElemId,
Int_t  manuId 
)
private

Add one missing manu to the list of missing things

Definition at line 184 of file AliMUON2DStoreValidator.cxx.

Referenced by Validate().

AliMUONCheckItem * AliMUON2DStoreValidator::GetChamber ( Int_t  chamberID)
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().

AliMUONCheckItem * AliMUON2DStoreValidator::GetDE ( Int_t  detElemId)
private

Return (and create if not present) a given detection element

Definition at line 118 of file AliMUON2DStoreValidator.cxx.

Referenced by GetManu().

AliMUONCheckItem * AliMUON2DStoreValidator::GetManu ( Int_t  detElemId,
Int_t  manuId 
)
private

Return (and create) a given manu

Definition at line 144 of file AliMUON2DStoreValidator.cxx.

Referenced by AddMissingChannel().

AliMUONVStore* AliMUON2DStoreValidator::GetStatus ( ) const
inline

Return statuses.

Definition at line 41 of file AliMUON2DStoreValidator.h.

AliMUON2DStoreValidator& AliMUON2DStoreValidator::operator= ( const AliMUON2DStoreValidator )
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().

void AliMUON2DStoreValidator::Report ( TList &  lines,
const TObjArray chambers 
)
static

Reports what is missing, trying to be as concise as possible.

Definition at line 276 of file AliMUON2DStoreValidator.cxx.

void AliMUON2DStoreValidator::ReportChamber ( TList &  list,
const AliMUONCheckItem chamber 
)
staticprivate

Report list of missing de from this chamber

Definition at line 243 of file AliMUON2DStoreValidator.cxx.

Referenced by Report().

void AliMUON2DStoreValidator::ReportDE ( TList &  list,
const AliMUONCheckItem de 
)
staticprivate

Report list of missing manus from this de

Definition at line 218 of file AliMUON2DStoreValidator.cxx.

Referenced by ReportChamber().

void AliMUON2DStoreValidator::ReportManu ( TList &  list,
const AliMUONCheckItem manu 
)
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.

Member Data Documentation

TObjArray* AliMUON2DStoreValidator::fChambers
private
AliMUONVStore* AliMUON2DStoreValidator::fStatus
private

! Statuses

Definition at line 68 of file AliMUON2DStoreValidator.h.

Referenced by GetStatus(), and ~AliMUON2DStoreValidator().


The documentation for this class was generated from the following files: