Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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
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
PlexPinDiodeId fPlexPinDiodeId
Float_t fMean
Float_t fError
Float_t fNumEntries

Constructor & Destructor Documentation

PulserRefDriftPin::PulserRefDriftPin  ) 
 

Definition at line 48 of file PulserRefDriftPin.cxx.

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 41 of file PulserRefDriftPin.h.

00041 {};


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 53 of file PulserRefDriftPin.h.

00053 { 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, fPlexPinDiodeId, VldRange::GetDetectorMask(), DbiValidityRec::GetVldRange(), and ElecType::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 45 of file PulserRefDriftPin.h.

00045 { return fAggregateNo; }

const Float_t PulserRefDriftPin::GetError  )  const [inline]
 

Definition at line 50 of file PulserRefDriftPin.h.

Referenced by LIPlexMaps::ReadDbPulserDriftPin().

00050 {return fError;}

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

Reimplemented from DbiTableRow.

Definition at line 46 of file PulserRefDriftPin.h.

References fPlexPinDiodeId, and PlexPinDiodeId::GetEncoded().

00046 { return fPlexPinDiodeId.GetEncoded(); }

const Float_t PulserRefDriftPin::GetMean  )  const [inline]
 

Definition at line 49 of file PulserRefDriftPin.h.

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

00049 {return fMean;}

const Float_t PulserRefDriftPin::GetNumEntries  )  const [inline]
 

Definition at line 51 of file PulserRefDriftPin.h.

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

00051 {return fNumEntries;}

PlexPinDiodeId PulserRefDriftPin::GetPinDiodeId  )  const [inline]
 

Definition at line 47 of file PulserRefDriftPin.h.

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

00047 {return fPlexPinDiodeId;}

void PulserRefDriftPin::New Int_t  aggNo,
PlexPinDiodeId  pinid,
const PulserSummary ps
 

Definition at line 66 of file PulserRefDriftPin.cxx.

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

Referenced by PulserFromRawCollectorModule::ReferencePointReco(), and PulserCollectorModule::ReferencePointReco().

00068 {
00069   fAggregateNo = aggNo;
00070   fPlexPinDiodeId = pinid;
00071   fMean = ps.GetMean();
00072   fError = ps.GetError();
00073   fNumEntries = ps.GetEntries();
00074 }

void PulserRefDriftPin::Store DbiOutRowStream ors,
const DbiValidityRec vrec
const [virtual]
 

Reimplemented from DbiTableRow.

Definition at line 125 of file PulserRefDriftPin.cxx.

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

Int_t PulserRefDriftPin::fAggregateNo [private]
 

Definition at line 62 of file PulserRefDriftPin.h.

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

Float_t PulserRefDriftPin::fError [private]
 

Definition at line 66 of file PulserRefDriftPin.h.

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

Float_t PulserRefDriftPin::fMean [private]
 

Definition at line 65 of file PulserRefDriftPin.h.

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

Float_t PulserRefDriftPin::fNumEntries [private]
 

Definition at line 67 of file PulserRefDriftPin.h.

Referenced by New().

PlexPinDiodeId PulserRefDriftPin::fPlexPinDiodeId [private]
 

Definition at line 64 of file PulserRefDriftPin.h.

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


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:07 2010 for loon by  doxygen 1.3.9.1