#include <SimPmtM16CrosstalkTable.h>
Public Member Functions | |
| SimPmtM16CrosstalkTable (const VldContext &vc) | |
| const SimPmtM16Crosstalk * | GetRow (UInt_t injPix, UInt_t injSpot, UInt_t xPix) |
| void | Reset (const VldContext &context) |
| const VldContext | GetContext () const |
| ClassDef (SimPmtM16CrosstalkTable, 1) | |
Public Attributes | |
| VldContext | fContext |
| DbiResultPtr< SimPmtM16Crosstalk > | fResPtr |
A class to look up crosstalk values from the DB.
Definition at line 17 of file SimPmtM16CrosstalkTable.h.
| SimPmtM16CrosstalkTable::SimPmtM16CrosstalkTable | ( | const VldContext & | vc | ) |
Definition at line 8 of file SimPmtM16CrosstalkTable.cxx.
References Msg::kDebug, and MSG.
00009 : fContext(vc), 00010 fResPtr(vc) 00011 { 00012 MSG("DetSim",Msg::kDebug) << "Creating SimPmtM16CrosstalkTable.\n"; 00013 }
| SimPmtM16CrosstalkTable::ClassDef | ( | SimPmtM16CrosstalkTable | , | |
| 1 | ||||
| ) |
| const VldContext SimPmtM16CrosstalkTable::GetContext | ( | void | ) | const [inline] |
Definition at line 26 of file SimPmtM16CrosstalkTable.h.
References fContext.
00026 { return fContext; };
| const SimPmtM16Crosstalk * SimPmtM16CrosstalkTable::GetRow | ( | UInt_t | injPix, | |
| UInt_t | injSpot, | |||
| UInt_t | xPix | |||
| ) |
Definition at line 16 of file SimPmtM16CrosstalkTable.cxx.
References fResPtr, DbiResultPtr< T >::GetRowByIndex(), and SimPmtM16Crosstalk::MakeIndex().
Referenced by SimPmtUTM16::RetrieveElectricXtalkFraction(), and SimPmtUTM16::RetrieveOpticalXtalkFraction().
00017 { 00018 00019 UInt_t index = SimPmtM16Crosstalk::MakeIndex(injPix, injSpot, xPix); 00020 return fResPtr.GetRowByIndex(index); 00021 }
| void SimPmtM16CrosstalkTable::Reset | ( | const VldContext & | context | ) |
Definition at line 24 of file SimPmtM16CrosstalkTable.cxx.
References fContext, fResPtr, and DbiResultPtr< T >::NewQuery().
Referenced by SimPmtUTM16::Reset().
00025 { 00026 // Updates the table if the context changes. 00027 if(context!=fContext) { 00028 fResPtr.NewQuery(context,0); 00029 fContext = context; 00030 } 00031 }
1.4.7