RecEmcDigit Class Reference

#include <RecEmcDigit.h>

List of all members.

Public Member Functions

 RecEmcDigit ()
 RecEmcDigit (const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
 ~RecEmcDigit ()
 RecEmcDigit (const RecEmcDigit &aDigit)
RecEmcDigitoperator= (const RecEmcDigit &aDigit)
RecEmcID CellId () const
RecEmcADC ADC () const
RecEmcTDC TDC () const
RecEmcID CellId (const RecEmcID &CellId)
RecEmcADC ADC (const RecEmcADC &ADC)
RecEmcTDC TDC (const RecEmcTDC &TDC)
void Assign (const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
void Assign (const RecEmcDigit &aDigit)
void Dump () const

Protected Attributes

RecEmcID fCellId
RecEmcADC fADC
RecEmcTDC fTDC


Detailed Description

Definition at line 16 of file RecEmcDigit.h.


Constructor & Destructor Documentation

RecEmcDigit::RecEmcDigit (  ) 

Definition at line 12 of file RecEmcDigit.cxx.

References Identifier::clear(), fADC, fCellId, and fTDC.

00013 {
00014    fCellId.clear();
00015    fADC=-1;
00016    fTDC=-1;
00017 }

RecEmcDigit::RecEmcDigit ( const RecEmcID CellId,
const RecEmcADC ADC,
const RecEmcTDC TDC 
)

Definition at line 19 of file RecEmcDigit.cxx.

References CellId(), fADC, fCellId, and fTDC.

00022 {
00023    fCellId=CellId;
00024    fADC=ADC;
00025    fTDC=TDC;
00026 }

RecEmcDigit::~RecEmcDigit (  ) 

Definition at line 28 of file RecEmcDigit.cxx.

00029 {
00030    //nothing to do
00031 }

RecEmcDigit::RecEmcDigit ( const RecEmcDigit aDigit  ) 

Definition at line 34 of file RecEmcDigit.cxx.

References ADC(), CellId(), fADC, fCellId, fTDC, and TDC().

00035 {
00036    fCellId=aDigit.CellId();
00037    fADC=aDigit.ADC();
00038    fTDC=aDigit.TDC();
00039 }


Member Function Documentation

RecEmcADC RecEmcDigit::ADC ( const RecEmcADC ADC  ) 

Definition at line 76 of file RecEmcDigit.cxx.

References fADC.

00077 {
00078    fADC=ADC;
00079    return fADC;
00080 }

RecEmcADC RecEmcDigit::ADC (  )  const

Definition at line 59 of file RecEmcDigit.cxx.

References fADC.

Referenced by Assign(), operator<<(), operator=(), and RecEmcDigit().

00060 {
00061    return fADC;   
00062 }

void RecEmcDigit::Assign ( const RecEmcDigit aDigit  ) 

Definition at line 97 of file RecEmcDigit.cxx.

References ADC(), CellId(), fADC, fCellId, fTDC, and TDC().

00098 {
00099    fCellId=aDigit.CellId();
00100    fADC=aDigit.ADC();
00101    fTDC=aDigit.TDC();
00102 }

void RecEmcDigit::Assign ( const RecEmcID CellId,
const RecEmcADC ADC,
const RecEmcTDC TDC 
)

Definition at line 88 of file RecEmcDigit.cxx.

References CellId(), fADC, fCellId, and fTDC.

Referenced by EmcRec::execute().

00091 {
00092    fCellId=CellId;
00093    fADC=ADC;
00094    fTDC=TDC;
00095 }

RecEmcID RecEmcDigit::CellId ( const RecEmcID CellId  ) 

Definition at line 70 of file RecEmcDigit.cxx.

References CellId(), and fCellId.

00071 {
00072    fCellId=CellId; 
00073    return fCellId;
00074 }

RecEmcID RecEmcDigit::CellId (  )  const

Definition at line 54 of file RecEmcDigit.cxx.

References fCellId.

Referenced by Assign(), CellId(), operator<<(), operator=(), and RecEmcDigit().

00055 {
00056    return fCellId;
00057 }

void RecEmcDigit::Dump (  )  const

Definition at line 105 of file RecEmcDigit.cxx.

References fADC, fCellId, and fTDC.

00106 {
00107    cout<<"Digit: ";
00108    
00109    cout<<fCellId<<", ";
00110    
00111    cout.width(12);
00112    cout.setf(ios::right);
00113    cout<<fADC<<", ";
00114    
00115    cout.width(12);
00116    cout.setf(ios::right);
00117    cout<<fTDC<<endl;
00118 }

RecEmcDigit & RecEmcDigit::operator= ( const RecEmcDigit aDigit  ) 

Definition at line 41 of file RecEmcDigit.cxx.

References ADC(), CellId(), fADC, fCellId, fTDC, and TDC().

00042 {
00043    if(this!=&aDigit)
00044      {
00045         fCellId=aDigit.CellId();
00046         fADC=aDigit.ADC();
00047         fTDC=aDigit.TDC();
00048      }
00049    return *this;
00050 }

RecEmcTDC RecEmcDigit::TDC ( const RecEmcTDC TDC  ) 

Definition at line 82 of file RecEmcDigit.cxx.

References fTDC.

00083 {
00084    fTDC=TDC;
00085    return fTDC;
00086 }

RecEmcTDC RecEmcDigit::TDC (  )  const

Definition at line 64 of file RecEmcDigit.cxx.

References fTDC.

Referenced by Assign(), operator<<(), operator=(), and RecEmcDigit().

00065 {
00066    return fTDC;
00067 }


Member Data Documentation

RecEmcADC RecEmcDigit::fADC [protected]

Definition at line 53 of file RecEmcDigit.h.

Referenced by ADC(), Assign(), Dump(), operator=(), and RecEmcDigit().

RecEmcID RecEmcDigit::fCellId [protected]

Definition at line 52 of file RecEmcDigit.h.

Referenced by Assign(), CellId(), Dump(), operator=(), and RecEmcDigit().

RecEmcTDC RecEmcDigit::fTDC [protected]

Definition at line 54 of file RecEmcDigit.h.

Referenced by Assign(), Dump(), operator=(), RecEmcDigit(), and TDC().


Generated on Tue Nov 29 23:20:49 2016 for BOSS_7.0.2 by  doxygen 1.4.7