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

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 DbiTableRow * | CreateTableRow () 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 |
|
|
Definition at line 16 of file SimPmtM64Crosstalk.h. 00016 {};
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 17 of file SimPmtM64Crosstalk.h. References fElecFrac, fElecFracErr, fElecK, fInjPixel, fOptProb, fOptProbErr, and fXPixel. 00019 : 00020 fInjPixel(injpix),fXPixel(xpix), 00021 fElecFrac(elec),fElecFracErr(elecerr),fElecK(k), 00022 fOptProb(opt),fOptProbErr(opterr) {};
|
|
||||||||||||
|
|
|
|
Implements DbiTableRow. Definition at line 34 of file SimPmtM64Crosstalk.h. 00035 { return new SimPmtM64Crosstalk; };
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 29 of file SimPmtM64Crosstalk.cxx. References MSG. 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 }
|
|
|
Definition at line 26 of file SimPmtM64Crosstalk.h. 00026 { return fXPixel; };
|
|
|
Definition at line 27 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64CrosstalkTable::RebuildCache(). 00027 { return fElecFrac; };
|
|
|
Definition at line 28 of file SimPmtM64Crosstalk.h. 00028 { return fElecFracErr; };
|
|
|
Definition at line 29 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64CrosstalkTable::RebuildCache(). 00029 { return fElecK; };
|
|
|
Reimplemented from DbiTableRow. Definition at line 24 of file SimPmtM64Crosstalk.h. References fInjPixel. 00024 { return fInjPixel*100+fXPixel; };
|
|
|
Definition at line 25 of file SimPmtM64Crosstalk.h. 00025 { return fInjPixel; };
|
|
|
Definition at line 30 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64CrosstalkTable::RebuildCache(). 00030 { return fOptProb; };
|
|
|
Definition at line 31 of file SimPmtM64Crosstalk.h. 00031 { return fOptProbErr; };
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 87 of file SimPmtM64Crosstalk.cxx. References fElecFrac, fElecFracErr, fElecK, fInjPixel, fOptProb, 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 }
|
|
|
Definition at line 47 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(), and Store(). |
|
|
Definition at line 48 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(), and Store(). |
|
|
Definition at line 49 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(), and Store(). |
|
|
Definition at line 45 of file SimPmtM64Crosstalk.h. Referenced by GetIndex(), SimPmtM64Crosstalk(), and Store(). |
|
|
Definition at line 50 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(), and Store(). |
|
|
Definition at line 51 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(). |
|
|
Definition at line 46 of file SimPmtM64Crosstalk.h. Referenced by SimPmtM64Crosstalk(), and Store(). |
1.3.9.1