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

In This Package:

Public Member Functions | Private Member Functions | Private Attributes
CalibDetailsFromRecord Class Reference

#include <DetailsFromRecordSvc.h>

Inheritance diagram for CalibDetailsFromRecord:
Inheritance graph
[legend]
Collaboration diagram for CalibDetailsFromRecord:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CalibDetailsFromRecord (const DybDaq::CalibrationParametersRecord &record)
 Creates an instance of this class.
virtual ~CalibDetailsFromRecord ()
 Creates an instance of this class.
virtual DetectorId::DetectorId_t detectorId () const
 Returns the id of the detector being calibrated.
virtual DayaBay::Detector adNumber () const
 Return the site and detector being calibrated.
virtual
DayaBay::Calibration::SourceType::SourceType_t 
sourceIdA () const
 Return the type of source labelled 'A'.
virtual int zPositionA () const
 Return the Z position of source labelled 'A'.
virtual
DayaBay::Calibration::SourceType::SourceType_t 
sourceIdB () const
 Return the type of source labelled 'B'.
virtual int zPositionB () const
 Return the Z position of source labelled 'B'.
virtual
DayaBay::Calibration::SourceType::SourceType_t 
sourceIdC () const
 Return the type of source labelled 'C'.
virtual int zPositionC () const
 Return the Z position of source labelled 'C'.
virtual int duration () const
 Return the duration of the LED.
virtual int led1 () const
 Return which LED is labelled '1'.
virtual int led2 () const
 Return which LED is labelled '2'.
virtual int led1Voltage () const
 Return the voltage used for the LED labelled '1'.
virtual int led2Voltage () const
 Return the voltage used for the LED labelled '2'.
virtual int ledFrequency () const
 Return the frequency with which the LEDs are pulsed.
virtual int ledPulseSeparation () const
 Return the separation between the 1st and 2nd pulses of the LEDs.
virtual int ltbMode () const
 Return the LTB mode during data taking.
virtual int motorPower () const
 Return the power used on the motor,.
virtual int cameraPower () const
 Return the power used by the camera.
virtual bool ledFlashing () const
 True when the LED is being flashed.
virtual bool homeA () const
 True when the LED labelled 'A' is in its home position.
virtual bool homeB () const
 True when the LED labelled 'B' is in its home position.
virtual bool homeC () const
 True when the LED labelled 'C' is in its home position.

Private Member Functions

 CalibDetailsFromRecord ()
 Suppress default.
 CalibDetailsFromRecord (const CalibDetailsFromRecord &rhs)
 Suppress default.
CalibDetailsFromRecordoperator= (const CalibDetailsFromRecord &rhs)
 Suppress default.
Site::Site_t convertSite (unsigned int site) const
 Converts DAQ calibration site to offline enumeration.
DetectorId::DetectorId_t convertDetectorId (unsigned int detector) const
 Converts DAQ calibration detector to offline enumeration.
DayaBay::Calibration::SourceType::SourceType_t convertSource (unsigned int source) const
 Converts DAQ calibration source to offline enumeration.

Private Attributes

const
DybDaq::CalibrationParametersRecord
m_record
 The RunParametersRecord used by this instance.

Detailed Description

Definition at line 135 of file DetailsFromRecordSvc.h.


Constructor & Destructor Documentation

CalibDetailsFromRecord::CalibDetailsFromRecord ( const DybDaq::CalibrationParametersRecord record)

Creates an instance of this class.

Definition at line 58 of file DetailsFromRecordSvc.cc.

                                                                                              :
  m_record(record) {
}
CalibDetailsFromRecord::~CalibDetailsFromRecord ( ) [virtual]

Creates an instance of this class.

Definition at line 62 of file DetailsFromRecordSvc.cc.

                                                {
}
CalibDetailsFromRecord::CalibDetailsFromRecord ( ) [private]

Suppress default.

CalibDetailsFromRecord::CalibDetailsFromRecord ( const CalibDetailsFromRecord rhs) [private]

Suppress default.


Member Function Documentation

DetectorId::DetectorId_t CalibDetailsFromRecord::detectorId ( ) const [virtual]

Returns the id of the detector being calibrated.

Implements DaqCalibDetails.

Definition at line 110 of file DetailsFromRecordSvc.cc.

Detector CalibDetailsFromRecord::adNumber ( ) const [virtual]

Return the site and detector being calibrated.

Implements DaqCalibDetails.

Definition at line 114 of file DetailsFromRecordSvc.cc.

                                                {
  const unsigned int number = m_record.adNumber();
  return Detector(convertSite(number & 0xf0),
                  convertDetectorId(number &0x0f));
}
DayaBay::Calibration::SourceType::SourceType_t CalibDetailsFromRecord::sourceIdA ( ) const [virtual]

Return the type of source labelled 'A'.

Implements DaqCalibDetails.

Definition at line 120 of file DetailsFromRecordSvc.cc.

                                                                                 {
  return convertSource(m_record.sourceA());
}
int CalibDetailsFromRecord::zPositionA ( ) const [virtual]

Return the Z position of source labelled 'A'.

Implements DaqCalibDetails.

Definition at line 124 of file DetailsFromRecordSvc.cc.

                                             {
  return m_record.zPositionA();
}
DayaBay::Calibration::SourceType::SourceType_t CalibDetailsFromRecord::sourceIdB ( ) const [virtual]

Return the type of source labelled 'B'.

Implements DaqCalibDetails.

Definition at line 128 of file DetailsFromRecordSvc.cc.

                                                                                 {
  return convertSource(m_record.sourceB());
}
int CalibDetailsFromRecord::zPositionB ( ) const [virtual]

Return the Z position of source labelled 'B'.

Implements DaqCalibDetails.

Definition at line 132 of file DetailsFromRecordSvc.cc.

                                             {
  return m_record.zPositionB();
}
DayaBay::Calibration::SourceType::SourceType_t CalibDetailsFromRecord::sourceIdC ( ) const [virtual]

Return the type of source labelled 'C'.

Implements DaqCalibDetails.

Definition at line 136 of file DetailsFromRecordSvc.cc.

                                                                                 {
  return convertSource(m_record.sourceC());
}
int CalibDetailsFromRecord::zPositionC ( ) const [virtual]

Return the Z position of source labelled 'C'.

Implements DaqCalibDetails.

Definition at line 141 of file DetailsFromRecordSvc.cc.

                                             {
  return m_record.zPositionC();
}
int CalibDetailsFromRecord::duration ( ) const [virtual]

Return the duration of the LED.

Implements DaqCalibDetails.

Definition at line 145 of file DetailsFromRecordSvc.cc.

                                           {
  return m_record.duration();
}
int CalibDetailsFromRecord::led1 ( ) const [virtual]

Return which LED is labelled '1'.

Implements DaqCalibDetails.

Definition at line 149 of file DetailsFromRecordSvc.cc.

                                       {
  return m_record.led1();
}
int CalibDetailsFromRecord::led2 ( ) const [virtual]

Return which LED is labelled '2'.

Implements DaqCalibDetails.

Definition at line 153 of file DetailsFromRecordSvc.cc.

                                       {
  return m_record.led2();
}
int CalibDetailsFromRecord::led1Voltage ( ) const [virtual]

Return the voltage used for the LED labelled '1'.

Implements DaqCalibDetails.

Definition at line 157 of file DetailsFromRecordSvc.cc.

                                              {
  return m_record.led1Voltage();
}
int CalibDetailsFromRecord::led2Voltage ( ) const [virtual]

Return the voltage used for the LED labelled '2'.

Implements DaqCalibDetails.

Definition at line 161 of file DetailsFromRecordSvc.cc.

                                              {
  return m_record.led2Voltage();
}
int CalibDetailsFromRecord::ledFrequency ( ) const [virtual]

Return the frequency with which the LEDs are pulsed.

Implements DaqCalibDetails.

Definition at line 165 of file DetailsFromRecordSvc.cc.

                                               {
  return m_record.ledFrequency();
}
int CalibDetailsFromRecord::ledPulseSeparation ( ) const [virtual]

Return the separation between the 1st and 2nd pulses of the LEDs.

Implements DaqCalibDetails.

Definition at line 169 of file DetailsFromRecordSvc.cc.

int CalibDetailsFromRecord::ltbMode ( ) const [virtual]

Return the LTB mode during data taking.

Implements DaqCalibDetails.

Definition at line 173 of file DetailsFromRecordSvc.cc.

                                          {
  return m_record.ltbMode();
}
int CalibDetailsFromRecord::motorPower ( ) const [virtual]

Return the power used on the motor,.

Implements DaqCalibDetails.

Definition at line 177 of file DetailsFromRecordSvc.cc.

                                             {
  return m_record.motorPower();
}
int CalibDetailsFromRecord::cameraPower ( ) const [virtual]

Return the power used by the camera.

Implements DaqCalibDetails.

Definition at line 181 of file DetailsFromRecordSvc.cc.

                                              {
  return m_record.cameraPower();
}
bool CalibDetailsFromRecord::ledFlashing ( ) const [virtual]

True when the LED is being flashed.

Implements DaqCalibDetails.

Definition at line 185 of file DetailsFromRecordSvc.cc.

                                               {
    return false;
}
bool CalibDetailsFromRecord::homeA ( ) const [virtual]

True when the LED labelled 'A' is in its home position.

Implements DaqCalibDetails.

Definition at line 189 of file DetailsFromRecordSvc.cc.

                                         {
    return false;
}
bool CalibDetailsFromRecord::homeB ( ) const [virtual]

True when the LED labelled 'B' is in its home position.

Implements DaqCalibDetails.

Definition at line 193 of file DetailsFromRecordSvc.cc.

                                         {
    return false;
}
bool CalibDetailsFromRecord::homeC ( ) const [virtual]

True when the LED labelled 'C' is in its home position.

Implements DaqCalibDetails.

Definition at line 197 of file DetailsFromRecordSvc.cc.

                                         {
    return false;
}
CalibDetailsFromRecord& CalibDetailsFromRecord::operator= ( const CalibDetailsFromRecord rhs) [private]

Suppress default.

Site::Site_t CalibDetailsFromRecord::convertSite ( unsigned int  site) const [private]

Converts DAQ calibration site to offline enumeration.

Definition at line 65 of file DetailsFromRecordSvc.cc.

                                                                      {
  if (site == FileTraits::kCalibratingEh1) {
    return Site::kDayaBay;
  }
  if (site == FileTraits::kCalibratingEh2) {
    return Site::kLingAo;
  }
  if (site == FileTraits::kCalibratingEh3) {
    return Site::kFar;
  }
  if (site == FileTraits::kCalibratingSab) {
    return Site::kSAB;
  }
  return Site::kUnknown;
}
DetectorId::DetectorId_t CalibDetailsFromRecord::convertDetectorId ( unsigned int  detector) const [private]

Converts DAQ calibration detector to offline enumeration.

Definition at line 81 of file DetailsFromRecordSvc.cc.

                                                                                            {
  if (detector == FileTraits::kCalibratingAd1) {
    return DetectorId::kAD1;
  }
  if (detector == FileTraits::kCalibratingAd2) {
    return DetectorId::kAD2;
  }
  if (detector == FileTraits::kCalibratingAd3) {
    return DetectorId::kAD3;
  }
  if (detector == FileTraits::kCalibratingAd4) {
    return DetectorId::kAD4;
  }
  return DetectorId::kUnknown;
}
DayaBay::Calibration::SourceType::SourceType_t CalibDetailsFromRecord::convertSource ( unsigned int  source) const [private]

Converts DAQ calibration source to offline enumeration.

Definition at line 97 of file DetailsFromRecordSvc.cc.

                                                                                                        {
  if (source == FileTraits::kLedSource) {
    return DayaBay::Calibration::SourceType::kLED;
  }
  if (source == FileTraits::kAmC_Co60Source) {
    return DayaBay::Calibration::SourceType::kAmC_Co60;;
  }
  if (source == FileTraits::kGe68Source) {
    return DayaBay::Calibration::SourceType::kGe68;
  }
  return DayaBay::Calibration::SourceType::kUnknown;
}

Member Data Documentation

The RunParametersRecord used by this instance.

Definition at line 295 of file DetailsFromRecordSvc.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 10:15:32 for DaqFormatModules by doxygen 1.7.4