PulserRawGain Class Reference

#include <PulserRawGain.h>

Inheritance diagram for PulserRawGain:
DbiTableRow

List of all members.

Public Member Functions

 PulserRawGain ()
 PulserRawGain (Int_t aggNo, Int_t seid, Float_t *mean, Float_t *error, Float_t *num_entries)
virtual ~PulserRawGain ()
void New (Int_t aggNo, Int_t points, Int_t stripEndKey)
void AddPoint (Int_t point, const PulserSummary &ps)
Int_t GetAggregateNo () const
UInt_t GetIndex (UInt_t) const
Int_t GetStripEnd () const
Int_t GetNumPoints () const
const Float_t * GetMean () const
const Float_t * GetError () const
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
Int_t fStripEnd
Int_t fNumPoints
Float_t fMean [40]
Float_t fError [40]
Float_t fNumEntries [40]

Detailed Description

Definition at line 31 of file PulserRawGain.h.


Constructor & Destructor Documentation

PulserRawGain::PulserRawGain (  ) 

Definition at line 46 of file PulserRawGain.cxx.

References fAggregateNo, fError, fMean, fNumEntries, and fStripEnd.

00047 {
00048   fAggregateNo = -1;
00049   fStripEnd = -1;
00050   for (int i=0;i<40;i++) {
00051      fMean[i] = -1;
00052      fError[i] = -1;
00053      fNumEntries[i] = -1;
00054   }
00055 }

PulserRawGain::PulserRawGain ( Int_t  aggNo,
Int_t  seid,
Float_t *  mean,
Float_t *  error,
Float_t *  num_entries 
)

Definition at line 57 of file PulserRawGain.cxx.

References fError, fMean, and fNumEntries.

00058                                                                                :
00059   fAggregateNo(aggNo) , fStripEnd(seid) 
00060 {
00061    memset(fMean,0,40*sizeof(Float_t));
00062    memset(fError,0,40*sizeof(Float_t));
00063    memset(fNumEntries,0,40*sizeof(Float_t));
00064    
00065 }

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

Definition at line 37 of file PulserRawGain.h.

00037 {};


Member Function Documentation

void PulserRawGain::AddPoint ( Int_t  point,
const PulserSummary ps 
)

Definition at line 77 of file PulserRawGain.cxx.

References fError, fMean, fNumEntries, fNumPoints, PulserSummary::GetEntries(), PulserSummary::GetError(), and PulserSummary::GetMean().

00078 {
00079   fMean[point-1] = ps.GetMean();
00080   fError[point-1] =ps.GetError();
00081   fNumEntries[point-1] = ps.GetEntries();
00082   fNumPoints = point;
00083 }

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

Implements DbiTableRow.

Definition at line 50 of file PulserRawGain.h.

00050 { return new PulserRawGain;}

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

Implements DbiTableRow.

Definition at line 85 of file PulserRawGain.cxx.

References fAggregateNo, fError, fMean, fNumEntries, fNumPoints, and fStripEnd.

00087 {
00088    rs >> fAggregateNo >> fStripEnd >> fNumPoints;
00089   for (int i=0;i<40;i++) rs >> fMean[i];
00090   for (int i=0;i<40;i++) rs >> fError[i];
00091   for (int i=0;i<40;i++) rs >> fNumEntries[i];
00092 } 

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

Reimplemented from DbiTableRow.

Definition at line 42 of file PulserRawGain.h.

References fAggregateNo.

00042 { return fAggregateNo; }

const Float_t* PulserRawGain::GetError (  )  const [inline]

Definition at line 47 of file PulserRawGain.h.

References fError.

Referenced by Plotter::BasicPlot(), MakeLin::DoCalc(), Plotter::Plot(), and LIPlexMaps::ReadDbPulserRawGain().

00047 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 43 of file PulserRawGain.h.

References fStripEnd.

00043 { return fStripEnd; }

const Float_t* PulserRawGain::GetMean (  )  const [inline]

Definition at line 46 of file PulserRawGain.h.

References fMean.

Referenced by Plotter::BasicPlot(), MakeLin::DoCalc(), Plotter::Plot(), and LIPlexMaps::ReadDbPulserRawGain().

00046 {return fMean;}

const Float_t* PulserRawGain::GetNumEntries (  )  const [inline]

Definition at line 48 of file PulserRawGain.h.

References fNumEntries.

Referenced by LIPlexMaps::ReadDbPulserRawGain().

00048 {return fNumEntries;}

Int_t PulserRawGain::GetNumPoints (  )  const [inline]

Definition at line 45 of file PulserRawGain.h.

References fNumPoints.

Referenced by Plotter::BasicPlot(), MakeLin::DoCalc(), and Plotter::Plot().

00045 {return fNumPoints;}

Int_t PulserRawGain::GetStripEnd (  )  const [inline]

Definition at line 44 of file PulserRawGain.h.

References fStripEnd.

Referenced by LIPlexMaps::ReadDbPulserRawGain().

00044 {return fStripEnd;}

void PulserRawGain::New ( Int_t  aggNo,
Int_t  points,
Int_t  stripEndKey 
)

Definition at line 67 of file PulserRawGain.cxx.

References fAggregateNo, fError, fMean, fNumEntries, fNumPoints, and fStripEnd.

00068 {
00069   fAggregateNo = aggNo;
00070   fStripEnd = stripEndKey;
00071   fNumPoints =points;
00072   memset(fMean,0,40*sizeof(Float_t));
00073   memset(fError,0,40*sizeof(Float_t));
00074   memset(fNumEntries,0,40*sizeof(Float_t));
00075 }

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

Reimplemented from DbiTableRow.

Definition at line 94 of file PulserRawGain.cxx.

References fAggregateNo, fError, fMean, fNumEntries, fNumPoints, and fStripEnd.

00096 {
00097    ors << fAggregateNo << fStripEnd << fNumPoints;
00098   for (int i=0;i<40;i++) ors << fMean[i];
00099   for (int i=0;i<40;i++) ors << fError[i];
00100   for (int i=0;i<40;i++) ors << fNumEntries[i];
00101 
00102 }


Member Data Documentation

Int_t PulserRawGain::fAggregateNo [private]

Definition at line 59 of file PulserRawGain.h.

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

Float_t PulserRawGain::fError[40] [private]

Definition at line 63 of file PulserRawGain.h.

Referenced by AddPoint(), Fill(), GetError(), New(), PulserRawGain(), and Store().

Float_t PulserRawGain::fMean[40] [private]

Definition at line 62 of file PulserRawGain.h.

Referenced by AddPoint(), Fill(), GetMean(), New(), PulserRawGain(), and Store().

Float_t PulserRawGain::fNumEntries[40] [private]

Definition at line 64 of file PulserRawGain.h.

Referenced by AddPoint(), Fill(), GetNumEntries(), New(), PulserRawGain(), and Store().

Int_t PulserRawGain::fNumPoints [private]

Definition at line 61 of file PulserRawGain.h.

Referenced by AddPoint(), Fill(), GetNumPoints(), New(), and Store().

Int_t PulserRawGain::fStripEnd [private]

Definition at line 60 of file PulserRawGain.h.

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