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

Public Member Functions | |
| CalStripToStrip () | |
| CalStripToStrip (const PlexStripEndId &seid, Float_t resp, Float_t respErr) | |
| CalStripToStrip (Int_t seid_enc, Float_t resp, Float_t respErr) | |
| virtual | ~CalStripToStrip () |
| Bool_t | CanL2Cache () const |
| UInt_t | GetIndex (UInt_t) const |
| PlexStripEndId | GetStripEndId () const |
| UInt_t | GetSEIDkey () const |
| Float_t | GetResponse () const |
| Float_t | GetResponseErr () 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 | |
| CalStripToStrip (const CalStripToStrip &from) | |
Private Attributes | |
| Int_t | fSEIdEncoded |
| Float_t | fResponse |
| Float_t | fResponseErr |
| UInt_t | fSEIdKey |
Definition at line 23 of file CalStripToStrip.h.
| CalStripToStrip::CalStripToStrip | ( | ) | [inline] |
| CalStripToStrip::CalStripToStrip | ( | const PlexStripEndId & | seid, | |
| Float_t | resp, | |||
| Float_t | respErr | |||
| ) | [inline] |
Definition at line 31 of file CalStripToStrip.h.
References LEA_CTOR.
00032 : fSEIdEncoded(seid.GetEncoded()), 00033 fResponse(resp), 00034 fResponseErr(respErr), 00035 fSEIdKey(seid.BuildPlnStripEndKey()) 00036 { LEA_CTOR; }
| CalStripToStrip::CalStripToStrip | ( | Int_t | seid_enc, | |
| Float_t | resp, | |||
| Float_t | respErr | |||
| ) | [inline] |
Definition at line 38 of file CalStripToStrip.h.
References LEA_CTOR.
00039 : fSEIdEncoded(seid_enc), 00040 fResponse(resp), 00041 fResponseErr(respErr), 00042 fSEIdKey(PlexStripEndId(seid_enc).BuildPlnStripEndKey()) 00043 { LEA_CTOR; }
| virtual CalStripToStrip::~CalStripToStrip | ( | ) | [inline, virtual] |
| CalStripToStrip::CalStripToStrip | ( | const CalStripToStrip & | from | ) | [inline, private] |
Definition at line 66 of file CalStripToStrip.h.
References LEA_CTOR.
00067 : DbiTableRow(from) { LEA_CTOR; *this = from; }
| Bool_t CalStripToStrip::CanL2Cache | ( | ) | const [inline, virtual] |
| virtual DbiTableRow* CalStripToStrip::CreateTableRow | ( | ) | const [inline, virtual] |
Implements DbiTableRow.
Definition at line 55 of file CalStripToStrip.h.
00055 { return new CalStripToStrip; }
| void CalStripToStrip::Fill | ( | DbiResultSet & | rs, | |
| const DbiValidityRec * | vrec | |||
| ) | [virtual] |
Implements DbiTableRow.
Definition at line 43 of file CalStripToStrip.cxx.
References DbiRowStream::CurColName(), fResponse, fResponseErr, fSEIdEncoded, fSEIdKey, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().
00044 { 00045 00046 // 00047 // 00048 // Purpose: Fill object from Result Set 00049 // 00050 // Arguments: 00051 // rs in Result Set used to fill object 00052 // vrec in Associated validity record (or 0 if filling 00053 // DbiValidityRec) 00054 // 00055 // o Fill object from current row of Result Set. 00056 00057 // Program Notes:- 00058 // ============= 00059 00060 // This method demonstrates both the "dumb" fill method (just 00061 // load the data as it comes) and the smart method (check column 00062 // name and load according to column order). 00063 00064 if ( rs.TableName() == "CALSTRIPTOSTRIP" ) { 00065 // Dumb method. 00066 rs >> fSEIdEncoded >> fResponse >> fResponseErr; 00067 fSEIdKey = PlexStripEndId(fSEIdEncoded).BuildPlnStripEndKey(); 00068 } 00069 00070 else { 00071 00072 // Smart method 00073 Int_t numCol = rs.NumCols(); 00074 // The first column (SeqNo) has already been processed. 00075 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) { 00076 string colName = rs.CurColName(); 00077 if ( colName == "SEIDENCODED" ) { 00078 rs >> fSEIdEncoded; 00079 fSEIdKey = PlexStripEndId(fSEIdEncoded).BuildPlnStripEndKey(); 00080 } 00081 else if( colName == "RESPONSE" ) rs >> fResponse; 00082 else if( colName == "RESPONSEERR" ) rs >> fResponseErr; 00083 else { 00084 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 00085 << "(" << colName << ")" 00086 << "; not part of CalStripToStrip" 00087 << endl; 00088 rs.IncrementCurCol(); 00089 } 00090 } 00091 } 00092 00093 00094 }
| UInt_t CalStripToStrip::GetIndex | ( | UInt_t | ) | const [inline, virtual] |
Reimplemented from DbiTableRow.
Definition at line 49 of file CalStripToStrip.h.
References fSEIdKey.
00049 { return fSEIdKey; }
| Float_t CalStripToStrip::GetResponse | ( | ) | const [inline] |
Definition at line 52 of file CalStripToStrip.h.
References fResponse.
Referenced by LIPlexMaps::CompareStripToStrip(), StripToStripCalScheme::DecalStripToStrip(), StripToStripCalScheme::GetStripToStripCorrected(), and LIPlexMaps::ReadDbCalStripToStrip().
00052 { return fResponse; };
| Float_t CalStripToStrip::GetResponseErr | ( | ) | const [inline] |
Definition at line 53 of file CalStripToStrip.h.
References fResponseErr.
Referenced by StripToStripCalScheme::DecalStripToStrip(), and StripToStripCalScheme::GetStripToStripCorrected().
00053 { return fResponseErr; };
| UInt_t CalStripToStrip::GetSEIDkey | ( | ) | const [inline] |
| PlexStripEndId CalStripToStrip::GetStripEndId | ( | ) | const [inline] |
Definition at line 50 of file CalStripToStrip.h.
References fSEIdEncoded.
Referenced by LIPlexMaps::DumpCalStripToStrip().
00050 { return PlexStripEndId(fSEIdEncoded); }
| void CalStripToStrip::Store | ( | DbiOutRowStream & | ors, | |
| const DbiValidityRec * | vrec | |||
| ) | const [virtual] |
Reimplemented from DbiTableRow.
Definition at line 98 of file CalStripToStrip.cxx.
References fResponse, fResponseErr, and fSEIdEncoded.
00099 { 00100 // 00101 // 00102 // Purpose: Stream object to output row stream 00103 // 00104 // Arguments: 00105 // ors in Output row stream. 00106 // vrec in Associated validity record (or 0 if filling 00107 00108 ors << fSEIdEncoded << fResponse << fResponseErr; 00109 }
Float_t CalStripToStrip::fResponse [private] |
Float_t CalStripToStrip::fResponseErr [private] |
Definition at line 72 of file CalStripToStrip.h.
Referenced by Fill(), GetResponseErr(), and Store().
Int_t CalStripToStrip::fSEIdEncoded [private] |
Definition at line 70 of file CalStripToStrip.h.
Referenced by Fill(), GetStripEndId(), and Store().
UInt_t CalStripToStrip::fSEIdKey [private] |
Definition at line 75 of file CalStripToStrip.h.
Referenced by Fill(), GetIndex(), and GetSEIDkey().
1.4.7