AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPedestalEventGenerator Class Reference

Generate pedestal events (only for tracker). More...

#include <AliMUONPedestalEventGenerator.h>

Inheritance diagram for AliMUONPedestalEventGenerator:

Public Member Functions

 AliMUONPedestalEventGenerator (Int_t runNumber, Int_t nevents, const char *dateFileName)
 
virtual ~AliMUONPedestalEventGenerator ()
 
void Exec (Option_t *option)
 
void MakeDDL (Bool_t value)
 Set option whether to generate DDL ascii files or not. More...
 

Private Member Functions

 AliMUONPedestalEventGenerator (const AliMUONPedestalEventGenerator &)
 Not implemented. More...
 
AliMUONPedestalEventGeneratoroperator= (const AliMUONPedestalEventGenerator &)
 Not implemented. More...
 
Bool_t ConvertRawFilesToDate ()
 
AliMUONVDigitStoreDigitStore ()
 
void GenerateDigits (AliMUONVDigitStore &digitStore)
 
AliRunLoader * LoadRun (const char *mode)
 
void Digits2Raw (Int_t event)
 

Private Attributes

AliMUONCalibrationDatafCalibrationData
 ! access to pedestal CDB More...
 
TString fDateFileName
 ! basefilename of the DATE output file More...
 
TString fGAliceFileName
 ! absolute path to galice.root file More...
 
Bool_t fMakeDDL
 ! whether to generate DDL ascii files or not More...
 
AliLoader * fLoader
 ! to access trees More...
 
AliMUONVStorefPedestals
 ! pedestals More...
 
AliMUONVDigitStorefDigitStore
 ! digit container More...
 
AliMUONRawWriterfRawWriter
 ! to convert digits to raw data More...
 

Static Private Attributes

static Int_t fgCounter
 ! counter More...
 

Detailed Description

Generate pedestal events (only for tracker).

Generate simulated pedestal events for MUON TRK, to be able to e.g. test online calibration routines.

The pedestals themselves are taken from the CDB. What we get from the CDB is, per channel, the mean and the sigma of the pedestal. We then use those informations to randomly get the pedestals for each channel, for each event (picking in a gaus(mean,sigma)).

Output can be just digits, or digits + raw (ddl), or digits + raw (ddl)

  • raw (date files, one per LDC), depending of ctor and MakeDDL() method.
Author
L. Aphecetche

Definition at line 30 of file AliMUONPedestalEventGenerator.h.

Constructor & Destructor Documentation

AliMUONPedestalEventGenerator::AliMUONPedestalEventGenerator ( Int_t  runNumber,
Int_t  nevents,
const char *  dateFileName 
)

Will generate pedestals according to (mean,sigma)s found in CDB for run runNumber. Will generate nevents events If filename is != "", it will be the basename of the output LDC files

Definition at line 82 of file AliMUONPedestalEventGenerator.cxx.

AliMUONPedestalEventGenerator::~AliMUONPedestalEventGenerator ( )
virtual

dtor

Definition at line 136 of file AliMUONPedestalEventGenerator.cxx.

AliMUONPedestalEventGenerator::AliMUONPedestalEventGenerator ( const AliMUONPedestalEventGenerator )
private

Not implemented.

Member Function Documentation

Bool_t AliMUONPedestalEventGenerator::ConvertRawFilesToDate ( )
private

convert raw data DDL files to DATE files with the program "dateStream". we make one file per LDC

Definition at line 147 of file AliMUONPedestalEventGenerator.cxx.

Referenced by Exec().

void AliMUONPedestalEventGenerator::Digits2Raw ( Int_t  event)
private

Converts digits (from MUON.Digits.root file) to Raw DDL ascii files.

Definition at line 320 of file AliMUONPedestalEventGenerator.cxx.

Referenced by Exec().

AliMUONVDigitStore * AliMUONPedestalEventGenerator::DigitStore ( )
private

Return digt container; create it if it does not exist

Definition at line 238 of file AliMUONPedestalEventGenerator.cxx.

Referenced by Digits2Raw(), and Exec().

void AliMUONPedestalEventGenerator::Exec ( Option_t *  option)

Main steering method

Definition at line 248 of file AliMUONPedestalEventGenerator.cxx.

void AliMUONPedestalEventGenerator::GenerateDigits ( AliMUONVDigitStore digitStore)
private

Generate digits (where ADC is set to pedestal value) for all MUON TRK and for 1 event.

Definition at line 354 of file AliMUONPedestalEventGenerator.cxx.

Referenced by Exec().

AliRunLoader * AliMUONPedestalEventGenerator::LoadRun ( const char *  mode)
private

Get access to AliRunLoader object

Definition at line 438 of file AliMUONPedestalEventGenerator.cxx.

Referenced by ConvertRawFilesToDate(), and Exec().

void AliMUONPedestalEventGenerator::MakeDDL ( Bool_t  value)
inline

Set option whether to generate DDL ascii files or not.

Definition at line 39 of file AliMUONPedestalEventGenerator.h.

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

Not implemented.

Member Data Documentation

AliMUONCalibrationData* AliMUONPedestalEventGenerator::fCalibrationData
private

! access to pedestal CDB

Definition at line 54 of file AliMUONPedestalEventGenerator.h.

Referenced by ~AliMUONPedestalEventGenerator().

TString AliMUONPedestalEventGenerator::fDateFileName
private

! basefilename of the DATE output file

Definition at line 55 of file AliMUONPedestalEventGenerator.h.

Referenced by ConvertRawFilesToDate(), and Exec().

AliMUONVDigitStore* AliMUONPedestalEventGenerator::fDigitStore
private

! digit container

Definition at line 60 of file AliMUONPedestalEventGenerator.h.

Referenced by DigitStore(), and ~AliMUONPedestalEventGenerator().

TString AliMUONPedestalEventGenerator::fGAliceFileName
private

! absolute path to galice.root file

Definition at line 56 of file AliMUONPedestalEventGenerator.h.

Referenced by LoadRun().

Int_t AliMUONPedestalEventGenerator::fgCounter
staticprivate

! counter

Definition at line 62 of file AliMUONPedestalEventGenerator.h.

Referenced by GenerateDigits(), and ~AliMUONPedestalEventGenerator().

AliLoader* AliMUONPedestalEventGenerator::fLoader
private

! to access trees

Definition at line 58 of file AliMUONPedestalEventGenerator.h.

Referenced by ConvertRawFilesToDate(), Exec(), and LoadRun().

Bool_t AliMUONPedestalEventGenerator::fMakeDDL
private

! whether to generate DDL ascii files or not

Definition at line 57 of file AliMUONPedestalEventGenerator.h.

Referenced by Exec(), and MakeDDL().

AliMUONVStore* AliMUONPedestalEventGenerator::fPedestals
private

! pedestals

Definition at line 59 of file AliMUONPedestalEventGenerator.h.

Referenced by Exec(), and GenerateDigits().

AliMUONRawWriter* AliMUONPedestalEventGenerator::fRawWriter
private

! to convert digits to raw data

Definition at line 61 of file AliMUONPedestalEventGenerator.h.

Referenced by Digits2Raw(), and ~AliMUONPedestalEventGenerator().


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