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

Public Member Functions | |
| PulserRefDriftPin () | |
| PulserRefDriftPin (Int_t aggNo, PlexPinDiodeId pinid, Float_t mean, Float_t error, Float_t num_entries) | |
| virtual | ~PulserRefDriftPin () |
| void | New (Int_t aggNo, PlexPinDiodeId pinid, const PulserSummary &ps) |
| Int_t | GetAggregateNo () const |
| UInt_t | GetIndex (UInt_t) const |
| PlexPinDiodeId | GetPinDiodeId () const |
| const Float_t | GetMean () const |
| const Float_t | GetError () const |
| const Float_t | GetNumEntries () const |
| virtual DbiTableRow * | CreateTableRow () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
Private Attributes | |
| Int_t | fAggregateNo |
| PlexPinDiodeId | fPlexPinDiodeId |
| Float_t | fMean |
| Float_t | fError |
| Float_t | fNumEntries |
|
|
Definition at line 48 of file PulserRefDriftPin.cxx. 00049 {
00050 fAggregateNo = -1;
00051 //fPinId = -1;
00052 fMean = -1;
00053 fError=-1;
00054 fNumEntries=-1;
00055 }
|
|
||||||||||||||||||||||||
|
Definition at line 57 of file PulserRefDriftPin.cxx. 00059 : 00060 fAggregateNo(aggNo) , fPlexPinDiodeId(pinid) , fMean(mean), 00061 fError(error), fNumEntries(num_entries) 00062 { 00063 00064 }
|
|
|
Definition at line 41 of file PulserRefDriftPin.h. 00041 {};
|
|
|
Implements DbiTableRow. Definition at line 53 of file PulserRefDriftPin.h. 00053 { return new PulserRefDriftPin;}
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 77 of file PulserRefDriftPin.cxx. References det, fAggregateNo, fError, fMean, fPlexPinDiodeId, VldRange::GetDetectorMask(), DbiValidityRec::GetVldRange(), and ElecType::StringToEnum(). 00079 {
00080
00081 Detector::Detector_t det =
00082 (Detector::Detector_t)
00083 ((vrec) ? vrec->GetVldRange().GetDetectorMask() : 0);
00084
00085 string elecName="Unknown";
00086 char elecType = ElecType::kUnknown;
00087 char rackEastWest='?', rackLevel='?';
00088 int rackBay=0, muxboxInRack=0;
00089 int diodeinbox=0, gain=0;
00090
00091 // SeqNo int,
00092 // AggregateNo int,
00093 // ElecName tinytext,
00094 // RackEastWest char(1),
00095 // RackLevel char(1),
00096 // RackBay tinyint,
00097 // MuxBoxInRack tinyint,
00098 // DiodeInBox tinyint,
00099 // Gain tinyint,
00100 // Mean float,
00101 // Error float,
00102 // NumEntries int
00103
00104 rs >> fAggregateNo
00105 >> elecName
00106 >> rackEastWest
00107 >> rackLevel
00108 >> rackBay
00109 >> muxboxInRack
00110 >> diodeinbox
00111 >> gain
00112 >> fMean
00113 >> fError
00114 >> fNumEntries;
00115
00116
00117 ElecType::Elec_t elec = ElecType::StringToEnum(elecName.c_str(),1);
00118 if (ElecType::kUnknown == elec) elec = (ElecType::Elec_t) elecType;
00119
00120 fPlexPinDiodeId = PlexPinDiodeId(det,elec,rackEastWest,rackLevel,
00121 rackBay,muxboxInRack,diodeinbox,gain);
00122
00123 }
|
|
|
Reimplemented from DbiTableRow. Definition at line 45 of file PulserRefDriftPin.h. 00045 { return fAggregateNo; }
|
|
|
Definition at line 50 of file PulserRefDriftPin.h. Referenced by LIPlexMaps::ReadDbPulserDriftPin(). 00050 {return fError;}
|
|
|
Reimplemented from DbiTableRow. Definition at line 46 of file PulserRefDriftPin.h. References fPlexPinDiodeId, and PlexPinDiodeId::GetEncoded(). 00046 { return fPlexPinDiodeId.GetEncoded(); }
|
|
|
Definition at line 49 of file PulserRefDriftPin.h. Referenced by LIPlexMaps::GetRefAdcPinRatio(), PulserSigLinCalScheme::GetReferencePinDiodeValue(), and LIPlexMaps::ReadDbPulserDriftPin(). 00049 {return fMean;}
|
|
|
Definition at line 51 of file PulserRefDriftPin.h. Referenced by PulserSigLinCalScheme::GetReferencePinDiodeValue(), and LIPlexMaps::ReadDbPulserDriftPin(). 00051 {return fNumEntries;}
|
|
|
Definition at line 47 of file PulserRefDriftPin.h. Referenced by LIPlexMaps::GetRefAdcPinRatio(), and LIPlexMaps::ReadDbPulserDriftPin(). 00047 {return fPlexPinDiodeId;}
|
|
||||||||||||||||
|
Definition at line 66 of file PulserRefDriftPin.cxx. References fAggregateNo, fError, fMean, fNumEntries, fPlexPinDiodeId, PulserSummary::GetEntries(), PulserSummary::GetError(), and PulserSummary::GetMean(). Referenced by PulserFromRawCollectorModule::ReferencePointReco(), and PulserCollectorModule::ReferencePointReco(). 00068 {
00069 fAggregateNo = aggNo;
00070 fPlexPinDiodeId = pinid;
00071 fMean = ps.GetMean();
00072 fError = ps.GetError();
00073 fNumEntries = ps.GetEntries();
00074 }
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 125 of file PulserRefDriftPin.cxx. References ElecType::AsString(), fAggregateNo, fError, fMean, fPlexPinDiodeId, PlexMuxBoxId::GetEastWest(), PlexMuxBoxId::GetElecType(), PlexPinDiodeId::GetGain(), PlexPinDiodeId::GetInBox(), PlexMuxBoxId::GetInRack(), PlexMuxBoxId::GetRackBay(), and PlexMuxBoxId::GetRackLevel(). 00127 {
00128 ElecType::Elec_t elec = fPlexPinDiodeId.GetElecType();
00129 // int numeric = fPlexPinDiodeId.GetNumericMuxBox();
00130 char rackEastWest = fPlexPinDiodeId.GetEastWest();
00131 char rackLevel = fPlexPinDiodeId.GetRackLevel();
00132 int rackBay = fPlexPinDiodeId.GetRackBay();
00133 int muxInRack = fPlexPinDiodeId.GetInRack();
00134 ors << fAggregateNo
00135 << ElecType::AsString(elec)
00136 << rackEastWest
00137 << rackLevel
00138 << rackBay
00139 << muxInRack
00140 << fPlexPinDiodeId.GetInBox()
00141 << fPlexPinDiodeId.GetGain()
00142 << fMean
00143 << fError
00144 << fNumEntries;
00145
00146 }
|
|
|
Definition at line 62 of file PulserRefDriftPin.h. |
|
|
Definition at line 66 of file PulserRefDriftPin.h. |
|
|
Definition at line 65 of file PulserRefDriftPin.h. |
|
|
Definition at line 67 of file PulserRefDriftPin.h. Referenced by New(). |
|
|
Definition at line 64 of file PulserRefDriftPin.h. Referenced by Fill(), GetIndex(), New(), and Store(). |
1.3.9.1