| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

CalibFeeSpec Class Reference

#include <CalibFeeSpec.h>

Inheritance diagram for CalibFeeSpec:

[legend]
Collaboration diagram for CalibFeeSpec:
[legend]
List of all members.

Public Member Functions

 CalibFeeSpec ()
 CalibFeeSpec (const CalibFeeSpec &from)
 CalibFeeSpec (DayaBay::FeeChannelId channelId, int status, double adcPedestalHigh, double adcPedestalHighSigma, double adcPedestalLow, double adcPedestalLowSigma, double adcThresholdHigh, double adcThresholdLow)
virtual ~CalibFeeSpec ()
int SetCalibFeeSpec (DayaBay::FeeChannelId channelId, int status, double adcPedestalHigh, double adcPedestalHighSigma, double adcPedestalLow, double adcPedestalLowSigma, double adcThresholdHigh, double adcThresholdLow)
Bool_t CanL2Cache () const
Bool_t Compare (const CalibFeeSpec &that) const
DayaBay::FeeChannelId GetChannelId () const
int GetStatus () const
double GetAdcThresholdHigh () const
double GetAdcThresholdLow () const
double GetAdcPedestalHigh () const
double GetAdcPedestalLow () const
double GetAdcPedestalHighSigma () const
double GetAdcPedestalLowSigma () 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 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

DayaBay::FeeChannelId m_channelId
int m_status
double m_adcPedestalHigh
double m_adcPedestalHighSigma
double m_adcPedestalLow
double m_adcPedestalLowSigma
double m_adcThresholdHigh
double m_adcThresholdLow

Detailed Description

Definition at line 34 of file CalibFeeSpec.h.


Constructor & Destructor Documentation

CalibFeeSpec::CalibFeeSpec (  )  [inline]

Definition at line 40 of file CalibFeeSpec.h.

00040 {  }

CalibFeeSpec::CalibFeeSpec ( const CalibFeeSpec from  )  [inline]

Definition at line 41 of file CalibFeeSpec.h.

00042     : DbiTableRow(from) {  *this = from; }

CalibFeeSpec::CalibFeeSpec ( DayaBay::FeeChannelId  channelId,
int  status,
double  adcPedestalHigh,
double  adcPedestalHighSigma,
double  adcPedestalLow,
double  adcPedestalLowSigma,
double  adcThresholdHigh,
double  adcThresholdLow 
) [inline]

Definition at line 43 of file CalibFeeSpec.h.

00052                 {m_channelId = channelId;
00053                  m_status = status;
00054                  m_adcPedestalHigh = adcPedestalHigh;
00055                  m_adcPedestalHighSigma = adcPedestalHighSigma;
00056                  m_adcPedestalLow = adcPedestalLow;
00057                  m_adcPedestalLowSigma = adcPedestalLowSigma;            
00058                  m_adcThresholdHigh = adcThresholdHigh;
00059                  m_adcThresholdLow = adcThresholdLow;}

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

Definition at line 62 of file CalibFeeSpec.h.

00062 { };


Member Function Documentation

int CalibFeeSpec::SetCalibFeeSpec ( DayaBay::FeeChannelId  channelId,
int  status,
double  adcPedestalHigh,
double  adcPedestalHighSigma,
double  adcPedestalLow,
double  adcPedestalLowSigma,
double  adcThresholdHigh,
double  adcThresholdLow 
) [inline]

Definition at line 63 of file CalibFeeSpec.h.

00072                 {m_channelId = channelId;
00073                  m_status = status;
00074                  m_adcPedestalHigh = adcPedestalHigh;
00075                  m_adcPedestalHighSigma = adcPedestalHighSigma;
00076                  m_adcPedestalLow = adcPedestalLow;
00077                  m_adcPedestalLowSigma = adcPedestalLowSigma;            
00078                  m_adcThresholdHigh = adcThresholdHigh;
00079                  m_adcThresholdLow = adcThresholdLow;}

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

Reimplemented from DbiTableRow.

Definition at line 82 of file CalibFeeSpec.h.

00082 { return kTRUE; }

Bool_t CalibFeeSpec::Compare ( const CalibFeeSpec that  )  const [inline]

Definition at line 83 of file CalibFeeSpec.h.

DayaBay::FeeChannelId CalibFeeSpec::GetChannelId (  )  const [inline]

Definition at line 94 of file CalibFeeSpec.h.

00094 {return m_channelId;}

int CalibFeeSpec::GetStatus (  )  const [inline]

Definition at line 97 of file CalibFeeSpec.h.

00097 {return m_status;}

double CalibFeeSpec::GetAdcThresholdHigh (  )  const [inline]

Definition at line 98 of file CalibFeeSpec.h.

00098 {return m_adcThresholdHigh;}

double CalibFeeSpec::GetAdcThresholdLow (  )  const [inline]

Definition at line 99 of file CalibFeeSpec.h.

00099 {return m_adcThresholdLow;}

double CalibFeeSpec::GetAdcPedestalHigh (  )  const [inline]

Definition at line 100 of file CalibFeeSpec.h.

00100 {return m_adcPedestalHigh;}

double CalibFeeSpec::GetAdcPedestalLow (  )  const [inline]

Definition at line 101 of file CalibFeeSpec.h.

00101 {return m_adcPedestalLow;}

double CalibFeeSpec::GetAdcPedestalHighSigma (  )  const [inline]

Definition at line 102 of file CalibFeeSpec.h.

00102 {return m_adcPedestalHighSigma;}

double CalibFeeSpec::GetAdcPedestalLowSigma (  )  const [inline]

Definition at line 103 of file CalibFeeSpec.h.

00103 {return m_adcPedestalLowSigma;}

virtual DbiTableRow* CalibFeeSpec::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 105 of file CalibFeeSpec.h.

00105                                               { 
00106                                               return new CalibFeeSpec; }

void CalibFeeSpec::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 46 of file CalibFeeSpec.cc.

00047                                                           {
00048 //
00049 //
00050 //  Purpose:  Fill object from Result Set
00051 //
00052 //  Arguments: 
00053 //    rs           in    Result Set used to fill object
00054 //    vrec         in    Associated validity record (or 0 if filling
00055 //                                                    DbiValidityRec)
00056 //  Return:    
00057 //
00058 //  Modified from the SimPmtSpec
00059 //
00060 //  Specification:-
00061 //  =============
00062 //
00063 //  o Fill object from current row of Result Set.
00064 
00065 //  Program Notes:-
00066 //  =============
00067 
00068   Int_t numCol = rs.NumCols();
00069   //  The first column (SeqNo) has already been processed.
00070   for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00071        string colName = rs.CurColName();
00072     if (colName == "CHANNELID"){
00073       int channelId = 0; rs >> channelId; //????
00074       m_channelId = DayaBay::FeeChannelId( channelId );//????
00075        
00076     }
00077     else if ( colName == "STATUS"                 ) rs >> m_status;
00078     else if ( colName == "ADCTHRESHOLDHIGH"       ) rs >> m_adcThresholdHigh;
00079     else if ( colName == "ADCTHRESHOLDLOW"        ) rs >> m_adcThresholdLow;
00080     else if ( colName == "ADCPEDESTALHIGH"        ) rs >> m_adcPedestalHigh;
00081     else if ( colName == "ADCPEDESTALLOW"         ) rs >> m_adcPedestalLow;
00082     else if ( colName == "ADCPETESTALHIGHSIGMA"   ) rs >> m_adcPedestalHighSigma;
00083     else if ( colName == "ADCPETESTALLOWSIGMA"    ) rs >> m_adcPedestalLowSigma;
00084     else {
00085       LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 
00086                                 << "(" << colName << ")"
00087                                 << "; not part of CalibFeeSpec" << std::endl;
00088       rs.IncrementCurCol();
00089     }
00090   }
00091 }

void CalibFeeSpec::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 94 of file CalibFeeSpec.cc.

00095                                                                  {
00096 cout<<"storeing------"<<endl;
00097 //
00098 //
00099 //  Purpose:  Stream object to output row stream
00100 //
00101 //  Arguments: 
00102 //    ors          in     Output row stream.
00103 //    vrec         in    Associated validity record (or 0 if filling
00104 //                                                    DbiValidityRec)
00105 //
00106 //  Return:    
00107 //
00108 //  Contact:   N. West
00109 //
00110 //  Specification:-
00111 //  =============
00112 //
00113 //  o  Stream object to output row stream.
00114 
00115 //  Program Notes:-
00116 //  =============
00117 
00118 //  None.
00119 
00120 
00121 
00122   ors << m_channelId.fullPackedData() << m_status 
00123       << m_adcPedestalHigh << m_adcPedestalHighSigma << m_adcPedestalLow<< m_adcPedestalLowSigma 
00124       << m_adcThresholdHigh<< m_adcThresholdLow;
00125 /*
00126  ors  << m_channelId<< m_status 
00127       << m_adcThresholdHigh << m_adcThresholdLow << m_adcPedestalHigh << m_adcPedestalHighSigma 
00128       << m_adcPedestalLow << m_adcPedestalLowSigma;
00129 */
00130 }


Member Data Documentation

DayaBay::FeeChannelId CalibFeeSpec::m_channelId [private]

Definition at line 117 of file CalibFeeSpec.h.

int CalibFeeSpec::m_status [private]

Definition at line 120 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcPedestalHigh [private]

Definition at line 121 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcPedestalHighSigma [private]

Definition at line 122 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcPedestalLow [private]

Definition at line 123 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcPedestalLowSigma [private]

Definition at line 124 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcThresholdHigh [private]

Definition at line 125 of file CalibFeeSpec.h.

double CalibFeeSpec::m_adcThresholdLow [private]

Definition at line 126 of file CalibFeeSpec.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 Mon Apr 11 20:21:49 2011 for DbiDataSvc by doxygen 1.4.7