SimPmtM16CrosstalkTable Class Reference

#include <SimPmtM16CrosstalkTable.h>

List of all members.

Public Member Functions

 SimPmtM16CrosstalkTable (const VldContext &vc)
const SimPmtM16CrosstalkGetRow (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< SimPmtM16CrosstalkfResPtr


Detailed Description

SimPmtM16CrosstalkTable

A class to look up crosstalk values from the DB.

Definition at line 17 of file SimPmtM16CrosstalkTable.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

SimPmtM16CrosstalkTable::ClassDef ( SimPmtM16CrosstalkTable  ,
 
)

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 }


Member Data Documentation

VldContext SimPmtM16CrosstalkTable::fContext

Definition at line 26 of file SimPmtM16CrosstalkTable.h.

Referenced by GetContext(), and Reset().

DbiResultPtr<SimPmtM16Crosstalk> SimPmtM16CrosstalkTable::fResPtr

Definition at line 30 of file SimPmtM16CrosstalkTable.h.

Referenced by GetRow(), and Reset().


The documentation for this class was generated from the following files:
Generated on Thu Jul 10 22:53:43 2014 for loon by  doxygen 1.4.7