AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONGainEventGenerator Class Reference

Generate gain-calibration-like files. More...

#include <AliMUONGainEventGenerator.h>

Inheritance diagram for AliMUONGainEventGenerator:

Public Member Functions

 AliMUONGainEventGenerator (Int_t sourceGainRunNumber, Int_t sourcePedRunNumber, Int_t nEventsPerFile, const char *dateBaseFileName)
 
virtual ~AliMUONGainEventGenerator ()
 
virtual void Exec (Option_t *option)
 

Private Member Functions

 AliMUONGainEventGenerator (const AliMUONGainEventGenerator &rhs)
 not implemented More...
 
AliMUONGainEventGeneratoroperator= (const AliMUONGainEventGenerator &rhs)
 not implemented More...
 
void GeneratePedestals (Int_t runNumber, Float_t injection)
 
void WriteToCDB (TObject *object, Int_t runNumber)
 

Private Attributes

Int_t fNofEventsPerFile
 ! number of events to generate per file More...
 
Int_t fSourcePedestalRunNumber
 ! run number of pedestal to be used More...
 
TString fDateBaseFileName
 ! base file name of the output file More...
 
AliMUONVStorefSourceGains
 ! the gains used to generate the files More...
 
AliMUONVStorefSourcePedestals
 ! the pedestals used to generate the fiels More...
 

Detailed Description

Generate gain-calibration-like files.

Generate raw data files that mimics the one we'll get from the online gain calibration procedure.

We start from one set of gain values, and one set of pedestal values, to be found in the OCDB (generated e.g. with AliMUONCDB class)

We then use those gains and to generate n sets of pedestal values, that we store in OCDB in runs = [firstRunNumber+1,...firstRunNumber+n-1]

Then we loop from 0 to n-1, and for each, we generate a pedestal file, using AliMUONPedestalEventGenerator, where the pedestals used are those stored in the previous step.

Output files are supposed to be processed by the MUONTRKda (gain part) to produce 4 (one per LDC) ascii files (with computed gain values), that in turn will be processed by the Shuttle to put gain values in the OCDB. Those last gains in OCDB can be then compared with the ones generated in the first step, to check that everything is OK in the whole procedure.

Author
Laurent Aphecetche

Definition at line 25 of file AliMUONGainEventGenerator.h.

Constructor & Destructor Documentation

AliMUONGainEventGenerator::AliMUONGainEventGenerator ( Int_t  sourceGainRunNumber,
Int_t  sourcePedRunNumber,
Int_t  nEventsPerFile,
const char *  dateBaseFileName 
)

Ctor

Definition at line 64 of file AliMUONGainEventGenerator.cxx.

AliMUONGainEventGenerator::~AliMUONGainEventGenerator ( )
virtual

dtor

Definition at line 88 of file AliMUONGainEventGenerator.cxx.

AliMUONGainEventGenerator::AliMUONGainEventGenerator ( const AliMUONGainEventGenerator rhs)
private

not implemented

Member Function Documentation

void AliMUONGainEventGenerator::Exec ( Option_t *  option)
virtual

Main method

Definition at line 97 of file AliMUONGainEventGenerator.cxx.

void AliMUONGainEventGenerator::GeneratePedestals ( Int_t  runNumber,
Float_t  injection 
)
private

Generate "pedestal" values for a given run, by "decalibrating" charge injection

Definition at line 133 of file AliMUONGainEventGenerator.cxx.

Referenced by Exec().

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

not implemented

void AliMUONGainEventGenerator::WriteToCDB ( TObject *  object,
Int_t  runNumber 
)
private

Write a given object to OCDB

Definition at line 182 of file AliMUONGainEventGenerator.cxx.

Referenced by GeneratePedestals().

Member Data Documentation

TString AliMUONGainEventGenerator::fDateBaseFileName
private

! base file name of the output file

Definition at line 48 of file AliMUONGainEventGenerator.h.

Referenced by Exec().

Int_t AliMUONGainEventGenerator::fNofEventsPerFile
private

! number of events to generate per file

Definition at line 46 of file AliMUONGainEventGenerator.h.

Referenced by Exec().

AliMUONVStore* AliMUONGainEventGenerator::fSourceGains
private

! the gains used to generate the files

Definition at line 49 of file AliMUONGainEventGenerator.h.

Referenced by GeneratePedestals(), and ~AliMUONGainEventGenerator().

Int_t AliMUONGainEventGenerator::fSourcePedestalRunNumber
private

! run number of pedestal to be used

Definition at line 47 of file AliMUONGainEventGenerator.h.

Referenced by Exec().

AliMUONVStore* AliMUONGainEventGenerator::fSourcePedestals
private

! the pedestals used to generate the fiels

Definition at line 50 of file AliMUONGainEventGenerator.h.

Referenced by GeneratePedestals(), and ~AliMUONGainEventGenerator().


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