RawDigitCrateStatus Class Reference

#include <RawDigitCrateStatus.h>

Inheritance diagram for RawDigitCrateStatus:
RawCrateStatus

List of all members.

Public Member Functions

 RawDigitCrateStatus ()
 RawDigitCrateStatus (RawBlockId rbid, Int_t crate, VldTimeStamp t0, ElecType::Elec_t etype=ElecType::kUnknown, Bool_t pedMode=kFALSE, Bool_t sparseMode=kFALSE, Bool_t commonMode=kFALSE)
 RawDigitCrateStatus (RawBlockId rbid, const Int_t *&p)
 RawDigitCrateStatus (RawBlockId rbid, const Int_t *&p, const VldTimeStamp &vts, Bool_t skipWord=false)
virtual ~RawDigitCrateStatus ()
VldTimeStamp GetCrateT0 () const
virtual std::ostream & FormatToOStream (std::ostream &os, Option_t *option="") const

Protected Attributes

VldTimeStamp fCrateT0

Detailed Description

Definition at line 20 of file RawDigitCrateStatus.h.


Constructor & Destructor Documentation

RawDigitCrateStatus::RawDigitCrateStatus (  ) 

Definition at line 22 of file RawDigitCrateStatus.cxx.

00023    : RawCrateStatus(), fCrateT0((time_t)0,0)
00024 {
00025    // Default constructor
00026 }

RawDigitCrateStatus::RawDigitCrateStatus ( RawBlockId  rbid,
Int_t  crate,
VldTimeStamp  t0,
ElecType::Elec_t  etype = ElecType::kUnknown,
Bool_t  pedMode = kFALSE,
Bool_t  sparseMode = kFALSE,
Bool_t  commonMode = kFALSE 
)

Definition at line 29 of file RawDigitCrateStatus.cxx.

00034    : RawCrateStatus(rbid,crate,etype,pedMode,sparseMode,commonMode), 
00035      fCrateT0(t0)
00036 {
00037 
00038 }

RawDigitCrateStatus::RawDigitCrateStatus ( RawBlockId  rbid,
const Int_t *&  p 
)

Definition at line 41 of file RawDigitCrateStatus.cxx.

References fCrateT0.

00042    : RawCrateStatus(rbid,p)
00043 {
00044    // ctor from RawDigitDataBlock
00045    // assume pointer is at block that looks like:
00046    //------------------------
00047    //  cspeeCCCCCC
00048    //  # entries
00049    //             <=== ctor for RawCrateStatus leaves us here
00050    //  GPS T0 sec
00051    //  GPS T0 nsec
00052 
00053    fCrateT0 = VldTimeStamp(p[0],p[1]);
00054 
00055    // advance the pointer
00056    p += 2;
00057 }

RawDigitCrateStatus::RawDigitCrateStatus ( RawBlockId  rbid,
const Int_t *&  p,
const VldTimeStamp vts,
Bool_t  skipWord = false 
)

Definition at line 60 of file RawDigitCrateStatus.cxx.

References fCrateT0.

00063    : RawCrateStatus(rbid,p,skipWord)
00064 {
00065    // ctor from RawLiTpmtDigitsBlock, RawVaTimingMonitorBlock
00066    // assume pointer is at block that looks like:
00067    //------------------------
00068    //  cspeeCCCCCC
00069    //  [ skip word sometimes present ]
00070    //  # entries
00071    //             <=== ctor for RawCrateStatus leaves us here
00072 
00073    fCrateT0 = vts;
00074 
00075 }

RawDigitCrateStatus::~RawDigitCrateStatus (  )  [virtual]

Definition at line 78 of file RawDigitCrateStatus.cxx.

00079 {
00080    // delete all owned sub-objects
00081 
00082 }


Member Function Documentation

std::ostream & RawDigitCrateStatus::FormatToOStream ( std::ostream &  os,
Option_t *  option = "" 
) const [virtual]

Reimplemented from RawCrateStatus.

Definition at line 85 of file RawDigitCrateStatus.cxx.

References VldTimeStamp::AsString(), and GetCrateT0().

00087 {
00088 
00089    RawCrateStatus::FormatToOStream(os,option);
00090 
00091    // additional formatted output (beyond base class) is done here
00092 
00093    os << " " << GetCrateT0().AsString("c");
00094    return os;
00095 }

VldTimeStamp RawDigitCrateStatus::GetCrateT0 (  )  const [inline]

Definition at line 40 of file RawDigitCrateStatus.h.

References fCrateT0.

Referenced by FormatToOStream(), and RawDigit::GetCrateT0().

00040 { return fCrateT0; }


Member Data Documentation

Definition at line 47 of file RawDigitCrateStatus.h.

Referenced by GetCrateT0(), and RawDigitCrateStatus().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1