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

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

#include <AliMUONPedestalSubprocessor.h>

Inheritance diagram for AliMUONPedestalSubprocessor:

Public Member Functions

 AliMUONPedestalSubprocessor (AliMUONPreprocessor *master)
 
virtual ~AliMUONPedestalSubprocessor ()
 
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

 AliMUONPedestalSubprocessor (const AliMUONPedestalSubprocessor &)
 Not implemented. More...
 
AliMUONPedestalSubprocessoroperator= (const AliMUONPedestalSubprocessor &)
 Not implemented. More...
 
Int_t ReadPedestalFile (const char *filename)
 
Int_t ReadConfigFile (const char *filename)
 
Bool_t HasConfigChanged (const AliMUONVStore &newConfig) const
 

Private Attributes

AliMUONVStorefPedestals
 ! Pedestals for the MUON TRK More...
 
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...
 
Bool_t fTooFewEvents
 ! whether the current run was a failed ped run, basically 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 pedestals.

Implementation of AliMUONVSubprocessor class to deal with MUON TRK pedestals.

Pedestals are read in from an ascii file, with the format :
------------------------------------------------------------------------—
BUS_PATCH MANU_ADDR CHANNEL MEAN SIGMA
------------------------------------------------------------------------—

Author
L. Aphecetche

Definition at line 22 of file AliMUONPedestalSubprocessor.h.

Constructor & Destructor Documentation

AliMUONPedestalSubprocessor::AliMUONPedestalSubprocessor ( AliMUONPreprocessor master)

default ctor

Definition at line 56 of file AliMUONPedestalSubprocessor.cxx.

AliMUONPedestalSubprocessor::~AliMUONPedestalSubprocessor ( )
virtual

dtor

Definition at line 69 of file AliMUONPedestalSubprocessor.cxx.

AliMUONPedestalSubprocessor::AliMUONPedestalSubprocessor ( const AliMUONPedestalSubprocessor )
private

Not implemented.

Member Function Documentation

Bool_t AliMUONPedestalSubprocessor::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 78 of file AliMUONPedestalSubprocessor.cxx.

Referenced by Initialize().

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

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

Reimplemented from AliMUONVSubprocessor.

Definition at line 123 of file AliMUONPedestalSubprocessor.cxx.

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

Not implemented.

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

ouput to screen

Definition at line 346 of file AliMUONPedestalSubprocessor.cxx.

UInt_t AliMUONPedestalSubprocessor::Process ( TMap *  dcsAliasMap)
virtual

Process this sub-task.

Store the pedestals into the CDB

Implements AliMUONVSubprocessor.

Definition at line 222 of file AliMUONPedestalSubprocessor.cxx.

Int_t AliMUONPedestalSubprocessor::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 319 of file AliMUONPedestalSubprocessor.cxx.

Referenced by Initialize().

Int_t AliMUONPedestalSubprocessor::ReadPedestalFile ( const char *  filename)
private

Read the pedestals from an ASCII file.
Format of that file is one line per channel :
----------------------------------------------------------------------—
BUS_PATCH MANU_ADDR CHANNEL MEAN SIGMA
----------------------------------------------------------------------—

Return kFALSE if reading was not successfull.

Definition at line 290 of file AliMUONPedestalSubprocessor.cxx.

Referenced by Initialize().

Member Data Documentation

AliMUONVStore* AliMUONPedestalSubprocessor::fConfig
private

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

Definition at line 45 of file AliMUONPedestalSubprocessor.h.

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

Bool_t AliMUONPedestalSubprocessor::fConfigChanged
private

! flag to trigger the saving of the configuration

Definition at line 46 of file AliMUONPedestalSubprocessor.h.

Referenced by Initialize(), and Process().

AliMUONVStore* AliMUONPedestalSubprocessor::fPedestals
private

! Pedestals for the MUON TRK

Definition at line 44 of file AliMUONPedestalSubprocessor.h.

Referenced by Initialize(), Print(), Process(), ReadPedestalFile(), and ~AliMUONPedestalSubprocessor().

Bool_t AliMUONPedestalSubprocessor::fTooFewEvents
private

! whether the current run was a failed ped run, basically

Definition at line 47 of file AliMUONPedestalSubprocessor.h.

Referenced by Initialize(), and Process().


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