/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 Attributes
DaqRunInfo Class Reference

#include <DaqRunInfo.h>

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

List of all members.

Public Member Functions

 DaqRunInfo ()
 DaqRunInfo (const DaqRunInfo &from)
 DaqRunInfo (int rn, int ty, string rt, int dm, string pn, int sv, int dv, int bv)
virtual ~DaqRunInfo ()
Bool_t CanL2Cache () const
Bool_t Compare (const DaqRunInfo &that) const
int GetRunNo () const
int GetTriggerType () const
string GetRunType () const
int GetDetectorMask () const
string GetPartitionName () const
int GetSchemaVersion () const
int GetDataVersion () const
int GetBaseVersion () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual std::string name () const
virtual size_t size () const
virtual Bool_t CanFixOrdering () const
virtual std::string GetExtraCondition () const
virtual Int_t GetAggregateNo () const
DbiResultGetOwner () const
virtual UInt_t GetIndex (UInt_t defIndex) const
void SetOwner (DbiResult *owner)
virtual bool CreateDatabaseTables (Int_t db_no=0, const char *tablename="default")
virtual std::string GetDatabaseLayout ()

Private Attributes

int m_RunNo
int m_TriggerType
string m_RunType
int m_DetectorMask
string m_PartitionName
int m_SchemaVersion
int m_DataVersion
int m_BaseVersion

Detailed Description

Definition at line 12 of file DaqRunInfo.h.


Constructor & Destructor Documentation

DaqRunInfo::DaqRunInfo ( ) [inline]

Definition at line 16 of file DaqRunInfo.h.

{ }
DaqRunInfo::DaqRunInfo ( const DaqRunInfo from) [inline]

Definition at line 18 of file DaqRunInfo.h.

    : DbiTableRow(from) {  *this = from; }
DaqRunInfo::DaqRunInfo ( int  rn,
int  ty,
string  rt,
int  dm,
string  pn,
int  sv,
int  dv,
int  bv 
) [inline]

Definition at line 21 of file DaqRunInfo.h.

virtual DaqRunInfo::~DaqRunInfo ( ) [inline, virtual]

Definition at line 28 of file DaqRunInfo.h.

{  };

Member Function Documentation

Bool_t DaqRunInfo::CanL2Cache ( ) const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 32 of file DaqRunInfo.h.

{ return kFALSE; }
Bool_t DaqRunInfo::Compare ( const DaqRunInfo that) const [inline]

Definition at line 34 of file DaqRunInfo.h.

int DaqRunInfo::GetRunNo ( ) const [inline]

Definition at line 46 of file DaqRunInfo.h.

{ return m_RunNo; }
int DaqRunInfo::GetTriggerType ( ) const [inline]

Definition at line 47 of file DaqRunInfo.h.

{ return m_TriggerType; }
string DaqRunInfo::GetRunType ( ) const [inline]

Definition at line 48 of file DaqRunInfo.h.

{ return m_RunType; }
int DaqRunInfo::GetDetectorMask ( ) const [inline]

Definition at line 49 of file DaqRunInfo.h.

{ return m_DetectorMask; }
string DaqRunInfo::GetPartitionName ( ) const [inline]

Definition at line 50 of file DaqRunInfo.h.

{ return m_PartitionName; }
int DaqRunInfo::GetSchemaVersion ( ) const [inline]

Definition at line 51 of file DaqRunInfo.h.

{ return m_SchemaVersion; }
int DaqRunInfo::GetDataVersion ( ) const [inline]

Definition at line 52 of file DaqRunInfo.h.

{ return m_DataVersion; }
int DaqRunInfo::GetBaseVersion ( ) const [inline]

Definition at line 53 of file DaqRunInfo.h.

{ return m_BaseVersion; }
virtual DbiTableRow* DaqRunInfo::CreateTableRow ( ) const [inline, virtual]

Implements DbiTableRow.

Definition at line 55 of file DaqRunInfo.h.

{ return new DaqRunInfo; }
void DaqRunInfo::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 13 of file DaqRunInfo.cc.

                                                 {

    Int_t numCol = rs.NumCols();
    //  The first column (SeqNo) has already been processed.
    for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
      string colName = rs.CurColName();
      if (      colName == "RUNNO"    )        rs >> m_RunNo;
      else if ( colName == "TRIGGERTYPE" )     rs >> m_TriggerType;
      else if ( colName == "RUNTYPE" )         rs >> m_RunType;
      else if ( colName == "DETECTORMASK" )    rs >> m_DetectorMask;
      else if ( colName == "PARTITIONNAME" )   rs >> m_PartitionName;
      else if ( colName == "SCHEMAVERSION" )   rs >> m_SchemaVersion;
      else if ( colName == "DATAVERSION" )     rs >> m_DataVersion;
      else if ( colName == "BASEVERSION" )     rs >> m_BaseVersion;
      else {
        LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 
                               << "(" << colName << ")"
                              << "; not part of DaqRunInfo" << std::endl;
        rs.IncrementCurCol();
      }
    }
    
}
void DaqRunInfo::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 38 of file DaqRunInfo.cc.


Member Data Documentation

int DaqRunInfo::m_RunNo [private]

Definition at line 67 of file DaqRunInfo.h.

Definition at line 68 of file DaqRunInfo.h.

string DaqRunInfo::m_RunType [private]

Definition at line 69 of file DaqRunInfo.h.

Definition at line 70 of file DaqRunInfo.h.

string DaqRunInfo::m_PartitionName [private]

Definition at line 71 of file DaqRunInfo.h.

Definition at line 72 of file DaqRunInfo.h.

Definition at line 73 of file DaqRunInfo.h.

Definition at line 74 of file DaqRunInfo.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:57:05 for DaqRunInfoSvc by doxygen 1.7.4