Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SimPmtM16CrosstalkTable.cxx

Go to the documentation of this file.
00001 #include "SimPmtM16CrosstalkTable.h"
00002 #include "MessageService/MsgService.h"
00003 
00004 CVSID("$Id: SimPmtM16CrosstalkTable.cxx,v 1.4 2007/03/01 17:22:11 rhatcher Exp $");
00005 
00006 ClassImp(SimPmtM16CrosstalkTable)
00007 
00008 SimPmtM16CrosstalkTable::SimPmtM16CrosstalkTable( const VldContext& vc )
00009     : fContext(vc),
00010       fResPtr(vc) 
00011 {
00012   MSG("DetSim",Msg::kDebug) << "Creating SimPmtM16CrosstalkTable.\n";
00013 }
00014 
00015 const SimPmtM16Crosstalk* 
00016 SimPmtM16CrosstalkTable::GetRow( UInt_t injPix, UInt_t injSpot, UInt_t xPix )
00017 {
00018   
00019   UInt_t index = SimPmtM16Crosstalk::MakeIndex(injPix, injSpot, xPix);
00020   return fResPtr.GetRowByIndex(index);
00021 }
00022 
00023 void
00024 SimPmtM16CrosstalkTable::Reset(const VldContext& context)
00025 {
00026   // Updates the table if the context changes.
00027   if(context!=fContext) {
00028     fResPtr.NewQuery(context,0);
00029     fContext = context;
00030   }
00031 }

Generated on Mon Feb 15 11:07:37 2010 for loon by  doxygen 1.3.9.1