BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcDigit Class Reference

#include <RecEmcDigit.h>

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
 
 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

Constructor & Destructor Documentation

◆ RecEmcDigit() [1/6]

◆ RecEmcDigit() [2/6]

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

Definition at line 19 of file RecEmcDigit.cxx.

22{
24 fADC=ADC;
25 fTDC=TDC;
26}
RecEmcADC ADC() const
Definition: RecEmcDigit.cxx:59
RecEmcTDC TDC() const
Definition: RecEmcDigit.cxx:64
RecEmcID CellId() const
Definition: RecEmcDigit.cxx:54

◆ ~RecEmcDigit() [1/2]

RecEmcDigit::~RecEmcDigit ( )

Definition at line 28 of file RecEmcDigit.cxx.

29{
30 //nothing to do
31}

◆ RecEmcDigit() [3/6]

RecEmcDigit::RecEmcDigit ( const RecEmcDigit aDigit)

Definition at line 34 of file RecEmcDigit.cxx.

35{
36 fCellId=aDigit.CellId();
37 fADC=aDigit.ADC();
38 fTDC=aDigit.TDC();
39}

◆ RecEmcDigit() [4/6]

RecEmcDigit::RecEmcDigit ( )

◆ RecEmcDigit() [5/6]

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

◆ ~RecEmcDigit() [2/2]

RecEmcDigit::~RecEmcDigit ( )

◆ RecEmcDigit() [6/6]

RecEmcDigit::RecEmcDigit ( const RecEmcDigit aDigit)

Member Function Documentation

◆ ADC() [1/4]

RecEmcADC RecEmcDigit::ADC ( ) const

Definition at line 59 of file RecEmcDigit.cxx.

60{
61 return fADC;
62}

Referenced by ADC(), Assign(), EmcRecDigit2Hit::Convert(), operator<<(), operator=(), and RecEmcDigit().

◆ ADC() [2/4]

RecEmcADC RecEmcDigit::ADC ( ) const

◆ ADC() [3/4]

RecEmcADC RecEmcDigit::ADC ( const RecEmcADC ADC)

Definition at line 76 of file RecEmcDigit.cxx.

77{
78 fADC=ADC;
79 return fADC;
80}

◆ ADC() [4/4]

RecEmcADC RecEmcDigit::ADC ( const RecEmcADC ADC)

◆ Assign() [1/4]

void RecEmcDigit::Assign ( const RecEmcDigit aDigit)

Definition at line 97 of file RecEmcDigit.cxx.

98{
99 fCellId=aDigit.CellId();
100 fADC=aDigit.ADC();
101 fTDC=aDigit.TDC();
102}

◆ Assign() [2/4]

void RecEmcDigit::Assign ( const RecEmcDigit aDigit)

◆ Assign() [3/4]

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

Definition at line 88 of file RecEmcDigit.cxx.

91{
93 fADC=ADC;
94 fTDC=TDC;
95}

Referenced by EmcRec::execute().

◆ Assign() [4/4]

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

◆ CellId() [1/4]

RecEmcID RecEmcDigit::CellId ( ) const

Definition at line 54 of file RecEmcDigit.cxx.

55{
56 return fCellId;
57}

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

◆ CellId() [2/4]

RecEmcID RecEmcDigit::CellId ( ) const

◆ CellId() [3/4]

RecEmcID RecEmcDigit::CellId ( const RecEmcID CellId)

Definition at line 70 of file RecEmcDigit.cxx.

71{
73 return fCellId;
74}

◆ CellId() [4/4]

RecEmcID RecEmcDigit::CellId ( const RecEmcID CellId)

◆ Dump() [1/2]

void RecEmcDigit::Dump ( ) const

Definition at line 105 of file RecEmcDigit.cxx.

106{
107 cout<<"Digit: ";
108
109 cout<<fCellId<<", ";
110
111 cout.width(12);
112 cout.setf(ios::right);
113 cout<<fADC<<", ";
114
115 cout.width(12);
116 cout.setf(ios::right);
117 cout<<fTDC<<endl;
118}

◆ Dump() [2/2]

void RecEmcDigit::Dump ( ) const

◆ operator=() [1/2]

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

Definition at line 41 of file RecEmcDigit.cxx.

42{
43 if(this!=&aDigit)
44 {
45 fCellId=aDigit.CellId();
46 fADC=aDigit.ADC();
47 fTDC=aDigit.TDC();
48 }
49 return *this;
50}

◆ operator=() [2/2]

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

◆ TDC() [1/4]

RecEmcTDC RecEmcDigit::TDC ( ) const

Definition at line 64 of file RecEmcDigit.cxx.

65{
66 return fTDC;
67}

Referenced by Assign(), EmcRecDigit2Hit::Convert(), operator<<(), operator=(), RecEmcDigit(), and TDC().

◆ TDC() [2/4]

RecEmcTDC RecEmcDigit::TDC ( ) const

◆ TDC() [3/4]

RecEmcTDC RecEmcDigit::TDC ( const RecEmcTDC TDC)

Definition at line 82 of file RecEmcDigit.cxx.

83{
84 fTDC=TDC;
85 return fTDC;
86}

◆ TDC() [4/4]

RecEmcTDC RecEmcDigit::TDC ( const RecEmcTDC TDC)

Member Data Documentation

◆ fADC

RecEmcADC RecEmcDigit::fADC
protected

◆ fCellId

RecEmcID RecEmcDigit::fCellId
protected

◆ fTDC

RecEmcTDC RecEmcDigit::fTDC
protected

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