DM ASCII Files Format
[DataManager]


Detailed Description

The functions involved in reading/writing objects from/to ASCII files using the datamanager.

You will find here the required file formats and file naming convention.

The files are searched from a topdir, which is given by emcDataManager::GetSourceDir() (in reading mode) or emcDataManager::SetDestinationDir() (in write mode), within given subdirectories, depending on the object type.

topdir
 |
 |-Gains
 |
 |-HLRatio
 |
 |-IniCal
 |
 |   Absolute emcal energy calibration coefficients.
 |   0 to 8 files (1 file per emcal sector), extension = .INICAL (uppercase)
 |   for emcCalibrationData (of type kIniCal) objects
 |   see emcOMCalibrationData::Read
 |
 |-PEDESTALS
 |
 |-QA
 | 
 |-ToF
 |
 |-RejectList
 |
 |   List of bad/suspect towers
 |   1 single file = reject.list
 |   see emcOMRejectList::Read
 |


Functions

bool emcOMCalibrationDataIniCal::Read (emcManageable &object, const PHTimeStamp &time_stamp, int id)
 Read an emcCalibrationData object from ASCII file.
bool emcOMCalibrationDataIniCal::Write (const emcManageable &, const PHTimeStamp &, int)
 Write an emcCalibrationData object to ASCII file.
bool emcOMCalibrationDataTofSectorOffset::Read (emcManageable &object, int runnumber)
 Read an emcCalibrationData object from ASCII file.
bool emcOMCalibrationDataTofSectorOffset::Write (const emcManageable &, const PHTimeStamp &, int)
 Write an emcCalibrationData (flavour T0Sector) object to ASCII file.
bool emcOMRejectList::Read (emcManageable &object, const PHTimeStamp &time_stamp, int id)
 Should describe here the file format.


Function Documentation

bool emcOMRejectList::Read emcManageable object,
const PHTimeStamp &  time_stamp,
int  id
[virtual, inherited]
 

Should describe here the file format.

Implements emcObjectManager.

Definition at line 117 of file ascii/emcOMRejectList.C.

References emcObjectManager::DM(), EMC_INFO_MSG, emcDataManager::GetInstance(), emcNamed::GetName(), emcDataManager::GetSourceDir(), EmcIndexer::getTowerId(), EmcIndexer::IsValid(), and emcRejectList::set_or().

bool emcOMCalibrationDataTofSectorOffset::Read emcManageable object,
int  runnumber
[virtual, inherited]
 

Read an emcCalibrationData object from ASCII file.

The file read is named [topdir]/ToF/[runnumber]/[SECTOR].TOF_OFFSET, where:

The format of the file is (i_=integer,f_=float) :

i_runnumber i_events_used f_peak f_width f_gaussian_peak f_gaussian_width f_bbct0 f_bbct0rms f_toft0 f_toft0rms

Reimplemented from emcObjectManager.

Definition at line 161 of file emcOMCalibrationDataTofSectorOffset.C.

References EmcIndexer::EmcSectorId(), emcDataManager::GetInstance(), emcCalibrationData::GetNumber(), emcDataManager::GetSourceDir(), emcCalibrationData::GetType(), emcDataManager::GetVerboseLevel(), and emcCalibrationData::SetTypeAndSize().

bool emcOMCalibrationDataIniCal::Read emcManageable object,
const PHTimeStamp &  time_stamp,
int  id
[virtual, inherited]
 

Read an emcCalibrationData object from ASCII file.

The file read is named [topdir]/IniCal/[SECTOR].INICAL, where:

The format of each line of the file is:

FEM FEMCHANNEL C0 C1 C2

  • where (FEM,FEMCHANNEL) indentifies the tower, and (C0,C1,C2) are initial calibration values to be used to convert ADC values into GeV (usually by doing ADC *= C0*C1*C2).

See also:
EmcIndexer class for numbering stuff.

Implements emcObjectManager.

Definition at line 139 of file emcOMCalibrationDataIniCal.C.

References emcCalibrationData::GetNumber().

bool emcOMCalibrationDataTofSectorOffset::Write const emcManageable ,
const PHTimeStamp &  ,
int 
[virtual, inherited]
 

Write an emcCalibrationData (flavour T0Sector) object to ASCII file.

See also:
Read

Implements emcObjectManager.

Definition at line 214 of file emcOMCalibrationDataTofSectorOffset.C.

References emcCalibrationData::GetType(), and emcCalibrationData::kTofSectorOffset.

bool emcOMCalibrationDataIniCal::Write const emcManageable ,
const PHTimeStamp &  ,
int 
[virtual, inherited]
 

Write an emcCalibrationData object to ASCII file.

See also:
Read

Implements emcObjectManager.

Definition at line 195 of file emcOMCalibrationDataIniCal.C.

References createDirectory(), EmcIndexer::EmcSectorId(), expand(), emcDataManager::GetDestinationDir(), emcCalibrationData::GetDimension(), emcDataManager::GetInstance(), emcCalibrationData::GetNumber(), emcCalibrationData::GetSize(), emcCalibrationData::GetValue(), EmcIndexer::iSiSTiPX(), j, and EmcIndexer::PXPXSM144CH().