AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONConfigSubprocessor Class Reference

Implementation of AliMUONVSubprocessor for MUON TRK config. More...

#include <AliMUONConfigSubprocessor.h>

Inheritance diagram for AliMUONConfigSubprocessor:

Public Member Functions

 AliMUONConfigSubprocessor (AliMUONPreprocessor *master)
 
virtual ~AliMUONConfigSubprocessor ()
 
Bool_t Initialize (Int_t run, UInt_t startTime, UInt_t endTime)
 
UInt_t Process (TMap *dcsAliasMap)
 Process this sub-task. More...
 
void Print (Option_t *opt="") const
 
- Public Member Functions inherited from AliMUONVSubprocessor
 AliMUONVSubprocessor (AliMUONPreprocessor *master, const char *name="", const char *title="")
 
virtual ~AliMUONVSubprocessor ()
 

Private Member Functions

 AliMUONConfigSubprocessor (const AliMUONConfigSubprocessor &)
 Not implemented. More...
 
AliMUONConfigSubprocessoroperator= (const AliMUONConfigSubprocessor &)
 Not implemented. More...
 
Int_t ReadConfigFile (const char *filename)
 
Bool_t HasConfigChanged (const AliMUONVStore &newConfig) const
 

Private Attributes

AliMUONVStorefConfig
 ! Configuration (i.e. list of (buspatch,manu)) for the MUON TRK More...
 
Bool_t fConfigChanged
 ! flag to trigger the saving of the configuration More...
 

Additional Inherited Members

- Protected Member Functions inherited from AliMUONVSubprocessor
AliMUONPreprocessorMaster () const
 Return the pointer to our master. More...
 
Bool_t RemoveValuesOutsideRun (TObjArray *values)
 
 AliMUONVSubprocessor ()
 Not implemented. More...
 
 AliMUONVSubprocessor (const AliMUONVSubprocessor &)
 Not implemented. More...
 
AliMUONVSubprocessoroperator= (const AliMUONVSubprocessor &)
 Not implemented. More...
 

Detailed Description

Implementation of AliMUONVSubprocessor for MUON TRK config.

Implementation of AliMUONVSubprocessor class to deal with MUON TRK readout configuration.

Configs are read in from an ascii file, with the format :
------------------------------------------------------------------------—
BUS_PATCH MANU_ADDR ------------------------------------------------------------------------—

Author
L. Aphecetche

Definition at line 21 of file AliMUONConfigSubprocessor.h.

Constructor & Destructor Documentation

AliMUONConfigSubprocessor::AliMUONConfigSubprocessor ( AliMUONPreprocessor master)

default ctor

Definition at line 56 of file AliMUONConfigSubprocessor.cxx.

AliMUONConfigSubprocessor::~AliMUONConfigSubprocessor ( )
virtual

dtor

Definition at line 67 of file AliMUONConfigSubprocessor.cxx.

AliMUONConfigSubprocessor::AliMUONConfigSubprocessor ( const AliMUONConfigSubprocessor )
private

Not implemented.

Member Function Documentation

Bool_t AliMUONConfigSubprocessor::HasConfigChanged ( const AliMUONVStore newConfig) const
private

Check whether the config changed. Any error will return kTRUE to trig a config upload (safer way).

Definition at line 75 of file AliMUONConfigSubprocessor.cxx.

Referenced by Initialize().

Bool_t AliMUONConfigSubprocessor::Initialize ( Int_t  run,
UInt_t  startTime,
UInt_t  endTime 
)
virtual

When starting a new run, reads in the config ASCII files.

Reimplemented from AliMUONVSubprocessor.

Definition at line 120 of file AliMUONConfigSubprocessor.cxx.

AliMUONConfigSubprocessor& AliMUONConfigSubprocessor::operator= ( const AliMUONConfigSubprocessor )
private

Not implemented.

void AliMUONConfigSubprocessor::Print ( Option_t *  opt = "") const

ouput to screen

Definition at line 228 of file AliMUONConfigSubprocessor.cxx.

UInt_t AliMUONConfigSubprocessor::Process ( TMap *  dcsAliasMap)
virtual

Process this sub-task.

Store the config into the CDB So far there is no way this sub processor can fail...

Implements AliMUONVSubprocessor.

Definition at line 170 of file AliMUONConfigSubprocessor.cxx.

Int_t AliMUONConfigSubprocessor::ReadConfigFile ( const char *  filename)
private

Read the configuration from an ASCII file. Format of that file is one line per manu : BUS_PATCH MANU_ADDR Return kFALSE if reading was not successfull.

Definition at line 201 of file AliMUONConfigSubprocessor.cxx.

Referenced by Initialize().

Member Data Documentation

AliMUONVStore* AliMUONConfigSubprocessor::fConfig
private

! Configuration (i.e. list of (buspatch,manu)) for the MUON TRK

Definition at line 42 of file AliMUONConfigSubprocessor.h.

Referenced by Initialize(), Print(), Process(), ReadConfigFile(), and ~AliMUONConfigSubprocessor().

Bool_t AliMUONConfigSubprocessor::fConfigChanged
private

! flag to trigger the saving of the configuration

Definition at line 43 of file AliMUONConfigSubprocessor.h.

Referenced by Initialize(), and Process().


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