PulserNearDigit Class Reference

#include <PulserNearDigit.h>

List of all members.

Public Member Functions

 PulserNearDigit ()
virtual ~PulserNearDigit ()
void New (const RawDigit &rdit)
void Add (const RawDigit &rdit)
Int_t GetFirstTDC () const
Int_t GetLastTDC () const
Int_t GetADC () const
Int_t GetTDC () const
VldTimeStamp GetCrateT0 () const
Char_t GetErrorCode () const
Char_t GetDataType () const
RawChannelId GetChannel () const

Private Attributes

RawDigit fFirstDigit
Int_t fAdc
Int_t fFirstTS
Int_t fLastTS

Detailed Description

Definition at line 10 of file PulserNearDigit.h.


Constructor & Destructor Documentation

PulserNearDigit::PulserNearDigit (  ) 

Definition at line 17 of file PulserNearDigit.cxx.

00018    :fAdc(0),fFirstTS(0),fLastTS(0)
00019 {
00020 
00021 }

PulserNearDigit::~PulserNearDigit (  )  [virtual]

Definition at line 25 of file PulserNearDigit.cxx.

00026 {
00027 
00028 }


Member Function Documentation

void PulserNearDigit::Add ( const RawDigit rdit  ) 

Definition at line 39 of file PulserNearDigit.cxx.

References fAdc, fFirstDigit, fLastTS, RawDigit::GetADC(), RawDigit::GetChannel(), RawChannelId::GetEncoded(), RawDigit::GetTDC(), Msg::kWarning, and MSG.

00039                                               {
00040    if(rdit.GetChannel().GetEncoded()!=fFirstDigit.GetChannel().GetEncoded()) {
00041       MSG("Pulser",Msg::kWarning)<< "Bugger Channels aren't the same: " 
00042                                  << rdit << "\t" << fFirstDigit << endl;
00043    }
00044    else {
00045       fAdc+=rdit.GetADC();
00046       fLastTS=rdit.GetTDC();
00047    }
00048 }

Int_t PulserNearDigit::GetADC ( void   )  const [inline]

Definition at line 21 of file PulserNearDigit.h.

References fAdc.

Referenced by PulserSummary::AddDigit().

00021 { return fAdc; }

RawChannelId PulserNearDigit::GetChannel (  )  const [inline]

Definition at line 27 of file PulserNearDigit.h.

References fFirstDigit, and RawDigit::GetChannel().

Referenced by PulserFromRawSummaryList::Add(), and PulserSummary::AddDigit().

00027 { return fFirstDigit.GetChannel();}

VldTimeStamp PulserNearDigit::GetCrateT0 (  )  const [inline]

Definition at line 23 of file PulserNearDigit.h.

References fFirstDigit, and RawDigit::GetCrateT0().

00023 { return fFirstDigit.GetCrateT0();}

Char_t PulserNearDigit::GetDataType (  )  const [inline]

Definition at line 25 of file PulserNearDigit.h.

References fFirstDigit, and RawDigit::GetDataType().

00025 { return fFirstDigit.GetDataType(); }

Char_t PulserNearDigit::GetErrorCode (  )  const [inline]

Definition at line 24 of file PulserNearDigit.h.

References fFirstDigit, and RawDigit::GetErrorCode().

00024 { return fFirstDigit.GetErrorCode(); }

Int_t PulserNearDigit::GetFirstTDC (  )  const [inline]

Definition at line 19 of file PulserNearDigit.h.

References fFirstTS.

00019 {return fFirstTS;}

Int_t PulserNearDigit::GetLastTDC (  )  const [inline]

Definition at line 20 of file PulserNearDigit.h.

References fLastTS.

00020 {return fLastTS;}

Int_t PulserNearDigit::GetTDC ( void   )  const [inline]

Definition at line 22 of file PulserNearDigit.h.

References fFirstDigit, and RawDigit::GetTDC().

00022 { return fFirstDigit.GetTDC(); }

void PulserNearDigit::New ( const RawDigit rdit  ) 

Definition at line 32 of file PulserNearDigit.cxx.

References fAdc, fFirstDigit, fFirstTS, fLastTS, RawDigit::GetADC(), and RawDigit::GetTDC().

00032                                               {
00033    fFirstDigit=rdit;
00034    fAdc=rdit.GetADC();
00035    fFirstTS=rdit.GetTDC();
00036    fLastTS=rdit.GetTDC();
00037 }


Member Data Documentation

Int_t PulserNearDigit::fAdc [private]

Definition at line 32 of file PulserNearDigit.h.

Referenced by Add(), GetADC(), and New().

Definition at line 30 of file PulserNearDigit.h.

Referenced by Add(), GetChannel(), GetCrateT0(), GetDataType(), GetErrorCode(), GetTDC(), and New().

Int_t PulserNearDigit::fFirstTS [private]

Definition at line 33 of file PulserNearDigit.h.

Referenced by GetFirstTDC(), and New().

Int_t PulserNearDigit::fLastTS [private]

Definition at line 34 of file PulserNearDigit.h.

Referenced by Add(), GetLastTDC(), and New().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1