PulserRefDriftPin Class Reference

#include <PulserRefDriftPin.h>

Inheritance diagram for PulserRefDriftPin:
DbiTableRow

List of all members.

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
Float_t GetMean () const
Float_t GetError () const
Float_t GetNumEntries () const
virtual DbiTableRowCreateTableRow () 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

Detailed Description

Definition at line 37 of file PulserRefDriftPin.h.


Constructor & Destructor Documentation

PulserRefDriftPin::PulserRefDriftPin (  ) 

Definition at line 48 of file PulserRefDriftPin.cxx.

References fAggregateNo, fError, fMean, and fNumEntries.

00049 {
00050   fAggregateNo = -1;
00051   //fPinId = -1;
00052   fMean = -1;
00053   fError=-1;
00054   fNumEntries=-1;
00055 }

PulserRefDriftPin::PulserRefDriftPin ( Int_t  aggNo,
PlexPinDiodeId  pinid,
Float_t  mean,
Float_t  error,
Float_t  num_entries 
)

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 }

virtual PulserRefDriftPin::~PulserRefDriftPin (  )  [inline, virtual]

Definition at line 44 of file PulserRefDriftPin.h.

00044 {};


Member Function Documentation

virtual DbiTableRow* PulserRefDriftPin::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 56 of file PulserRefDriftPin.h.

00056 { return new PulserRefDriftPin;}

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

Implements DbiTableRow.

Definition at line 77 of file PulserRefDriftPin.cxx.

References det, fAggregateNo, fError, fMean, fNumEntries, fPlexPinDiodeId, VldRange::GetDetectorMask(), DbiValidityRec::GetVldRange(), ElecType::kUnknown, and Detector::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 }

Int_t PulserRefDriftPin::GetAggregateNo (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 48 of file PulserRefDriftPin.h.

References fAggregateNo.

00048 { return fAggregateNo; }

Float_t PulserRefDriftPin::GetError (  )  const [inline]

Definition at line 53 of file PulserRefDriftPin.h.

References fError.

00053 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 49 of file PulserRefDriftPin.h.

References fPlexPinDiodeId, and PlexPinDiodeId::GetEncoded().

00049 { return fPlexPinDiodeId.GetEncoded(); }

Float_t PulserRefDriftPin::GetMean (  )  const [inline]

Definition at line 52 of file PulserRefDriftPin.h.

References fMean.

Referenced by LIPlexMaps::GetRefAdcPinRatio(), and PulserSigLinCalScheme::GetReferencePinDiodeValue().

00052 {return fMean;}

Float_t PulserRefDriftPin::GetNumEntries (  )  const [inline]

Definition at line 54 of file PulserRefDriftPin.h.

References fNumEntries.

Referenced by PulserSigLinCalScheme::GetReferencePinDiodeValue().

00054 {return fNumEntries;}

PlexPinDiodeId PulserRefDriftPin::GetPinDiodeId (  )  const [inline]

Definition at line 50 of file PulserRefDriftPin.h.

References fPlexPinDiodeId.

Referenced by LIPlexMaps::GetRefAdcPinRatio(), and LIPlexMaps::ReadDbPulserDriftPin().

00050 {return fPlexPinDiodeId;}

void PulserRefDriftPin::New ( Int_t  aggNo,
PlexPinDiodeId  pinid,
const PulserSummary ps 
)
void PulserRefDriftPin::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 125 of file PulserRefDriftPin.cxx.

References bfld::AsString(), fAggregateNo, fError, fMean, fNumEntries, 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 }


Member Data Documentation

Definition at line 65 of file PulserRefDriftPin.h.

Referenced by Fill(), GetAggregateNo(), New(), PulserRefDriftPin(), and Store().

Float_t PulserRefDriftPin::fError [private]

Definition at line 69 of file PulserRefDriftPin.h.

Referenced by Fill(), GetError(), New(), PulserRefDriftPin(), and Store().

Float_t PulserRefDriftPin::fMean [private]

Definition at line 68 of file PulserRefDriftPin.h.

Referenced by Fill(), GetMean(), New(), PulserRefDriftPin(), and Store().

Float_t PulserRefDriftPin::fNumEntries [private]

Definition at line 70 of file PulserRefDriftPin.h.

Referenced by Fill(), GetNumEntries(), New(), PulserRefDriftPin(), and Store().

Definition at line 67 of file PulserRefDriftPin.h.

Referenced by Fill(), GetIndex(), GetPinDiodeId(), New(), and Store().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1