PulserDrift Class Reference

#include <PulserDrift.h>

Inheritance diagram for PulserDrift:
DbiTableRow

List of all members.

Public Member Functions

 PulserDrift ()
 PulserDrift (Int_t aggNo, Int_t seid, Float_t mean, Float_t error, Float_t num_entries, Float_t num_triggers)
 PulserDrift (Int_t aggNo, const PulserSummary &ps)
virtual ~PulserDrift ()
void New (Int_t aggNo, Int_t stripEndKey, const PulserSummary &ps)
Int_t GetAggregateNo () const
UInt_t GetIndex (UInt_t) const
Int_t GetStripEnd () const
Float_t GetMean () const
Float_t GetError () const
Float_t GetNumEntries () const
Float_t GetNumTriggers () const
Float_t ZCMean () const
Float_t ZCError () 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
Float_t fMean
Float_t fError
Float_t fNumEntries
Float_t fNumTriggers

Detailed Description

Definition at line 32 of file PulserDrift.h.


Constructor & Destructor Documentation

PulserDrift::PulserDrift (  ) 

Definition at line 44 of file PulserDrift.cxx.

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

00045 {
00046   fAggregateNo = -1;
00047   fStripEnd = -1;
00048   fMean = -1;
00049   fError=-1;
00050   fNumEntries=-1;
00051   fNumTriggers=-1;
00052 }

PulserDrift::PulserDrift ( Int_t  aggNo,
Int_t  seid,
Float_t  mean,
Float_t  error,
Float_t  num_entries,
Float_t  num_triggers 
)

Definition at line 54 of file PulserDrift.cxx.

00056                                                :
00057    fAggregateNo(aggNo) , fStripEnd(seid) , fMean(mean),
00058    fError(error), fNumEntries(num_entries), fNumTriggers(num_triggers)
00059 {
00060    
00061 }

PulserDrift::PulserDrift ( Int_t  aggNo,
const PulserSummary ps 
)

Definition at line 63 of file PulserDrift.cxx.

References PlexStripEndId::BuildPlnStripEndKey(), PulserSummary::GetStripEndId(), and New().

00064 {
00065   int stripEndKey = ps.GetStripEndId().BuildPlnStripEndKey();
00066   New(aggNo,stripEndKey,ps);
00067 }

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

Definition at line 39 of file PulserDrift.h.

00039 {};


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 52 of file PulserDrift.h.

00052 { return new PulserDrift;}

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

Implements DbiTableRow.

Definition at line 80 of file PulserDrift.cxx.

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

00082 {
00083    rs >> fAggregateNo;
00084    rs >> fStripEnd;
00085    rs >> fMean;
00086    rs >> fError;
00087    rs >> fNumEntries;
00088    rs >> fNumTriggers;
00089 } 

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

Reimplemented from DbiTableRow.

Definition at line 43 of file PulserDrift.h.

References fAggregateNo.

Referenced by PulserDriftCalScheme::GetDriftFar(), and PulserDriftCalScheme::GetDriftPoint().

00043 { return fAggregateNo; }

Float_t PulserDrift::GetError (  )  const [inline]

Definition at line 47 of file PulserDrift.h.

References fError.

Referenced by PhotonStatSummarizer::LoadDataFromDB().

00047 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 44 of file PulserDrift.h.

References fStripEnd.

00044 { return fStripEnd; }

Float_t PulserDrift::GetMean (  )  const [inline]

Definition at line 46 of file PulserDrift.h.

References fMean.

Referenced by PhotonStatSummarizer::LoadDataFromDB().

00046 {return fMean;}

Float_t PulserDrift::GetNumEntries (  )  const [inline]
Float_t PulserDrift::GetNumTriggers (  )  const [inline]

Definition at line 49 of file PulserDrift.h.

References fNumTriggers.

Referenced by PhotonStatSummarizer::LoadDataFromDB().

00049 {return fNumTriggers;}

Int_t PulserDrift::GetStripEnd (  )  const [inline]

Definition at line 45 of file PulserDrift.h.

References fStripEnd.

Referenced by PhotonStatSummarizer::LoadDataFromDB().

00045 {return fStripEnd;}

void PulserDrift::New ( Int_t  aggNo,
Int_t  stripEndKey,
const PulserSummary ps 
)

Definition at line 69 of file PulserDrift.cxx.

References fAggregateNo, fError, fMean, fNumEntries, fNumTriggers, fStripEnd, PulserSummary::GetEntries(), PulserSummary::GetError(), PulserSummary::GetMean(), and PulserSummary::GetTriggers().

Referenced by PulserDrift().

00070 {
00071   fAggregateNo = aggNo;
00072   fStripEnd = stripEndKey;
00073   fMean = ps.GetMean();
00074   fError =ps.GetError();
00075   fNumEntries = ps.GetEntries();
00076   fNumTriggers = ps.GetTriggers();
00077 }

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

Reimplemented from DbiTableRow.

Definition at line 91 of file PulserDrift.cxx.

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

00093 {
00094    ors << fAggregateNo;
00095    ors << fStripEnd;
00096    ors << fMean;
00097    ors << fError;
00098    ors << fNumEntries;
00099    ors << fNumTriggers;
00100    
00101 }

Float_t PulserDrift::ZCError (  )  const

Definition at line 109 of file PulserDrift.cxx.

References fError, fMean, fNumEntries, and fNumTriggers.

Referenced by PulserDriftCalScheme::GetDriftFar(), and PulserDriftCalScheme::GetDriftPoint().

00109                                    {
00110   // Return zero-corrected error
00111   Float_t zcerr = fNumEntries * fError * fError;
00112   zcerr+= (1.-fNumEntries/fNumTriggers) * fMean * fMean;
00113   zcerr = sqrt(fNumEntries*zcerr)/fNumTriggers;
00114   return zcerr;
00115 }

Float_t PulserDrift::ZCMean (  )  const

Definition at line 103 of file PulserDrift.cxx.

References fMean, fNumEntries, and fNumTriggers.

Referenced by PulserDriftCalScheme::GetDriftFar(), and PulserDriftCalScheme::GetDriftPoint().

00103                                   {
00104   // Return zero-corrected mean
00105   Float_t zcmean = fMean * fNumEntries / fNumTriggers;
00106   return zcmean;
00107 }


Member Data Documentation

Int_t PulserDrift::fAggregateNo [private]

Definition at line 61 of file PulserDrift.h.

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

Float_t PulserDrift::fError [private]

Definition at line 64 of file PulserDrift.h.

Referenced by Fill(), GetError(), New(), PulserDrift(), Store(), and ZCError().

Float_t PulserDrift::fMean [private]

Definition at line 63 of file PulserDrift.h.

Referenced by Fill(), GetMean(), New(), PulserDrift(), Store(), ZCError(), and ZCMean().

Float_t PulserDrift::fNumEntries [private]

Definition at line 65 of file PulserDrift.h.

Referenced by Fill(), GetNumEntries(), New(), PulserDrift(), Store(), ZCError(), and ZCMean().

Float_t PulserDrift::fNumTriggers [private]

Definition at line 66 of file PulserDrift.h.

Referenced by Fill(), GetNumTriggers(), New(), PulserDrift(), Store(), ZCError(), and ZCMean().

Int_t PulserDrift::fStripEnd [private]

Definition at line 62 of file PulserDrift.h.

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