SimPmtM64Crosstalk Class Reference

#include <SimPmtM64Crosstalk.h>

Inheritance diagram for SimPmtM64Crosstalk:
DbiTableRow

List of all members.

Public Member Functions

 SimPmtM64Crosstalk ()
 SimPmtM64Crosstalk (UInt_t injpix, UInt_t xpix, Float_t elec, Float_t elecerr, Float_t k, Float_t opt, Float_t opterr)
UInt_t GetIndex (UInt_t) const
UInt_t GetInjectedPixel () const
UInt_t GetCrosstalkPixel () const
Float_t GetElecFrac () const
Float_t GetElecFracErr () const
Float_t GetElecK () const
Float_t GetOptProb () const
Float_t GetOptProbErr () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Member Functions

 ClassDef (SimPmtM64Crosstalk, 1)

Private Attributes

Int_t fInjPixel
Int_t fXPixel
Float_t fElecFrac
Float_t fElecFracErr
Float_t fElecK
Float_t fOptProb
Float_t fOptProbErr

Detailed Description

Definition at line 13 of file SimPmtM64Crosstalk.h.


Constructor & Destructor Documentation

SimPmtM64Crosstalk::SimPmtM64Crosstalk (  )  [inline]

Definition at line 16 of file SimPmtM64Crosstalk.h.

00016 {};

SimPmtM64Crosstalk::SimPmtM64Crosstalk ( UInt_t  injpix,
UInt_t  xpix,
Float_t  elec,
Float_t  elecerr,
Float_t  k,
Float_t  opt,
Float_t  opterr 
) [inline]

Definition at line 17 of file SimPmtM64Crosstalk.h.

00019                                                   :
00020     fInjPixel(injpix),fXPixel(xpix),
00021     fElecFrac(elec),fElecFracErr(elecerr),fElecK(k),
00022     fOptProb(opt),fOptProbErr(opterr) {};
  


Member Function Documentation

SimPmtM64Crosstalk::ClassDef ( SimPmtM64Crosstalk  ,
 
) [private]
virtual DbiTableRow* SimPmtM64Crosstalk::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 34 of file SimPmtM64Crosstalk.h.

00035     { return new SimPmtM64Crosstalk; };

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

Implements DbiTableRow.

Definition at line 29 of file SimPmtM64Crosstalk.cxx.

References DbiRowStream::CurColName(), fElecFrac, fElecFracErr, fElecK, fInjPixel, fOptProb, fOptProbErr, fXPixel, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00030                                                         {
00031 
00032 //
00033 //
00034 //  Purpose:  Fill object from Result Set
00035 //
00036 //  Arguments:
00037 //    rs           in    Result Set used to fill object
00038 //    vrec         in    Associated validity record (or 0 if filling
00039 //                                                    DbiValidityRec)
00040 //  Return:
00041 //
00042 //  Contact:   N. West
00043 //
00044 //  Specification:-
00045 //  =============
00046 //
00047 //  o Fill object from current row of Result Set.
00048 
00049 //  Program Notes:-
00050 //  =============
00051 
00052 //  This method demonstrates both the "dumb" fill method (just
00053 //  load the data as it comes) and the smart method (check column
00054 //  name and load according to column order).
00055 
00056   if ( rs.TableName() == "SIMPMTM64CROSSTALK" ) {
00057       // Dumb method.
00058     rs >> fInjPixel >> fXPixel >> fElecFrac >> fElecFracErr
00059        >> fElecK >> fOptProb >> fOptProbErr;
00060    }
00061    else {
00062       // Smart method
00063       Int_t numCol = rs.NumCols();
00064       //  The first column (SeqNo) has already been processed.
00065       for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00066          string colName = rs.CurColName();
00067          if (      colName == "INJPIXEL" )    rs >> fInjPixel;
00068          else if ( colName == "XPIXEL" )      rs >> fXPixel;
00069          else if ( colName == "ELECFRAC" )    rs >> fElecFrac;
00070          else if ( colName == "ELECFRACERR" ) rs >> fElecFracErr;
00071          else if ( colName == "ELECK" )       rs >> fElecK;
00072          else if ( colName == "OPTPROB" )     rs >> fOptProb;
00073          else if ( colName == "OPTPROBERR" )  rs >> fOptProbErr;
00074          else {
00075            MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00076                                   << "(" << colName << ")"
00077                                   << "; not part of CalADCtoPE"
00078                                   << endl;
00079            rs.IncrementCurCol();
00080          }
00081       }
00082    }
00083 }

UInt_t SimPmtM64Crosstalk::GetCrosstalkPixel (  )  const [inline]

Definition at line 26 of file SimPmtM64Crosstalk.h.

References fXPixel.

00026 { return fXPixel; };

Float_t SimPmtM64Crosstalk::GetElecFrac (  )  const [inline]

Definition at line 27 of file SimPmtM64Crosstalk.h.

References fElecFrac.

Referenced by SimPmtM64CrosstalkTable::RebuildCache().

00027 { return fElecFrac; };

Float_t SimPmtM64Crosstalk::GetElecFracErr (  )  const [inline]

Definition at line 28 of file SimPmtM64Crosstalk.h.

References fElecFracErr.

00028 { return fElecFracErr; };

Float_t SimPmtM64Crosstalk::GetElecK (  )  const [inline]

Definition at line 29 of file SimPmtM64Crosstalk.h.

References fElecK.

Referenced by SimPmtM64CrosstalkTable::RebuildCache().

00029 { return fElecK; };

UInt_t SimPmtM64Crosstalk::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 24 of file SimPmtM64Crosstalk.h.

References fInjPixel, and fXPixel.

00024 { return fInjPixel*100+fXPixel; };

UInt_t SimPmtM64Crosstalk::GetInjectedPixel (  )  const [inline]

Definition at line 25 of file SimPmtM64Crosstalk.h.

References fInjPixel.

00025 { return fInjPixel; };

Float_t SimPmtM64Crosstalk::GetOptProb (  )  const [inline]

Definition at line 30 of file SimPmtM64Crosstalk.h.

References fOptProb.

Referenced by SimPmtM64CrosstalkTable::RebuildCache().

00030 { return fOptProb; };

Float_t SimPmtM64Crosstalk::GetOptProbErr (  )  const [inline]

Definition at line 31 of file SimPmtM64Crosstalk.h.

References fOptProbErr.

00031 { return fOptProbErr; };

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

Reimplemented from DbiTableRow.

Definition at line 87 of file SimPmtM64Crosstalk.cxx.

References fElecFrac, fElecFracErr, fElecK, fInjPixel, fOptProb, fOptProbErr, and fXPixel.

00088                                                                {
00089    //
00090 //
00091 //  Purpose:  Stream object to output row stream
00092 //
00093 //  Arguments:
00094 //    ors          in     Output row stream.
00095 //    vrec         in    Associated validity record (or 0 if filling
00096 //                                                    DbiValidityRec)
00097 //
00098 //  Return:
00099 //
00100 //  Contact:   N. West
00101 //
00102 //  Specification:-
00103 //  =============
00104 //
00105 //  o  Stream object to output row stream.
00106 
00107 //  Program Notes:-
00108 //  =============
00109 
00110 //  None.
00111 
00112   ors  << fInjPixel << fXPixel << fElecFrac << fElecFracErr
00113        << fElecK << fOptProb << fOptProbErr;
00114 
00115 }


Member Data Documentation

Float_t SimPmtM64Crosstalk::fElecFrac [private]

Definition at line 47 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetElecFrac(), and Store().

Definition at line 48 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetElecFracErr(), and Store().

Float_t SimPmtM64Crosstalk::fElecK [private]

Definition at line 49 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetElecK(), and Store().

Definition at line 45 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetIndex(), GetInjectedPixel(), and Store().

Float_t SimPmtM64Crosstalk::fOptProb [private]

Definition at line 50 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetOptProb(), and Store().

Definition at line 51 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetOptProbErr(), and Store().

Int_t SimPmtM64Crosstalk::fXPixel [private]

Definition at line 46 of file SimPmtM64Crosstalk.h.

Referenced by Fill(), GetCrosstalkPixel(), GetIndex(), and Store().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1