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

Implementation of the pedestal and gain computing. More...

#include <AliMUONGain.h>

Inheritance diagram for AliMUONGain:

Public Member Functions

 AliMUONGain ()
 
virtual ~AliMUONGain ()
 
TString WriteGainData (Int_t bp, Int_t manu, Int_t ch, Double_t p1, Double_t p2, Int_t threshold, Int_t q)
 
TString WriteGainHeader (Int_t nInit, Int_t nEntries, Int_t nbpf2, Int_t *numrun, Double_t *injCharge)
 
void MakePedStoreForGain (TString flatfile)
 Store Pedmean and sigma in pedestal-like ascii file. More...
 
void MakeGainStore (TString flatfile)
 Computes gain parameters and store in an ascii file. More...
 
void SetAliRootDataFileName (const char *name="MUONTRKGAINda_data.root")
 Set filename of root file containing pedmean and sigma values for each DAC value. More...
 
const char * GetRootDataFileName () const
 Get filename of root file containing pedmean and sigma values. More...
 
TString WriteDummyHeader ()
 Write Header in Dummy ascii file. More...
 
void SetAliInjCharge (Int_t charge)
 Set InjCharge = DAC value. More...
 
void SetAliPrintLevel (Int_t pri)
 Set PrintLevel. More...
 
void SetAliInit (Int_t ini)
 Set fnInit (=1: first DAC=0 removed to compute the fit) More...
 
void SetAliEntries (Int_t ent)
 Set nEntries = Nb of DAC values. More...
 
void SetAliNbpf1 (Int_t nf1)
 Set Nbpf1 = nb of DAC values for the linear fit. More...
 
void SetAliPlotLevel (Int_t plo)
 Set PlotLevel. More...
 
- Public Member Functions inherited from AliMUONPedestal
 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
 

Private Attributes

Int_t fInjCharge
 DAC value. More...
 
TString fRootDataFileName
 Root data file name. More...
 
Int_t fnInit
 fnInit (for expert) More...
 
Int_t fnEntries
 Nb of DAC values. More...
 
Int_t fnbpf1
 nb of DAC values for linear fit (for expert) More...
 
Int_t fPrintLevel
 Print level. More...
 
Int_t fPlotLevel
 Plot level. More...
 

Additional Inherited Members

- Protected Attributes inherited from AliMUONPedestal
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 inherited from AliMUONPedestal
static const Int_t fgkADCMax
 max channel count More...
 

Detailed Description

Implementation of the pedestal and gain computing.

Implementation of calibration computing

add

Author
Alberto Baldisseri, JL Charvet

Definition at line 16 of file AliMUONGain.h.

Constructor & Destructor Documentation

AliMUONGain::AliMUONGain ( )

Default constructor

Definition at line 96 of file AliMUONGain.cxx.

AliMUONGain::~AliMUONGain ( )
virtual

Destructor

Definition at line 111 of file AliMUONGain.cxx.

Member Function Documentation

const char* AliMUONGain::GetRootDataFileName ( ) const
inline

Get filename of root file containing pedmean and sigma values.

Definition at line 31 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::MakeGainStore ( TString  flatfile)

Computes gain parameters and store in an ascii file.

Store gains in ASCII files

Definition at line 265 of file AliMUONGain.cxx.

Referenced by main().

void AliMUONGain::MakePedStoreForGain ( TString  flatfile)

Store Pedmean and sigma in pedestal-like ascii file.

Store Pedmean and sigma to pedestal-like ascii file

Definition at line 135 of file AliMUONGain.cxx.

Referenced by main().

void AliMUONGain::SetAliEntries ( Int_t  ent)
inline

Set nEntries = Nb of DAC values.

Definition at line 41 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliInit ( Int_t  ini)
inline

Set fnInit (=1: first DAC=0 removed to compute the fit)

Definition at line 39 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliInjCharge ( Int_t  charge)
inline

Set InjCharge = DAC value.

Definition at line 35 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliNbpf1 ( Int_t  nf1)
inline

Set Nbpf1 = nb of DAC values for the linear fit.

Definition at line 43 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliPlotLevel ( Int_t  plo)
inline

Set PlotLevel.

Definition at line 45 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliPrintLevel ( Int_t  pri)
inline

Set PrintLevel.

Definition at line 37 of file AliMUONGain.h.

Referenced by main().

void AliMUONGain::SetAliRootDataFileName ( const char *  name = "MUONTRKGAINda_data.root")
inline

Set filename of root file containing pedmean and sigma values for each DAC value.

Definition at line 29 of file AliMUONGain.h.

Referenced by main().

TString AliMUONGain::WriteDummyHeader ( void  )

Write Header in Dummy ascii file.

Definition at line 117 of file AliMUONGain.cxx.

TString AliMUONGain::WriteGainData ( Int_t  bp,
Int_t  manu,
Int_t  ch,
Double_t  p1,
Double_t  p2,
Int_t  threshold,
Int_t  q 
)

Write calibration parameters per channel

Definition at line 254 of file AliMUONGain.cxx.

Referenced by MakeGainStore().

TString AliMUONGain::WriteGainHeader ( Int_t  nInit,
Int_t  nEntries,
Int_t  nbpf2,
Int_t *  numrun,
Double_t *  injCharge 
)

Header of the calibration output file

Definition at line 215 of file AliMUONGain.cxx.

Referenced by MakeGainStore().

Member Data Documentation

Int_t AliMUONGain::fInjCharge
private

DAC value.

Definition at line 48 of file AliMUONGain.h.

Referenced by MakePedStoreForGain(), SetAliInjCharge(), and WriteDummyHeader().

Int_t AliMUONGain::fnbpf1
private

nb of DAC values for linear fit (for expert)

Definition at line 52 of file AliMUONGain.h.

Referenced by MakeGainStore(), SetAliNbpf1(), and WriteGainHeader().

Int_t AliMUONGain::fnEntries
private

Nb of DAC values.

Definition at line 51 of file AliMUONGain.h.

Referenced by MakePedStoreForGain(), and SetAliEntries().

Int_t AliMUONGain::fnInit
private

fnInit (for expert)

Definition at line 50 of file AliMUONGain.h.

Referenced by MakeGainStore(), and SetAliInit().

Int_t AliMUONGain::fPlotLevel
private

Plot level.

Definition at line 54 of file AliMUONGain.h.

Referenced by MakeGainStore(), and SetAliPlotLevel().

Int_t AliMUONGain::fPrintLevel
private

Print level.

Definition at line 53 of file AliMUONGain.h.

Referenced by MakeGainStore(), MakePedStoreForGain(), and SetAliPrintLevel().

TString AliMUONGain::fRootDataFileName
private

Root data file name.

Definition at line 49 of file AliMUONGain.h.

Referenced by GetRootDataFileName(), MakeGainStore(), MakePedStoreForGain(), and SetAliRootDataFileName().


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