PulserRawGainF Class Reference

#include <PulserRawGainF.h>

Inheritance diagram for PulserRawGainF:
DbiTableRow

List of all members.

Public Member Functions

 PulserRawGainF ()
 PulserRawGainF (Int_t aggNo, Int_t seid, Float_t *mean, Float_t *error, Float_t *num_entries)
virtual ~PulserRawGainF ()
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 PulserRawGainF.h.


Constructor & Destructor Documentation

PulserRawGainF::PulserRawGainF (  ) 

Definition at line 42 of file PulserRawGainF.cxx.

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

00043 {
00044   fAggregateNo = -1;
00045   fStripEnd = -1;
00046   memset(fMean,0,40*sizeof(Float_t));
00047   memset(fError,0,40*sizeof(Float_t));
00048   memset(fNumEntries,0,40*sizeof(Float_t));
00049 }

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

Definition at line 51 of file PulserRawGainF.cxx.

References fError, fMean, and fNumEntries.

00052                                                                    :
00053   fAggregateNo(aggNo) , fStripEnd(seid) 
00054 {
00055   for (int i=0;i<40;i++) {
00056     fMean[i] = mean[i];
00057     fError[i] = error[i];
00058     fNumEntries[i] = num_entries[i];
00059   }
00060 }

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

Definition at line 37 of file PulserRawGainF.h.

00037 {};


Member Function Documentation

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

Definition at line 72 of file PulserRawGainF.cxx.

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

00073 {
00074   fMean[point-1] = ps.GetMean();
00075   fError[point-1] =ps.GetError();
00076   fNumEntries[point-1] = ps.GetEntries();
00077   fNumPoints = point;
00078 }

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

Implements DbiTableRow.

Definition at line 50 of file PulserRawGainF.h.

00050 { return new PulserRawGainF;}

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

Implements DbiTableRow.

Definition at line 80 of file PulserRawGainF.cxx.

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

00082 {
00083    rs >> fAggregateNo >> fStripEnd >> fNumPoints;
00084   for (int i=0;i<40;i++) rs >> fMean[i];
00085   for (int i=0;i<40;i++) rs >> fError[i];
00086   for (int i=0;i<40;i++) rs >> fNumEntries[i];
00087 } 

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

Reimplemented from DbiTableRow.

Definition at line 42 of file PulserRawGainF.h.

References fAggregateNo.

00042 { return fAggregateNo; }

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

Definition at line 47 of file PulserRawGainF.h.

References fError.

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

00047 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 43 of file PulserRawGainF.h.

References fStripEnd.

00043 { return fStripEnd; }

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

Definition at line 46 of file PulserRawGainF.h.

References fMean.

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

00046 {return fMean;}

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

Definition at line 48 of file PulserRawGainF.h.

References fNumEntries.

00048 {return fNumEntries;}

Int_t PulserRawGainF::GetNumPoints (  )  const [inline]

Definition at line 45 of file PulserRawGainF.h.

References fNumPoints.

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

00045 {return fNumPoints;}

Int_t PulserRawGainF::GetStripEnd (  )  const [inline]

Definition at line 44 of file PulserRawGainF.h.

References fStripEnd.

00044 {return fStripEnd;}

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

Definition at line 62 of file PulserRawGainF.cxx.

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

00063 {
00064   fAggregateNo = aggNo;
00065   fStripEnd = stripEndKey;
00066   fNumPoints =points;
00067   memset(fMean,0,40*sizeof(Float_t));
00068   memset(fError,0,40*sizeof(Float_t));
00069   memset(fNumEntries,0,40*sizeof(Float_t));
00070 }

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

Reimplemented from DbiTableRow.

Definition at line 89 of file PulserRawGainF.cxx.

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

00091 {
00092    ors << fAggregateNo << fStripEnd << fNumPoints;
00093   for (int i=0;i<40;i++) ors << fMean[i];
00094   for (int i=0;i<40;i++) ors << fError[i];
00095   for (int i=0;i<40;i++) ors << fNumEntries[i];
00096 
00097 }


Member Data Documentation

Definition at line 59 of file PulserRawGainF.h.

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

Float_t PulserRawGainF::fError[40] [private]

Definition at line 63 of file PulserRawGainF.h.

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

Float_t PulserRawGainF::fMean[40] [private]

Definition at line 62 of file PulserRawGainF.h.

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

Float_t PulserRawGainF::fNumEntries[40] [private]

Definition at line 64 of file PulserRawGainF.h.

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

Int_t PulserRawGainF::fNumPoints [private]

Definition at line 61 of file PulserRawGainF.h.

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

Int_t PulserRawGainF::fStripEnd [private]

Definition at line 60 of file PulserRawGainF.h.

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