/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Friends
DybDaq::FileTraits_v1_0 Class Reference

#include <FileTraits_v1_0.h>

Inheritance diagram for DybDaq::FileTraits_v1_0:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::FileTraits_v1_0:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< const char * > DetectorList
typedef struct tm FileDateTime
typedef std::vector
< BitsDefinition
Definitions

Public Member Functions

 FileTraits_v1_0 ()
 Creates an instance of this class.
virtual ~FileTraits_v1_0 ()
 Destroys this instance of the class.
virtual unsigned int majorVersion () const
 Returns the major version of the file format.
virtual unsigned int minorVersion () const
 Returns the minor version of the file format.
virtual const std::string versionString () const
 Returns the version of the file format as a string.
DaqTraits::DefinitionsbitsDefinitions (unsigned int element) const
virtual unsigned int illegalMarker () const
 Returns the index value for an illegal header.
virtual unsigned int illegalField () const
 Returns the index value for an illegal field.
virtual unsigned int recordSize (unsigned int marker) const
 Returns the size ot the 'empty' header for the supplied marker.
virtual const DetectorListdetectorList (const unsigned int mask) const
 Returns the list of detectors in the supplied mask.
virtual const char * detectorAsString (unsigned int line) const
 Returns the string for the detector in a detector mask.
virtual const std::string dateTimeAsString (const FileDateTime &time) const
 Returns the data and time, returned from a FileStartRecord or FileEndRecord, as a string.
const FileDateTimemakeDateTime (const time_t &time) const
 Returns the date and time built from a time_t instance.
unsigned int firstNameLengthOffset () const
 The offset with in a File Name Record of the length of the string.
unsigned int firstMetadataLengthOffset () const
 The offset with in a Metadata Record of the length of the string.
virtual unsigned int marker (unsigned int marker) const
virtual const char * boolAsString (bool value) const

Static Public Member Functions

static const char * key ()
 Returns a key for this verion, unique with FileTraits.
static const FileTraitsdefaultTraits ()
 Returns a default FeeTraits to bootstrap the system.
static const FileTraitsreadTraits (const char *&buffer)
 Returns the FeeTraits to use given the supplied buffer.

Static Public Attributes

static const unsigned int kIllegalRecord = 0xffffffffU
 The marker for an illegal record in a particular format.
static const unsigned int kFileStartRecord = 0
 The marker for the file_start_record.
static const unsigned int kFileNameStrings = FileTraits::kFileStartRecord + 1
 The marker for the file_name_strings.
static const unsigned int kMetadataStrings = FileTraits::kFileNameStrings + 1
 The marker for the metadata_strings.
static const unsigned int kRunParametersRecord = FileTraits::kMetadataStrings + 1
 The marker for the run_parameters_record.
static const unsigned int kCalibrationParametersRecord = FileTraits::kRunParametersRecord + 1
 The marker for the calibration_parameter_record.
static const unsigned int kMomParametersRecord = FileTraits::kFileEndMarker + 1
 The marker for the calibration_parameter_record.
static const unsigned int kDataSeparatorRecord = FileTraits::kCalibrationParametersRecord + 1
 The marker for the data_separator_record.
static const unsigned int kFileEndRecord = FileTraits::kDataSeparatorRecord + 1
 The marker for the file_end_record.
static const unsigned int kFileEndMarker = FileTraits::kFileEndRecord + 1
 The marker for the file_end_record.
static const unsigned int kIllegalField = 0xffffffffU
 The value for an illegal field in a particular format.
static const unsigned int kMarker = 0
 The index for an marker of block.
static const unsigned int kRecordSize = FileTraits::kMarker + 1
 The index for the length of this record in 4-byte words.
static const unsigned int kMajorVersion = FileTraits::kRecordSize + 1
 The field for the major version number.
static const unsigned int kMinorVersion = FileTraits::kMajorVersion + 1
 The field for the minor version number.
static const unsigned int kFileNumber = FileTraits::kMinorVersion + 1
 The field for the number of the file in the file sequence.
static const unsigned int kFileOpenDate = FileTraits::kFileNumber + 1
 The field for the date the field was opened.
static const unsigned int kFileOpenTime = FileTraits::kFileOpenDate + 1
 The field for the time the file was opened.
static const unsigned int kDataBlockLimit = FileTraits::kFileOpenTime + 1
 The field for maximum number of data blocks a file can contain.
static const unsigned int kMegabyteLimit = FileTraits::kDataBlockLimit + 1
 The field for maximum number of MBs a file can contain.
static const unsigned int kFirstNameLength = FileTraits::kMegabyteLimit + 1
 The field for length of the first string in FileNameStrings.
static const unsigned int kMetadataCount = FileTraits::kFirstNameLength + 1
 The field for number of metadata strings.
static const unsigned int kFirstMetadataLength = FileTraits::kMetadataCount + 1
 The field for length of the first metatdtat string.
static const unsigned int kFileRunNumber = FileTraits::kFirstMetadataLength + 1
 The field for the run number in the file.
static const unsigned int kRecordEnabled = FileTraits::kFileRunNumber + 1
 The field for the record enabled flag.
static const unsigned int kRunTriggerType = FileTraits::kRecordEnabled + 1
 The field for the run's trigger type.
static const unsigned int kRunDetectorMask = FileTraits::kRunTriggerType + 1
 The field for the run's detector mask.
static const unsigned int kCalibratingAd1 = 1
 The AD1 is being calibrated.
static const unsigned int kCalibratingAd2 = 2
 The AD2 is being calibrated.
static const unsigned int kCalibratingAd3 = 3
 The AD3 is being calibrated.
static const unsigned int kCalibratingAd4 = 4
 The AD4 is being calibrated.
static const unsigned int kCalibratingEh1 = 0x10
 The calibration of site EH1.
static const unsigned int kCalibratingEh2 = 0x20
 The calibration of site EH1.
static const unsigned int kCalibratingEh3 = 0x30
 The calibration of site EH1.
static const unsigned int kCalibratingSab = 0x60
 The calibration of site EH1.
static const unsigned int kLedSource = 1
 The calibration used the LED as its source.
static const unsigned int kAmC_Co60Source = 2
 The calibration used the LED as its source.
static const unsigned int kGe68Source = 3
 The calibration used the LED as its source.
static const unsigned int kCalibrationDetectorId = FileTraits::kRunDetectorMask + 1
 The field for the detector being calibrated.
static const unsigned int kCalibrationAxis = FileTraits::kCalibrationDetectorId + 1
 The field for the calibration axis.
static const unsigned int kCalibrationSourceId = FileTraits::kCalibrationAxis + 1
 The field for the source used in calibration.
static const unsigned int kCalibrationZPosition = FileTraits::kCalibrationSourceId + 1
 The field for the Z position of the calibration source.
static const unsigned int kCalibrationDuration = FileTraits::kCalibrationZPosition + 1
 The field for the length of calibration.
static const unsigned int kCalibrationLedFrequency = FileTraits::kCalibrationDuration + 1
 The field for the frequency at which the LED is flashed.
static const unsigned int kCalibrationLtbMode = FileTraits::kCalibrationLedFrequency + 1
 The field for LTB mode set during calibration.
static const unsigned int kBlockNumber = FileTraits::kCalibrationLtbMode + 1
 The field for the number of the block following a data_separator_record.
static const unsigned int kBlockLength = FileTraits::kBlockNumber + 1
 The field for the length of block following a data_separator_record.
static const unsigned int kFileCloseDate = FileTraits::kBlockLength + 1
 The field for the date the file was closed.
static const unsigned int kFileCloseTime = FileTraits::kFileCloseDate + 1
 The field for the date the file was closed.
static const unsigned int kFileEventCount = FileTraits::kFileCloseTime + 1
 The field for the number of event in the file.
static const unsigned int kFilePayloadSize = FileTraits::kFileEventCount + 1
 The field for the number of megabytes of payload event in the file.
static const unsigned int kRunEventCount = FileTraits::kFilePayloadSize + 1
 The field for the number of event in the run so far.
static const unsigned int kRunPayloadSize = FileTraits::kRunEventCount + 1
 The field for the number of megabytes of payload event in the run so far.
static const unsigned int kFileEndStatus = FileTraits::kRunPayloadSize + 1
 The field for the end status of the file (<>0 if last file in run).
static const unsigned int kEndFileMarker = FileTraits::kFileEndStatus + 1
 The field for the marker at the end of the file.
static const unsigned int kCalibrationAdNumber = FileTraits::kEndFileMarker + 1
 The field for the AD being calibrated.
static const unsigned int kCalibrationLedNumber1 = FileTraits::kCalibrationAdNumber + 1
 The field for the first LED.
static const unsigned int kCalibrationLedNumber2 = FileTraits::kCalibrationLedNumber1 + 1
 The field for the second LED.
static const unsigned int kCalibrationLedVoltage1 = FileTraits::kCalibrationLedNumber2 + 1
 The field for the first LED's voltage.
static const unsigned int kCalibrationLedVoltage2 = FileTraits::kCalibrationLedVoltage1 + 1
 The field for the second LED's voltage.
static const unsigned int kCalibrationLedPulseSeparation = FileTraits::kCalibrationLedVoltage2 + 1
 The field for the LED's pulse separation.
static const unsigned int kCalibrationSourceIdA = FileTraits::kCalibrationLedPulseSeparation + 1
 The field for the first calibration source.
static const unsigned int kCalibrationZPositionA = FileTraits::kCalibrationSourceIdA + 1
 The field for the Z position of the first calibration source.
static const unsigned int kCalibrationSourceIdB = FileTraits::kCalibrationZPositionA + 1
 The field for the second calibration source.
static const unsigned int kCalibrationZPositionB = FileTraits::kCalibrationSourceIdB + 1
 The field for the Z position of the second calibration source.
static const unsigned int kCalibrationSourceIdC = FileTraits::kCalibrationZPositionB + 1
 The field for the third calibration source.
static const unsigned int kCalibrationZPositionC = FileTraits::kCalibrationSourceIdC + 1
 The field for the Z position of the third calibration source.
static const unsigned int kCalibrationMotorPower = FileTraits::kCalibrationZPositionC + 1
 The field for the Calibration Motor Power.
static const unsigned int kCalibrationCameraPower = FileTraits::kCalibrationMotorPower + 1
 The field for the Calibration Camera Power.
static const unsigned int kCalibrationLedFlashing = FileTraits::kCalibrationCameraPower + 1
 The field for whether the Calibration LED is flashing.
static const unsigned int kCalibrationHomeA = kCalibrationLedFlashing + 1
 The field for Home A.
static const unsigned int kCalibrationHomeB = FileTraits::kCalibrationHomeA + 1
 The field for Home B.
static const unsigned int kCalibrationHomeC = FileTraits::kCalibrationHomeB + 1
 The field for Home C.
static const unsigned int kMomDetectorId = FileTraits::kCalibrationHomeC + 1
 The field for the MOM Detector Id.
static const unsigned int kMomAdNumber = FileTraits::kMomDetectorId + 1
 The field for the MOM AD Number.
static const unsigned int kMomSourceType = FileTraits::kMomAdNumber + 1
 The field for the MOM Source type.
static const unsigned int kMomPulsePeriod = FileTraits::kMomSourceType + 1
 The field for the MOM pulse period.
static const unsigned int kMomLedBias = FileTraits::kMomPulsePeriod + 1
 The field for the MOM LED Bias.
static const unsigned int kMomLedWavelength = FileTraits::kMomLedBias + 1
 The field for the wavelength of the MOM LED.
static const unsigned int kMomPulseWidth = FileTraits::kMomLedWavelength + 1
 The field for the width of the MOM Pulse.

Protected Member Functions

virtual const unsigned int * recordSizes () const
 Returns the size of 'empty' records.
virtual unsigned int detectorListEnd () const
 Returns the one-past-the-end of the detector list.
virtual const char ** detectorStrings () const
 Returns the list of detector strings order by placement in detector mask.
virtual unsigned int markersEnd () const
 Returns the one-past-the-end of valid markers.
virtual const unsigned int * markers () const
 Returns the markers for the records.
virtual unsigned int fieldsEnd () const
 Returns the maximum field value for a particluar format.
virtual const unsigned int * indices () const
 Returns the indices of shifts for fields.
virtual const unsigned int * shifts () const
 Returns the array of shifts for fields.
virtual const unsigned int * masks () const
 Returns the array of marks for fields.
virtual const std::string * descriptions () const
 Returns the array of descriptions for fields.
virtual DaqTraits::Definitionsdefinitions (unsigned int component) const
 Returns the array of bits definitions for a compement.
virtual void setDefinitions (DaqTraits::Definitions *definitions, unsigned int component)
 Sets the array of bits definitions for a compoment.
virtual const unsigned int * componentFields (unsigned int component) const
 Sets the array of fields for a compoment.
virtual const unsigned int componentFieldsEnd (unsigned int component) const
 Returns the maximum indexthe array of fields for a compoment.
unsigned int index (unsigned int field) const

Static Protected Member Functions

static unsigned int readUnsignedInt (const char *&buffer, const DaqTraits &traits, unsigned int field)

Private Member Functions

 FileTraits_v1_0 (FileTraits_v1_0 &rhs)
 Suppress default.
FileTraits_v1_0operator= (FileTraits_v1_0 &rhs)
 Suppress default.

Friends

friend class DaqBuffer

Detailed Description

Definition at line 17 of file FileTraits_v1_0.h.


Member Typedef Documentation

typedef std::vector<const char*> DybDaq::FileTraits::DetectorList [inherited]

Definition at line 24 of file FileTraits.h.

typedef struct tm DybDaq::FileTraits::FileDateTime [inherited]

Definition at line 26 of file FileTraits.h.


Constructor & Destructor Documentation

FileTraits_v1_0::FileTraits_v1_0 ( )

Creates an instance of this class.

Definition at line 395 of file FileTraits_v1_0.cc.

                                 {
}
FileTraits_v1_0::~FileTraits_v1_0 ( ) [virtual]

Destroys this instance of the class.

Definition at line 398 of file FileTraits_v1_0.cc.

                                  {
}
DybDaq::FileTraits_v1_0::FileTraits_v1_0 ( FileTraits_v1_0 rhs) [private]

Suppress default.


Member Function Documentation

const char * FileTraits_v1_0::key ( ) [static]

Returns a key for this verion, unique with FileTraits.

Definition at line 401 of file FileTraits_v1_0.cc.

                                 {
    return "File Format 1.0";
}
unsigned int FileTraits_v1_0::majorVersion ( ) const [virtual]

Returns the major version of the file format.

Implements DybDaq::DaqTraits.

Definition at line 405 of file FileTraits_v1_0.cc.

                                                 {
    return 1U;
}
unsigned int FileTraits_v1_0::minorVersion ( ) const [virtual]

Returns the minor version of the file format.

Implements DybDaq::DaqTraits.

Definition at line 409 of file FileTraits_v1_0.cc.

                                                 {
    return 0U;
}
const string FileTraits_v1_0::versionString ( ) const [virtual]

Returns the version of the file format as a string.

Implements DybDaq::DaqTraits.

Definition at line 413 of file FileTraits_v1_0.cc.

                                                  {
    return key();
}
DaqTraits::Definitions& DybDaq::FileTraits_v1_0::bitsDefinitions ( unsigned int  element) const

Reimplemented from DybDaq::DaqTraits.

const unsigned int * FileTraits_v1_0::recordSizes ( ) const [protected, virtual]

Returns the size of 'empty' records.

Implements DybDaq::FileTraits.

Definition at line 421 of file FileTraits_v1_0.cc.

                                                       {
    return m_recordSizes;
}
unsigned int FileTraits_v1_0::detectorListEnd ( ) const [protected, virtual]

Returns the one-past-the-end of the detector list.

Implements DybDaq::FileTraits.

Definition at line 425 of file FileTraits_v1_0.cc.

                                                    {
    return 24U;
}
const char ** FileTraits_v1_0::detectorStrings ( ) const [protected, virtual]

Returns the list of detector strings order by placement in detector mask.

Implements DybDaq::FileTraits.

Definition at line 429 of file FileTraits_v1_0.cc.

                                                    {
    return m_detectors;
}
unsigned int FileTraits_v1_0::markersEnd ( ) const [protected, virtual]

Returns the one-past-the-end of valid markers.

Implements DybDaq::DaqTraits.

Definition at line 417 of file FileTraits_v1_0.cc.

                                               {
    return kEndFileMarker + 1;
}
const unsigned int * FileTraits_v1_0::markers ( ) const [protected, virtual]

Returns the markers for the records.

Implements DybDaq::DaqTraits.

Definition at line 433 of file FileTraits_v1_0.cc.

                                                   {
    return m_markers;
}
unsigned int FileTraits_v1_0::fieldsEnd ( ) const [protected, virtual]

Returns the maximum field value for a particluar format.

Implements DybDaq::DaqTraits.

Definition at line 437 of file FileTraits_v1_0.cc.

                                              {
    return kCalibrationHomeC + 1;
}
const unsigned int * FileTraits_v1_0::indices ( ) const [protected, virtual]

Returns the indices of shifts for fields.

Implements DybDaq::DaqTraits.

Definition at line 441 of file FileTraits_v1_0.cc.

                                                   {
    return m_indices;
}
const unsigned int * FileTraits_v1_0::shifts ( ) const [protected, virtual]

Returns the array of shifts for fields.

Implements DybDaq::DaqTraits.

Definition at line 445 of file FileTraits_v1_0.cc.

                                                  {
    return m_shifts;
}
const unsigned int * FileTraits_v1_0::masks ( ) const [protected, virtual]

Returns the array of marks for fields.

Implements DybDaq::DaqTraits.

Definition at line 449 of file FileTraits_v1_0.cc.

                                                 {
    return m_masks;
}
const std::string * FileTraits_v1_0::descriptions ( ) const [protected, virtual]

Returns the array of descriptions for fields.

Reimplemented from DybDaq::DaqTraits.

Definition at line 453 of file FileTraits_v1_0.cc.

                                                     {
    return m_description;
}
DaqTraits::Definitions * FileTraits_v1_0::definitions ( unsigned int  component) const [protected, virtual]

Returns the array of bits definitions for a compement.

Reimplemented from DybDaq::DaqTraits.

Definition at line 457 of file FileTraits_v1_0.cc.

                                                                               {
    return m_definitions[component];
}
void FileTraits_v1_0::setDefinitions ( DaqTraits::Definitions definitions,
unsigned int  component 
) [protected, virtual]

Sets the array of bits definitions for a compoment.

Reimplemented from DybDaq::DaqTraits.

Definition at line 461 of file FileTraits_v1_0.cc.

                                                             {
    m_definitions[component] = definitions;
}
const unsigned int * FileTraits_v1_0::componentFields ( unsigned int  component) const [protected, virtual]

Sets the array of fields for a compoment.

Reimplemented from DybDaq::DaqTraits.

Definition at line 466 of file FileTraits_v1_0.cc.

                                                                                 {
    return m_componentFields[component];
}
const unsigned int FileTraits_v1_0::componentFieldsEnd ( unsigned int  component) const [protected, virtual]

Returns the maximum indexthe array of fields for a compoment.

Reimplemented from DybDaq::DaqTraits.

Definition at line 470 of file FileTraits_v1_0.cc.

                                                                                   {
    return m_componentFieldsEnd[component];
}
FileTraits_v1_0& DybDaq::FileTraits_v1_0::operator= ( FileTraits_v1_0 rhs) [private]

Suppress default.

const FileTraits & FileTraits::defaultTraits ( ) [static, inherited]

Returns a default FeeTraits to bootstrap the system.

Definition at line 149 of file FileTraits.cc.

                                            {
    if (0 == m_allTraits.size()) {
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v0_6::key(),new FileTraits_v0_6()));
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v0_7::key(),new FileTraits_v0_7()));
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v0_8::key(),new FileTraits_v0_8()));
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v0_9::key(),new FileTraits_v0_9()));
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v1_0::key(),new FileTraits_v1_0()));
        m_allTraits.insert(std::pair<const char*, FileTraits*>(FileTraits_v1_1::key(),new FileTraits_v1_1()));
    }
    return *m_allTraits[FileTraits_v1_0::key()];
}
const FileTraits * FileTraits::readTraits ( const char *&  buffer) [static, inherited]

Returns the FeeTraits to use given the supplied buffer.

Definition at line 161 of file FileTraits.cc.

                                                            {
    const FileTraits& traits = defaultTraits(); 
    const unsigned int major = readUnsignedInt(buffer,
                                               traits,
                                               kMajorVersion);
    const unsigned int minor = readUnsignedInt(buffer,
                                               traits,
                                               kMinorVersion);
    const FileTraits* result = 0;
    if (0U == major && 6U == minor) {
        result = m_allTraits[FileTraits_v0_6::key()];
    } else if (0U == major && 7U == minor) {
        result = m_allTraits[FileTraits_v0_7::key()];
    } else if (0U == major && 8U == minor) {
        result = m_allTraits[FileTraits_v0_8::key()];
    } else if (0U == major && 9U == minor) {
        result = m_allTraits[FileTraits_v0_9::key()];
    } else if (1U == major && 0U == minor) {
        result = m_allTraits[FileTraits_v1_0::key()];
    } else if (1U == major && 1U == minor) {
        result = m_allTraits[FileTraits_v1_1::key()];
    }
    return result;
}
unsigned int FileTraits::illegalMarker ( ) const [virtual, inherited]

Returns the index value for an illegal header.

Implements DybDaq::DaqTraits.

Definition at line 186 of file FileTraits.cc.

                                             {
    return 0xffffffffU;
}
unsigned int FileTraits::illegalField ( ) const [virtual, inherited]

Returns the index value for an illegal field.

Implements DybDaq::DaqTraits.

Definition at line 190 of file FileTraits.cc.

                                            {
    return 0xffffffffU;
}
unsigned int FileTraits::recordSize ( unsigned int  marker) const [virtual, inherited]

Returns the size ot the 'empty' header for the supplied marker.

Definition at line 194 of file FileTraits.cc.

                                                             {
        if (marker >= markersEnd() || kFileEndMarker == marker) {
                return 0U;
        }
        return recordSizes()[marker];
}
const FileTraits::DetectorList * FileTraits::detectorList ( const unsigned int  mask) const [virtual, inherited]

Returns the list of detectors in the supplied mask.

Definition at line 201 of file FileTraits.cc.

                                                                                    {
    DetectorList* result = new DetectorList();
    unsigned int bit = 1;
    for (unsigned int line = 0; line != detectorListEnd(); ++ line) {
        if (mask & bit) {
            result->push_back(detectorAsString(line));
        }
        bit = bit << 1;
    }
    return result;
}
const char * FileTraits::detectorAsString ( unsigned int  line) const [virtual, inherited]

Returns the string for the detector in a detector mask.

Definition at line 213 of file FileTraits.cc.

                                                                {
        if (line >= detectorListEnd()) {
                return "Unknown";
        }
    return detectorStrings()[line];
}
const string FileTraits::dateTimeAsString ( const FileDateTime time) const [virtual, inherited]

Returns the data and time, returned from a FileStartRecord or FileEndRecord, as a string.

Definition at line 220 of file FileTraits.cc.

                                                                        {
    char* dateTime = new char[kLengthOfDateTime];
    if (0 == strftime(dateTime,
                      kLengthOfDateTime,
                      "%Y-%m-%dT%H:%M:%S+0800",
                      &time)) {
        return "0000-00-00T00:00:00+0800";
    };
    dateTime[kLengthOfDateTime - 1] = 0;
    string result(dateTime);
    delete dateTime;
    return result;
}
const FileTraits::FileDateTime * FileTraits::makeDateTime ( const time_t &  time) const [inherited]

Returns the date and time built from a time_t instance.

Definition at line 234 of file FileTraits.cc.

                                                                               {
    FileDateTime* result = new FileDateTime(*(gmtime(&time)));
    return result;
}
unsigned int FileTraits::firstNameLengthOffset ( ) const [inherited]

The offset with in a File Name Record of the length of the string.

Definition at line 239 of file FileTraits.cc.

unsigned int FileTraits::firstMetadataLengthOffset ( ) const [inherited]

The offset with in a Metadata Record of the length of the string.

Definition at line 243 of file FileTraits.cc.


Member Data Documentation

const unsigned int FileTraits::kIllegalRecord = 0xffffffffU [static, inherited]

The marker for an illegal record in a particular format.

Definition at line 31 of file FileTraits.h.

const unsigned int FileTraits::kFileStartRecord = 0 [static, inherited]

The marker for the file_start_record.

Definition at line 38 of file FileTraits.h.

const unsigned int FileTraits::kFileNameStrings = FileTraits::kFileStartRecord + 1 [static, inherited]

The marker for the file_name_strings.

Definition at line 43 of file FileTraits.h.

const unsigned int FileTraits::kMetadataStrings = FileTraits::kFileNameStrings + 1 [static, inherited]

The marker for the metadata_strings.

Definition at line 48 of file FileTraits.h.

const unsigned int FileTraits::kRunParametersRecord = FileTraits::kMetadataStrings + 1 [static, inherited]

The marker for the run_parameters_record.

Definition at line 53 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationParametersRecord = FileTraits::kRunParametersRecord + 1 [static, inherited]

The marker for the calibration_parameter_record.

Definition at line 58 of file FileTraits.h.

const unsigned int FileTraits::kMomParametersRecord = FileTraits::kFileEndMarker + 1 [static, inherited]

The marker for the calibration_parameter_record.

(Added v1_1)

Definition at line 63 of file FileTraits.h.

const unsigned int FileTraits::kDataSeparatorRecord = FileTraits::kCalibrationParametersRecord + 1 [static, inherited]

The marker for the data_separator_record.

Definition at line 68 of file FileTraits.h.

const unsigned int FileTraits::kFileEndRecord = FileTraits::kDataSeparatorRecord + 1 [static, inherited]

The marker for the file_end_record.

Definition at line 73 of file FileTraits.h.

const unsigned int FileTraits::kFileEndMarker = FileTraits::kFileEndRecord + 1 [static, inherited]

The marker for the file_end_record.

Definition at line 78 of file FileTraits.h.

const unsigned int FileTraits::kIllegalField = 0xffffffffU [static, inherited]

The value for an illegal field in a particular format.

Definition at line 85 of file FileTraits.h.

const unsigned int FileTraits::kMarker = 0 [static, inherited]

The index for an marker of block.

Definition at line 90 of file FileTraits.h.

const unsigned int FileTraits::kRecordSize = FileTraits::kMarker + 1 [static, inherited]

The index for the length of this record in 4-byte words.

Definition at line 95 of file FileTraits.h.

const unsigned int FileTraits::kMajorVersion = FileTraits::kRecordSize + 1 [static, inherited]

The field for the major version number.

Definition at line 104 of file FileTraits.h.

const unsigned int FileTraits::kMinorVersion = FileTraits::kMajorVersion + 1 [static, inherited]

The field for the minor version number.

Definition at line 109 of file FileTraits.h.

const unsigned int FileTraits::kFileNumber = FileTraits::kMinorVersion + 1 [static, inherited]

The field for the number of the file in the file sequence.

Definition at line 114 of file FileTraits.h.

const unsigned int FileTraits::kFileOpenDate = FileTraits::kFileNumber + 1 [static, inherited]

The field for the date the field was opened.

Definition at line 119 of file FileTraits.h.

const unsigned int FileTraits::kFileOpenTime = FileTraits::kFileOpenDate + 1 [static, inherited]

The field for the time the file was opened.

Definition at line 124 of file FileTraits.h.

const unsigned int FileTraits::kDataBlockLimit = FileTraits::kFileOpenTime + 1 [static, inherited]

The field for maximum number of data blocks a file can contain.

Definition at line 129 of file FileTraits.h.

const unsigned int FileTraits::kMegabyteLimit = FileTraits::kDataBlockLimit + 1 [static, inherited]

The field for maximum number of MBs a file can contain.

Definition at line 134 of file FileTraits.h.

const unsigned int FileTraits::kFirstNameLength = FileTraits::kMegabyteLimit + 1 [static, inherited]

The field for length of the first string in FileNameStrings.

Definition at line 141 of file FileTraits.h.

const unsigned int FileTraits::kMetadataCount = FileTraits::kFirstNameLength + 1 [static, inherited]

The field for number of metadata strings.

Definition at line 148 of file FileTraits.h.

const unsigned int FileTraits::kFirstMetadataLength = FileTraits::kMetadataCount + 1 [static, inherited]

The field for length of the first metatdtat string.

Definition at line 153 of file FileTraits.h.

const unsigned int FileTraits::kFileRunNumber = FileTraits::kFirstMetadataLength + 1 [static, inherited]

The field for the run number in the file.

Definition at line 160 of file FileTraits.h.

const unsigned int FileTraits::kRecordEnabled = FileTraits::kFileRunNumber + 1 [static, inherited]

The field for the record enabled flag.

Definition at line 165 of file FileTraits.h.

const unsigned int FileTraits::kRunTriggerType = FileTraits::kRecordEnabled + 1 [static, inherited]

The field for the run's trigger type.

Definition at line 170 of file FileTraits.h.

const unsigned int FileTraits::kRunDetectorMask = FileTraits::kRunTriggerType + 1 [static, inherited]

The field for the run's detector mask.

Definition at line 175 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingAd1 = 1 [static, inherited]

The AD1 is being calibrated.

Definition at line 184 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingAd2 = 2 [static, inherited]

The AD2 is being calibrated.

Definition at line 189 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingAd3 = 3 [static, inherited]

The AD3 is being calibrated.

Definition at line 194 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingAd4 = 4 [static, inherited]

The AD4 is being calibrated.

Definition at line 199 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingEh1 = 0x10 [static, inherited]

The calibration of site EH1.

Definition at line 204 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingEh2 = 0x20 [static, inherited]

The calibration of site EH1.

Definition at line 209 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingEh3 = 0x30 [static, inherited]

The calibration of site EH1.

Definition at line 214 of file FileTraits.h.

const unsigned int FileTraits::kCalibratingSab = 0x60 [static, inherited]

The calibration of site EH1.

Definition at line 219 of file FileTraits.h.

const unsigned int FileTraits::kLedSource = 1 [static, inherited]

The calibration used the LED as its source.

Definition at line 224 of file FileTraits.h.

const unsigned int FileTraits::kAmC_Co60Source = 2 [static, inherited]

The calibration used the LED as its source.

Definition at line 229 of file FileTraits.h.

const unsigned int FileTraits::kGe68Source = 3 [static, inherited]

The calibration used the LED as its source.

Definition at line 234 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationDetectorId = FileTraits::kRunDetectorMask + 1 [static, inherited]

The field for the detector being calibrated.

Definition at line 241 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationAxis = FileTraits::kCalibrationDetectorId + 1 [static, inherited]

The field for the calibration axis.

Definition at line 246 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationSourceId = FileTraits::kCalibrationAxis + 1 [static, inherited]

The field for the source used in calibration.

Definition at line 251 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationZPosition = FileTraits::kCalibrationSourceId + 1 [static, inherited]

The field for the Z position of the calibration source.

Definition at line 256 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationDuration = FileTraits::kCalibrationZPosition + 1 [static, inherited]

The field for the length of calibration.

Definition at line 261 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedFrequency = FileTraits::kCalibrationDuration + 1 [static, inherited]

The field for the frequency at which the LED is flashed.

Definition at line 266 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLtbMode = FileTraits::kCalibrationLedFrequency + 1 [static, inherited]

The field for LTB mode set during calibration.

Definition at line 271 of file FileTraits.h.

const unsigned int FileTraits::kBlockNumber = FileTraits::kCalibrationLtbMode + 1 [static, inherited]

The field for the number of the block following a data_separator_record.

Definition at line 278 of file FileTraits.h.

const unsigned int FileTraits::kBlockLength = FileTraits::kBlockNumber + 1 [static, inherited]

The field for the length of block following a data_separator_record.

Definition at line 283 of file FileTraits.h.

const unsigned int FileTraits::kFileCloseDate = FileTraits::kBlockLength + 1 [static, inherited]

The field for the date the file was closed.

Definition at line 290 of file FileTraits.h.

const unsigned int FileTraits::kFileCloseTime = FileTraits::kFileCloseDate + 1 [static, inherited]

The field for the date the file was closed.

Definition at line 295 of file FileTraits.h.

const unsigned int FileTraits::kFileEventCount = FileTraits::kFileCloseTime + 1 [static, inherited]

The field for the number of event in the file.

Definition at line 300 of file FileTraits.h.

const unsigned int FileTraits::kFilePayloadSize = FileTraits::kFileEventCount + 1 [static, inherited]

The field for the number of megabytes of payload event in the file.

Definition at line 305 of file FileTraits.h.

const unsigned int FileTraits::kRunEventCount = FileTraits::kFilePayloadSize + 1 [static, inherited]

The field for the number of event in the run so far.

Definition at line 310 of file FileTraits.h.

const unsigned int FileTraits::kRunPayloadSize = FileTraits::kRunEventCount + 1 [static, inherited]

The field for the number of megabytes of payload event in the run so far.

Definition at line 315 of file FileTraits.h.

const unsigned int FileTraits::kFileEndStatus = FileTraits::kRunPayloadSize + 1 [static, inherited]

The field for the end status of the file (<>0 if last file in run).

Definition at line 320 of file FileTraits.h.

const unsigned int FileTraits::kEndFileMarker = FileTraits::kFileEndStatus + 1 [static, inherited]

The field for the marker at the end of the file.

Definition at line 325 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationAdNumber = FileTraits::kEndFileMarker + 1 [static, inherited]

The field for the AD being calibrated.

Definition at line 334 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedNumber1 = FileTraits::kCalibrationAdNumber + 1 [static, inherited]

The field for the first LED.

Definition at line 339 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedNumber2 = FileTraits::kCalibrationLedNumber1 + 1 [static, inherited]

The field for the second LED.

Definition at line 344 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedVoltage1 = FileTraits::kCalibrationLedNumber2 + 1 [static, inherited]

The field for the first LED's voltage.

Definition at line 349 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedVoltage2 = FileTraits::kCalibrationLedVoltage1 + 1 [static, inherited]

The field for the second LED's voltage.

Definition at line 354 of file FileTraits.h.

The field for the LED's pulse separation.

Definition at line 359 of file FileTraits.h.

The field for the first calibration source.

Definition at line 368 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationZPositionA = FileTraits::kCalibrationSourceIdA + 1 [static, inherited]

The field for the Z position of the first calibration source.

Definition at line 373 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationSourceIdB = FileTraits::kCalibrationZPositionA + 1 [static, inherited]

The field for the second calibration source.

Definition at line 378 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationZPositionB = FileTraits::kCalibrationSourceIdB + 1 [static, inherited]

The field for the Z position of the second calibration source.

Definition at line 383 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationSourceIdC = FileTraits::kCalibrationZPositionB + 1 [static, inherited]

The field for the third calibration source.

Definition at line 388 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationZPositionC = FileTraits::kCalibrationSourceIdC + 1 [static, inherited]

The field for the Z position of the third calibration source.

Definition at line 393 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationMotorPower = FileTraits::kCalibrationZPositionC + 1 [static, inherited]

The field for the Calibration Motor Power.

Definition at line 398 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationCameraPower = FileTraits::kCalibrationMotorPower + 1 [static, inherited]

The field for the Calibration Camera Power.

Definition at line 403 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationLedFlashing = FileTraits::kCalibrationCameraPower + 1 [static, inherited]

The field for whether the Calibration LED is flashing.

Definition at line 408 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationHomeA = kCalibrationLedFlashing + 1 [static, inherited]

The field for Home A.

Definition at line 417 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationHomeB = FileTraits::kCalibrationHomeA + 1 [static, inherited]

The field for Home B.

Definition at line 422 of file FileTraits.h.

const unsigned int FileTraits::kCalibrationHomeC = FileTraits::kCalibrationHomeB + 1 [static, inherited]

The field for Home C.

Definition at line 427 of file FileTraits.h.

const unsigned int FileTraits::kMomDetectorId = FileTraits::kCalibrationHomeC + 1 [static, inherited]

The field for the MOM Detector Id.

Definition at line 434 of file FileTraits.h.

const unsigned int FileTraits::kMomAdNumber = FileTraits::kMomDetectorId + 1 [static, inherited]

The field for the MOM AD Number.

Definition at line 439 of file FileTraits.h.

const unsigned int FileTraits::kMomSourceType = FileTraits::kMomAdNumber + 1 [static, inherited]

The field for the MOM Source type.

Definition at line 444 of file FileTraits.h.

const unsigned int FileTraits::kMomPulsePeriod = FileTraits::kMomSourceType + 1 [static, inherited]

The field for the MOM pulse period.

Definition at line 449 of file FileTraits.h.

const unsigned int FileTraits::kMomLedBias = FileTraits::kMomPulsePeriod + 1 [static, inherited]

The field for the MOM LED Bias.

Definition at line 454 of file FileTraits.h.

const unsigned int FileTraits::kMomLedWavelength = FileTraits::kMomLedBias + 1 [static, inherited]

The field for the wavelength of the MOM LED.

Definition at line 459 of file FileTraits.h.

const unsigned int FileTraits::kMomPulseWidth = FileTraits::kMomLedWavelength + 1 [static, inherited]

The field for the width of the MOM Pulse.

Definition at line 464 of file FileTraits.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:23 for FileReadoutFormat by doxygen 1.7.4