PulserRawDriftPin Class Reference

#include <PulserRawDriftPin.h>

Inheritance diagram for PulserRawDriftPin:
DbiTableRow

List of all members.

Public Member Functions

 PulserRawDriftPin ()
 PulserRawDriftPin (Int_t aggNo, PlexPinDiodeId pinid, Float_t mean, Float_t error, Float_t num_entries)
virtual ~PulserRawDriftPin ()
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 38 of file PulserRawDriftPin.h.


Constructor & Destructor Documentation

PulserRawDriftPin::PulserRawDriftPin (  ) 

Definition at line 49 of file PulserRawDriftPin.cxx.

References fAggregateNo, fError, fMean, and fNumEntries.

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

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

Definition at line 58 of file PulserRawDriftPin.cxx.

00060                                                                          :
00061    fAggregateNo(aggNo) , fPlexPinDiodeId(pinid) , fMean(mean),
00062    fError(error), fNumEntries(num_entries)
00063 {
00064    
00065 }

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

Definition at line 45 of file PulserRawDriftPin.h.

00045 {};


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 57 of file PulserRawDriftPin.h.

00057 { return new PulserRawDriftPin;}

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

Implements DbiTableRow.

Definition at line 78 of file PulserRawDriftPin.cxx.

References det, fAggregateNo, fError, fMean, fNumEntries, fPlexPinDiodeId, VldRange::GetDetectorMask(), DbiValidityRec::GetVldRange(), ElecType::kUnknown, and Detector::StringToEnum().

00080 {
00081    
00082    Detector::Detector_t det =
00083       (Detector::Detector_t) 
00084       ((vrec) ? vrec->GetVldRange().GetDetectorMask() : 0);
00085    
00086    string elecName="Unknown";
00087    char   elecType = ElecType::kUnknown;
00088    char   rackEastWest='?', rackLevel='?';
00089    int    rackBay=0, muxboxInRack=0;
00090    int    diodeinbox=0, gain=0;
00091      
00092    //       SeqNo         int,
00093    //       AggregateNo   int,
00094    //       ElecName      tinytext,
00095    //       RackEastWest  char(1),
00096    //       RackLevel     char(1),
00097    //       RackBay       tinyint,
00098    //       MuxBoxInRack  tinyint,
00099    //       DiodeInBox    tinyint,
00100    //       Gain          tinyint,
00101    //       Mean          float,
00102    //       Error         float,
00103    //       NumEntries    int
00104    
00105    rs >> fAggregateNo
00106       >> elecName
00107       >> rackEastWest
00108       >> rackLevel
00109       >> rackBay
00110       >> muxboxInRack
00111       >> diodeinbox
00112       >> gain
00113       >> fMean
00114       >> fError
00115       >> fNumEntries;
00116       
00117       
00118    ElecType::Elec_t elec = ElecType::StringToEnum(elecName.c_str(),1);
00119    if (ElecType::kUnknown == elec)  elec = (ElecType::Elec_t) elecType;
00120 
00121    fPlexPinDiodeId = PlexPinDiodeId(det,elec,rackEastWest,rackLevel,
00122                                     rackBay,muxboxInRack,diodeinbox,gain);
00123    
00124 }

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

Reimplemented from DbiTableRow.

Definition at line 49 of file PulserRawDriftPin.h.

References fAggregateNo.

00049 { return fAggregateNo; }

Float_t PulserRawDriftPin::GetError (  )  const [inline]

Definition at line 54 of file PulserRawDriftPin.h.

References fError.

Referenced by PulserTimePlotter::CreateGraph(), and LIPlexMaps::GetRawPinLedMap().

00054 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 50 of file PulserRawDriftPin.h.

References fPlexPinDiodeId, and PlexPinDiodeId::GetEncoded().

00050 { return fPlexPinDiodeId.GetEncoded(); }

Float_t PulserRawDriftPin::GetMean (  )  const [inline]
Float_t PulserRawDriftPin::GetNumEntries (  )  const [inline]

Definition at line 55 of file PulserRawDriftPin.h.

References fNumEntries.

Referenced by PulserSigLinCalScheme::GetDriftPinDiodeValue(), and LIPlexMaps::GetRawPinLedMap().

00055 {return fNumEntries;}

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

Reimplemented from DbiTableRow.

Definition at line 126 of file PulserRawDriftPin.cxx.

References bfld::AsString(), fAggregateNo, fError, fMean, fNumEntries, fPlexPinDiodeId, PlexMuxBoxId::GetEastWest(), PlexMuxBoxId::GetElecType(), PlexPinDiodeId::GetGain(), PlexPinDiodeId::GetInBox(), PlexMuxBoxId::GetInRack(), PlexMuxBoxId::GetRackBay(), and PlexMuxBoxId::GetRackLevel().

00128 {
00129    ElecType::Elec_t elec = fPlexPinDiodeId.GetElecType();
00130    //   int  numeric      = fPlexPinDiodeId.GetNumericMuxBox();
00131    char rackEastWest = fPlexPinDiodeId.GetEastWest();
00132    char rackLevel    = fPlexPinDiodeId.GetRackLevel();
00133    int  rackBay      = fPlexPinDiodeId.GetRackBay();
00134    int  muxInRack    = fPlexPinDiodeId.GetInRack();
00135    ors << fAggregateNo
00136        << ElecType::AsString(elec)
00137        << rackEastWest
00138        << rackLevel
00139        << rackBay
00140        << muxInRack
00141        << fPlexPinDiodeId.GetInBox()
00142        << fPlexPinDiodeId.GetGain()
00143        << fMean
00144        << fError
00145        << fNumEntries;
00146    
00147 }


Member Data Documentation

Definition at line 66 of file PulserRawDriftPin.h.

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

Float_t PulserRawDriftPin::fError [private]

Definition at line 70 of file PulserRawDriftPin.h.

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

Float_t PulserRawDriftPin::fMean [private]

Definition at line 69 of file PulserRawDriftPin.h.

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

Float_t PulserRawDriftPin::fNumEntries [private]

Definition at line 71 of file PulserRawDriftPin.h.

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

Definition at line 68 of file PulserRawDriftPin.h.

Referenced by Fill(), GetIndex(), GetPinDiodeId(), New(), 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