#include <SpillTimeCalibration.h>
Inheritance diagram for SpillTimeCalibration:

Public Types | |
| enum | ESpillTimeTasks { kTask_Vtm = 1, kTask_TimeWatcher = 2, kTask_TimeGoblin = 3 } |
Public Member Functions | |
| SpillTimeCalibration () | |
| SpillTimeCalibration (Double_t offset, Double_t err, const std::string &descrip) | |
| virtual | ~SpillTimeCalibration () |
| Bool_t | CanL2Cache () const |
| Double_t | GetOffset () const |
| Double_t | GetError () const |
| const std::string & | GetDescription () const |
| virtual DbiTableRow * | CreateTableRow () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
Private Member Functions | |
| ClassDef (SpillTimeCalibration, 1) | |
Private Attributes | |
| Double_t | fOffset |
| Double_t | fError |
| std::string | fDescription |
|
|
Definition at line 15 of file SpillTimeCalibration.h. 00015 {
00016 kTask_Vtm = 1,
00017 kTask_TimeWatcher = 2,
00018 kTask_TimeGoblin = 3
00019 };
|
|
|
Definition at line 21 of file SpillTimeCalibration.h. 00021 { LEA_CTOR; };
|
|
||||||||||||||||
|
Definition at line 23 of file SpillTimeCalibration.h. References fDescription, fError, and fOffset. 00024 : fOffset(offset), fError(err), fDescription(descrip) 00025 { LEA_CTOR; };
|
|
|
Definition at line 27 of file SpillTimeCalibration.h. 00027 { LEA_DTOR; };
|
|
|
Reimplemented from DbiTableRow. Definition at line 30 of file SpillTimeCalibration.h. 00030 { return kTRUE; }
|
|
||||||||||||
|
|
|
|
Implements DbiTableRow. Definition at line 37 of file SpillTimeCalibration.h. 00037 { return new SpillTimeCalibration; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 29 of file SpillTimeCalibration.cxx. References MSG. 00030 {
00031
00032 //
00033 //
00034 // Purpose: Fill object from Result Set
00035 //
00036 // Arguments:
00037 // rs in Result Set used to fill object
00038 // vrec in Associated validity record (or 0 if filling
00039 // DbiValidityRec)
00040 //
00041 // o Fill object from current row of Result Set.
00042
00043 // Program Notes:-
00044 // =============
00045
00046 // This method demonstrates both the "dumb" fill method (just
00047 // load the data as it comes) and the smart method (check column
00048 // name and load according to column order).
00049
00050 if ( rs.TableName() == "SPILLTIMECALIBRATION" ) {
00051 // Dumb method.
00052 rs >> fOffset >> fError >> fDescription;
00053 }
00054
00055 else {
00056
00057 // Smart method
00058 Int_t numCol = rs.NumCols();
00059 // The first column (SeqNo) has already been processed.
00060 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00061 string colName = rs.CurColName();
00062 if( colName == "OFFSET" ) rs >> fOffset;
00063 else if( colName == "ERROR" ) rs >> fError;
00064 else if( colName == "DESCRIPTION" ) rs >> fDescription;
00065 else {
00066 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00067 << "(" << colName << ")"
00068 << "; not part of SpillTimeCalibration"
00069 << endl;
00070 rs.IncrementCurCol();
00071 }
00072 }
00073 }
00074
00075
00076 }
|
|
|
Definition at line 35 of file SpillTimeCalibration.h. Referenced by SpillTimeFinder::GetOffsetKickerToNDNu(), SpillTimeFinder::GetOffsetNDNuToFDNu(), and SpillTimeFinder::GetOffsetSgateToNDNu(). 00035 { return fDescription; }
|
|
|
Definition at line 34 of file SpillTimeCalibration.h. Referenced by SpillTimeFinder::GetOffsetKickerToNDNu(), SpillTimeFinder::GetOffsetNDNuToFDNu(), and SpillTimeFinder::GetOffsetSgateToNDNu(). 00034 { return fError; };
|
|
|
Definition at line 33 of file SpillTimeCalibration.h. Referenced by SpillTimeFinder::GetOffsetKickerToNDNu(), SpillTimeFinder::GetOffsetNDNuToFDNu(), and SpillTimeFinder::GetOffsetSgateToNDNu(). 00033 { return fOffset; };
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 80 of file SpillTimeCalibration.cxx. References fError, and fOffset. 00081 {
00082 //
00083 //
00084 // Purpose: Stream object to output row stream
00085 //
00086 // Arguments:
00087 // ors in Output row stream.
00088 // vrec in Associated validity record (or 0 if filling
00089
00090 ors << fOffset << fError << fDescription;
00091 }
|
|
|
Definition at line 48 of file SpillTimeCalibration.h. Referenced by SpillTimeCalibration(). |
|
|
Definition at line 47 of file SpillTimeCalibration.h. Referenced by SpillTimeCalibration(), and Store(). |
|
|
Definition at line 46 of file SpillTimeCalibration.h. Referenced by SpillTimeCalibration(), and Store(). |
1.3.9.1