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

Converts ASCII calibration files (ped, gains, capa) into AliMUONVStore object. More...

#include <AliMUONTrackerIO.h>

Inheritance diagram for AliMUONTrackerIO:

Public Types

enum  ErrorCode {
  kCannotOpenFile = -1, kDummyFile = -2, kFormatError = -3, kNoInfoFile = -4,
  kNoMapping = -99
}
 Error code constants. More...
 

Public Member Functions

 AliMUONTrackerIO ()
 
virtual ~AliMUONTrackerIO ()
 

Static Public Member Functions

static Int_t ReadConfig (const char *filename, AliMUONVStore &confStore)
 
static Int_t DecodeConfig (const char *data, AliMUONVStore &confStore)
 
static Int_t WriteConfig (ofstream &out, const AliMUONVStore &confStore)
 
static Int_t ReadPedestals (const char *filename, AliMUONVStore &pedStore)
 
static Int_t DecodePedestals (const char *data, AliMUONVStore &pedStore)
 
static Int_t ReadGains (const char *filename, AliMUONVStore &gainStore, TString &comment)
 
static Int_t DecodeGains (const char *data, AliMUONVStore &gainStore, TString &comment)
 
static Int_t ReadOccupancy (const char *filename, AliMUONVStore &occupancyMap)
 
static Int_t DecodeOccupancy (const char *data, AliMUONVStore &occupancyMap)
 
static Int_t ReadCapacitances (const char *filename, AliMUONVStore &capaStore)
 
static Int_t DecodeCapacitances (const char *data, AliMUONVStore &capaStore)
 

Detailed Description

Converts ASCII calibration files (ped, gains, capa) into AliMUONVStore object.

Reader class for ASCII calibration files for MUON tracker : converts those ASCII files into AliMUONVStore (suitable to e.g. feed the OCDB).

Author
Laurent Aphecetche, Subatech

Definition at line 24 of file AliMUONTrackerIO.h.

Member Enumeration Documentation

Error code constants.

Enumerator
kCannotOpenFile 
kDummyFile 

cannot open given file

kFormatError 

file is a dummy one (e.g. some intermediate gain files from the DA)

kNoInfoFile 

file is not of the expected format

kNoMapping 

file is "empty", i.e. contains to information but that's normal

Definition at line 47 of file AliMUONTrackerIO.h.

Constructor & Destructor Documentation

AliMUONTrackerIO::AliMUONTrackerIO ( )

ctor

Definition at line 54 of file AliMUONTrackerIO.cxx.

AliMUONTrackerIO::~AliMUONTrackerIO ( )
virtual

dtor

Definition at line 60 of file AliMUONTrackerIO.cxx.

Member Function Documentation

Int_t AliMUONTrackerIO::DecodeCapacitances ( const char *  data,
AliMUONVStore capaStore 
)
static

Read capacitances and append the read values into the given VStore To be used when the input is a string (for instance when getting data from AMORE DB).

Definition at line 462 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), and ReadCapacitances().

Int_t AliMUONTrackerIO::DecodeConfig ( const char *  data,
AliMUONVStore confStore 
)
static

Read config data (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a TString (for instance when getting data from AMORE DB).

Definition at line 541 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), ReadConfig(), and AliMUONCDB::WriteConfig().

Int_t AliMUONTrackerIO::DecodeGains ( const char *  data,
AliMUONVStore gainStore,
TString &  comment 
)
static

Read gain file (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a string (for instance when getting data from AMORE DB).

Definition at line 280 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), and ReadGains().

Int_t AliMUONTrackerIO::DecodeOccupancy ( const char *  data,
AliMUONVStore occupancyMap 
)
static

Decode occupancy string created append values to the occupancyMap store. Expected format of the file is : busPatchId manuId sumofn nevt

DA could not produce information (because run failed somehow). That's OK, but let the world know about it

Definition at line 96 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), and ReadOccupancy().

Int_t AliMUONTrackerIO::DecodePedestals ( const char *  data,
AliMUONVStore pedStore 
)
static

Read pedestal Data (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a TString (for instance when getting data from AMORE DB).

Definition at line 199 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), and ReadPedestals().

Int_t AliMUONTrackerIO::ReadCapacitances ( const char *  filename,
AliMUONVStore capaStore 
)
static

Read capacitance file and append the read values into the given VStore

Definition at line 437 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONCDB::MakeCapacitanceStore().

Int_t AliMUONTrackerIO::ReadConfig ( const char *  filename,
AliMUONVStore confStore 
)
static

Read config file (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a file (for instance when reading data from the OCDB).

Definition at line 514 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONPedestalSubprocessor::ReadConfigFile().

Int_t AliMUONTrackerIO::ReadGains ( const char *  filename,
AliMUONVStore gainStore,
TString &  comment 
)
static

Read gain file (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a file (for instance when reading data from the OCDB).

Definition at line 249 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONGainSubprocessor::ReadFile().

Int_t AliMUONTrackerIO::ReadOccupancy ( const char *  filename,
AliMUONVStore occupancyMap 
)
static

Read occupancy file created by online DA and append values to the occupancyMap store. Expected format of the file is : busPatchId manuId sumofn nevt

Definition at line 67 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONOccupancySubprocessor::ReadFile().

Int_t AliMUONTrackerIO::ReadPedestals ( const char *  filename,
AliMUONVStore pedStore 
)
static

Read pedestal file (produced by the MUONTRKda.exe program for instance) and append the read values into the given VStore To be used when the input is a file (for instance when reading data from the OCDB).

Definition at line 171 of file AliMUONTrackerIO.cxx.

Referenced by AliMUONPedestalSubprocessor::ReadPedestalFile().

Int_t AliMUONTrackerIO::WriteConfig ( ofstream &  out,
const AliMUONVStore confStore 
)
static

Write the conf store as an ASCII file Note that we are converting (back) the detElemId into a busPatchId Return the number of lines written

Definition at line 587 of file AliMUONTrackerIO.cxx.


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