RawDigit Class Reference

#include <RawDigit.h>

Inheritance diagram for RawDigit:
RawQieDigit RawVaDigit RawQieDigiDigit RawQieMCDigit RawTOFDigit RawVaDigiDigit RawVaMCDigit

List of all members.

Public Member Functions

 RawDigit ()
 RawDigit (const Int_t *&p, const RawDigitCrateStatus *cstat)
virtual ~RawDigit ()
RawChannelId GetChannel () const
Int_t GetADC () const
Int_t GetTDC () const
VldTimeStamp GetCrateT0 () const
Char_t GetErrorCode () const
Char_t GetDataType () const
const RawDigitCrateStatusGetCrateStatus () const
virtual void Print (Option_t *option="") const
virtual std::ostream & FormatToOStream (std::ostream &os, Option_t *option="") const

Protected Member Functions

void BuildRawChannelId (const RawDigitCrateStatus *cstat, Int_t chadd)

Protected Attributes

const RawDigitCrateStatusfDigitCrateStatus
RawChannelId fRawChannelId
Int_t fAdc
Int_t fTdc
Char_t fErrorCode
Char_t fDataType

Friends

std::ostream & operator<< (std::ostream &os, const RawDigit &r)

Detailed Description

Definition at line 20 of file RawDigit.h.


Constructor & Destructor Documentation

RawDigit::RawDigit (  )  [inline]

Definition at line 60 of file RawDigit.h.

00061   :  fDigitCrateStatus(0), fRawChannelId(0),
00062      fAdc(-1), fTdc(-1), fErrorCode(-1), fDataType(-1) { ; }

RawDigit::RawDigit ( const Int_t *&  p,
const RawDigitCrateStatus cstat 
)

Definition at line 23 of file RawDigit.cxx.

00024    : fDigitCrateStatus(cstat), fRawChannelId(0), fAdc(-1), fTdc(-1), 
00025      fErrorCode(-1), fDataType(-1)
00026 {
00027    // 
00028 
00029    // do const_cast because fCrateStatus should be "const" as well
00030    // but that gives CINT's streamer generated code conniptions
00031 
00032    // MSG("RawData",Msg::kWarning) << "RawDigit basic ctor" << endl;
00033 
00034    // advance pointer by amount it eats up
00035    p += 2;
00036 }

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

Definition at line 63 of file RawDigit.h.

00063 { ; }  // no owned objects


Member Function Documentation

void RawDigit::BuildRawChannelId ( const RawDigitCrateStatus cstat,
Int_t  chadd 
) [protected]
std::ostream & RawDigit::FormatToOStream ( std::ostream &  os,
Option_t *  option = "" 
) const [virtual]

Reimplemented in RawQieDigiDigit, RawQieMCDigit, RawVaDigiDigit, and RawVaMCDigit.

Definition at line 48 of file RawDigit.cxx.

References RawChannelId::AsString(), fAdc, fDataType, fErrorCode, fRawChannelId, fTdc, and Nav::GetName().

Referenced by operator<<(), and Print().

00050 {
00051    os << GetName() << " " << fRawChannelId.AsString(option)
00052       << " Err 0x" << hex << setfill('0') 
00053       << setw(2) << (int)fErrorCode
00054       << setfill(' ') << dec
00055       << " DT"   << setw(3) << (int)fDataType
00056       << " ADC " << setw(5) << fAdc
00057       << " Time " << setw(12) << fTdc;
00058    return os;
00059 }

Int_t RawDigit::GetADC ( void   )  const [inline]
RawChannelId RawDigit::GetChannel (  )  const [inline]
const RawDigitCrateStatus* RawDigit::GetCrateStatus (  )  const [inline]

Definition at line 37 of file RawDigit.h.

References fDigitCrateStatus.

Referenced by RawTOFBlock::FormatToOStream().

00037 { return fDigitCrateStatus; }

VldTimeStamp RawDigit::GetCrateT0 (  )  const [inline]
Char_t RawDigit::GetDataType (  )  const [inline]

Definition at line 35 of file RawDigit.h.

References fDataType.

Referenced by PulserNearDigit::GetDataType(), and FiltSGateModule::ProcessDigitDataBlks().

00035 { return fDataType; }

Char_t RawDigit::GetErrorCode (  )  const [inline]
Int_t RawDigit::GetTDC ( void   )  const [inline]
void RawDigit::Print ( Option_t *  option = ""  )  const [virtual]

Reimplemented in RawTOFDigit.

Definition at line 43 of file RawDigit.cxx.

References FormatToOStream().

Referenced by RawLiTpmtDigitsBlock::FillRawDigits(), RawDigitDataBlock::FillRawDigits(), and RawVaTimingMonitorBlock::FillRawDigits().

00044 {
00045    FormatToOStream(cout,option);
00046 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const RawDigit r 
) [friend]

Reimplemented in RawTOFDigit.


Member Data Documentation

Int_t RawDigit::fAdc [protected]

Definition at line 50 of file RawDigit.h.

Referenced by FormatToOStream(), and GetADC().

Char_t RawDigit::fDataType [protected]

Definition at line 53 of file RawDigit.h.

Referenced by FormatToOStream(), and GetDataType().

Char_t RawDigit::fErrorCode [protected]

Definition at line 49 of file RawDigit.h.

Referenced by BuildRawChannelId(), FormatToOStream(), and GetChannel().

Int_t RawDigit::fTdc [protected]

Definition at line 51 of file RawDigit.h.

Referenced by FormatToOStream(), and GetTDC().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1