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

Implementation of the pedestal computing. More...

#include <AliMUONPedestal.h>

Inheritance diagram for AliMUONPedestal:

Public Member Functions

 AliMUONPedestal ()
 
 AliMUONPedestal (TRootIOCtor *dummy)
 
virtual ~AliMUONPedestal ()
 
void SetAliNCurrentEvents (Int_t events)
 return the number of current events More...
 
void SetAliNEvents (Int_t events)
 return the number of events More...
 
void SetAliRunNumber (Int_t run)
 return the Run number More...
 
void SetAliNChannel (Int_t nch)
 return the total number of channels (or pads) More...
 
void SetAlifilcout (ofstream *stream)
 output .log file of DAs More...
 
TTimeStamp * GetDate () const
 return date and time More...
 
AliMUONVStoreGetErrorBuspatchTable () const
 Count parity errors per Buspatch. More...
 
const char * GetHistoFileName () const
 return the name of DAPedestal .root file More...
 
void LoadConfig (const char *dbfile)
 load MuonTrk configuration from ascii dbfile More...
 
void MakePed (Int_t bp, Int_t manu, Int_t ch, Int_t charge)
 sum pedestal values for mean and sigma determination More...
 
void SetconfigDA (Int_t ind)
 set config flag More...
 
void SetHistos (Int_t ind)
 set Histos flag More...
 
void SetnEvthreshold (Int_t ind)
 set Nb of evt threshold to calculate pedestal More...
 
void SetStatusDA (Int_t ind)
 set DA status (return code) More...
 
Int_t GetStatusDA () const
 get DA status (return code) More...
 
void SetnSorting (Int_t ind)
 sorting flag More...
 
void SetprefixDA (const char *folder)
 set specific DA prefixname More...
 
void SetprefixLDC (const char *folder)
 set specific LDC prefixname More...
 
void SetAliIndex (Int_t ind)
 set the index of calibration runs More...
 
void Finalize ()
 Compute the pedestal data (mean, sigma) More...
 
void MakeASCIIoutput (ostream &out) const
 Create String to be put into file or AMORE DB. More...
 
void CreateControlHistos ()
 Create Histograms. More...
 
void MakeControlHistos ()
 Fill Histograms. More...
 
Int_t ADCMax () const
 

Protected Attributes

Int_t fNCurrentEvents
 Number of current events. More...
 
Int_t fNEvthreshold
 Nbevt threshold (pedestal calculation) More...
 
Int_t fSorting
 sorting flag (pedestal values) More...
 
Int_t fNEvents
 Number of events. More...
 
Int_t fRunNumber
 run number More...
 
Int_t fNChannel
 Nb of channels (pads) More...
 
Int_t fNManu
 Nb of Manu. More...
 
Int_t fNManuConfig
 Nb of Manu in the current detector configuration. More...
 
Int_t fConfig
 flag 1(0) for reading(or not) configuration ascii file More...
 
Int_t fStatusDA
 DA return code (0=OK) More...
 
Int_t fHistos
 flag for Histograms (0,1=standard, 2=ntuple with charge) More...
 
AliMUONVStorefErrorBuspatchTable
 Table for buspatches with parity errors. More...
 
AliMUONVStorefManuBuspatchTable
 Occupancy rate for each (buspatch, manu) More...
 
AliMUONVStorefManuBPoutofconfigTable
 (buspatch, manu) out of config More...
 
TTimeStamp * fDate
 date More...
 
ofstream * fFilcout
 .log output file More...
 
TString fHistoFileName
 .root histo file More...
 
AliMUONVStorefPedestalStore
 data container: (Pedmean,sigma) values for each (BP,manuId) More...
 
Int_t fIndex
 calibration run index More...
 
TString fPrefixDA
 specific DA prefixname More...
 
TString fPrefixLDC
 specific LDC prefixname More...
 
TFile * fHistoFile
 .root histo file More...
 
TTree * fTree
 charge Tree More...
 

Static Protected Attributes

static const Int_t fgkADCMax
 max channel count More...
 

Private Member Functions

 AliMUONPedestal (const AliMUONPedestal &rhs)
 Not implemented. More...
 
AliMUONPedestaloperator= (const AliMUONPedestal &rhs)
 Not implemented. More...
 

Detailed Description

Implementation of the pedestal computing.

Implementation of the pedestal computing

add

Author
Alberto Baldisseri, JL Charvet (05/05/2009)

Definition at line 31 of file AliMUONPedestal.h.

Constructor & Destructor Documentation

AliMUONPedestal::AliMUONPedestal ( )

Default constructor

Definition at line 56 of file AliMUONPedestal.cxx.

AliMUONPedestal::AliMUONPedestal ( TRootIOCtor *  dummy)

Root IO constructor

Definition at line 86 of file AliMUONPedestal.cxx.

AliMUONPedestal::~AliMUONPedestal ( )
virtual

Destructor

Definition at line 117 of file AliMUONPedestal.cxx.

AliMUONPedestal::AliMUONPedestal ( const AliMUONPedestal rhs)
private

Not implemented.

Member Function Documentation

Int_t AliMUONPedestal::ADCMax ( ) const
inline
void AliMUONPedestal::CreateControlHistos ( )

Create Histograms.

Definition at line 476 of file AliMUONPedestal.cxx.

Referenced by main().

void AliMUONPedestal::Finalize ( )

Compute the pedestal data (mean, sigma)

final polishing of the store

Definition at line 240 of file AliMUONPedestal.cxx.

Referenced by main(), and AliMUONGain::MakePedStoreForGain().

TTimeStamp* AliMUONPedestal::GetDate ( ) const
inline

return date and time

Definition at line 49 of file AliMUONPedestal.h.

Referenced by main().

AliMUONVStore* AliMUONPedestal::GetErrorBuspatchTable ( ) const
inline

Count parity errors per Buspatch.

Definition at line 51 of file AliMUONPedestal.h.

Referenced by main().

const char * AliMUONPedestal::GetHistoFileName ( ) const

return the name of DAPedestal .root file

Return the name of file we use to store histograms

Definition at line 128 of file AliMUONPedestal.cxx.

Referenced by main().

Int_t AliMUONPedestal::GetStatusDA ( ) const
inline

get DA status (return code)

Definition at line 68 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::LoadConfig ( const char *  dbfile)

load MuonTrk configuration from ascii dbfile

Load MUONTRK configuration from ascii file "dbfile" (in DetDB)

Definition at line 135 of file AliMUONPedestal.cxx.

Referenced by main().

void AliMUONPedestal::MakeASCIIoutput ( ostream &  out) const

Create String to be put into file or AMORE DB.

put pedestal store in the output stream

Definition at line 360 of file AliMUONPedestal.cxx.

Referenced by main(), and AliMUONGain::MakePedStoreForGain().

void AliMUONPedestal::MakeControlHistos ( )

Fill Histograms.

Create control histograms

Definition at line 483 of file AliMUONPedestal.cxx.

Referenced by main(), and AliMUONGain::MakePedStoreForGain().

void AliMUONPedestal::MakePed ( Int_t  bp,
Int_t  manu,
Int_t  ch,
Int_t  charge 
)

sum pedestal values for mean and sigma determination

Compute pedestals values

Definition at line 167 of file AliMUONPedestal.cxx.

Referenced by main().

AliMUONPedestal& AliMUONPedestal::operator= ( const AliMUONPedestal rhs)
private

Not implemented.

void AliMUONPedestal::SetAlifilcout ( ofstream *  stream)
inline

output .log file of DAs

Definition at line 47 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetAliIndex ( Int_t  ind)
inline

set the index of calibration runs

Definition at line 76 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetAliNChannel ( Int_t  nch)
inline

return the total number of channels (or pads)

Definition at line 45 of file AliMUONPedestal.h.

void AliMUONPedestal::SetAliNCurrentEvents ( Int_t  events)
inline

return the number of current events

Definition at line 39 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetAliNEvents ( Int_t  events)
inline

return the number of events

Definition at line 41 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetAliRunNumber ( Int_t  run)
inline

return the Run number

Definition at line 43 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetconfigDA ( Int_t  ind)
inline

set config flag

Definition at line 60 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetHistos ( Int_t  ind)
inline

set Histos flag

Definition at line 62 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetnEvthreshold ( Int_t  ind)
inline

set Nb of evt threshold to calculate pedestal

Definition at line 64 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetnSorting ( Int_t  ind)
inline

sorting flag

Definition at line 70 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetprefixDA ( const char *  folder)
inline

set specific DA prefixname

Definition at line 72 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetprefixLDC ( const char *  folder)
inline

set specific LDC prefixname

Definition at line 74 of file AliMUONPedestal.h.

Referenced by main().

void AliMUONPedestal::SetStatusDA ( Int_t  ind)
inline

set DA status (return code)

Definition at line 66 of file AliMUONPedestal.h.

Referenced by Finalize(), main(), and AliMUONGain::MakeGainStore().

Member Data Documentation

Int_t AliMUONPedestal::fConfig
protected

flag 1(0) for reading(or not) configuration ascii file

Definition at line 98 of file AliMUONPedestal.h.

Referenced by MakeASCIIoutput(), MakePed(), SetconfigDA(), and AliMUONGain::WriteGainHeader().

AliMUONVStore* AliMUONPedestal::fErrorBuspatchTable
protected

Table for buspatches with parity errors.

Definition at line 101 of file AliMUONPedestal.h.

Referenced by Finalize(), GetErrorBuspatchTable(), MakeASCIIoutput(), and ~AliMUONPedestal().

ofstream* AliMUONPedestal::fFilcout
protected

.log output file

Definition at line 106 of file AliMUONPedestal.h.

Referenced by SetAlifilcout().

const Int_t AliMUONPedestal::fgkADCMax
staticprotected

max channel count

Definition at line 115 of file AliMUONPedestal.h.

TFile* AliMUONPedestal::fHistoFile
protected

.root histo file

Definition at line 112 of file AliMUONPedestal.h.

Referenced by CreateControlHistos(), and MakeControlHistos().

TString AliMUONPedestal::fHistoFileName
protected

.root histo file

Definition at line 107 of file AliMUONPedestal.h.

Referenced by CreateControlHistos(), GetHistoFileName(), and AliMUONGain::MakeGainStore().

Int_t AliMUONPedestal::fHistos
protected

flag for Histograms (0,1=standard, 2=ntuple with charge)

Definition at line 100 of file AliMUONPedestal.h.

Referenced by MakePed(), and SetHistos().

Int_t AliMUONPedestal::fIndex
protected

calibration run index

Definition at line 109 of file AliMUONPedestal.h.

Referenced by MakeControlHistos(), AliMUONGain::MakeGainStore(), AliMUONGain::MakePedStoreForGain(), and SetAliIndex().

AliMUONVStore* AliMUONPedestal::fManuBPoutofconfigTable
protected

(buspatch, manu) out of config

Definition at line 103 of file AliMUONPedestal.h.

Referenced by MakeASCIIoutput(), MakePed(), and ~AliMUONPedestal().

AliMUONVStore* AliMUONPedestal::fManuBuspatchTable
protected

Occupancy rate for each (buspatch, manu)

Definition at line 102 of file AliMUONPedestal.h.

Referenced by Finalize(), LoadConfig(), MakeControlHistos(), MakePed(), and ~AliMUONPedestal().

Int_t AliMUONPedestal::fNChannel
protected

Nb of channels (pads)

Definition at line 95 of file AliMUONPedestal.h.

Referenced by Finalize(), LoadConfig(), MakeASCIIoutput(), MakePed(), SetAliNChannel(), and AliMUONGain::WriteGainHeader().

Int_t AliMUONPedestal::fNCurrentEvents
protected

Number of current events.

Definition at line 90 of file AliMUONPedestal.h.

Referenced by SetAliNCurrentEvents().

Int_t AliMUONPedestal::fNEvents
protected

Number of events.

Definition at line 93 of file AliMUONPedestal.h.

Referenced by Finalize(), MakeASCIIoutput(), SetAliNEvents(), and AliMUONGain::WriteGainHeader().

Int_t AliMUONPedestal::fNEvthreshold
protected

Nbevt threshold (pedestal calculation)

Definition at line 91 of file AliMUONPedestal.h.

Referenced by Finalize(), MakeASCIIoutput(), and SetnEvthreshold().

Int_t AliMUONPedestal::fNManu
protected

Nb of Manu.

Definition at line 96 of file AliMUONPedestal.h.

Referenced by MakeASCIIoutput(), MakePed(), and AliMUONGain::WriteGainHeader().

Int_t AliMUONPedestal::fNManuConfig
protected

Nb of Manu in the current detector configuration.

Definition at line 97 of file AliMUONPedestal.h.

Referenced by LoadConfig(), MakeASCIIoutput(), and AliMUONGain::WriteGainHeader().

AliMUONVStore* AliMUONPedestal::fPedestalStore
protected

data container: (Pedmean,sigma) values for each (BP,manuId)

Definition at line 108 of file AliMUONPedestal.h.

Referenced by Finalize(), LoadConfig(), MakeASCIIoutput(), MakeControlHistos(), MakePed(), AliMUONGain::MakePedStoreForGain(), and ~AliMUONPedestal().

TString AliMUONPedestal::fPrefixDA
protected
TString AliMUONPedestal::fPrefixLDC
protected
Int_t AliMUONPedestal::fSorting
protected

sorting flag (pedestal values)

Definition at line 92 of file AliMUONPedestal.h.

Referenced by MakeASCIIoutput(), and SetnSorting().

Int_t AliMUONPedestal::fStatusDA
protected

DA return code (0=OK)

Definition at line 99 of file AliMUONPedestal.h.

Referenced by GetStatusDA(), and SetStatusDA().

TTree* AliMUONPedestal::fTree
protected

charge Tree

Definition at line 113 of file AliMUONPedestal.h.

Referenced by MakePed().


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