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

Protected Attributes

RecEmcID fCellId
 
RecEmcADC fADC
 
RecEmcTDC fTDC
 

Detailed Description

Definition at line 16 of file RecEmcDigit.h.

Constructor & Destructor Documentation

◆ RecEmcDigit() [1/3]

RecEmcDigit::RecEmcDigit ( )

Definition at line 12 of file RecEmcDigit.cxx.

13{
14 fCellId.clear();
15 fADC=-1;
16 fTDC=-1;
17}
void clear()
Reset to invalid state.
Definition Identifier.h:152
RecEmcID fCellId
Definition RecEmcDigit.h:52
RecEmcADC fADC
Definition RecEmcDigit.h:53
RecEmcTDC fTDC
Definition RecEmcDigit.h:54

◆ RecEmcDigit() [2/3]

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
RecEmcTDC TDC() const
RecEmcID CellId() const

◆ ~RecEmcDigit()

RecEmcDigit::~RecEmcDigit ( )

Definition at line 28 of file RecEmcDigit.cxx.

29{
30 //nothing to do
31}

◆ RecEmcDigit() [3/3]

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}

Member Function Documentation

◆ ADC() [1/2]

RecEmcADC RecEmcDigit::ADC ( ) const

Definition at line 59 of file RecEmcDigit.cxx.

60{
61 return fADC;
62}

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

◆ ADC() [2/2]

RecEmcADC RecEmcDigit::ADC ( const RecEmcADC & ADC)

Definition at line 76 of file RecEmcDigit.cxx.

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

◆ Assign() [1/2]

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/2]

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().

◆ CellId() [1/2]

RecEmcID RecEmcDigit::CellId ( ) const

Definition at line 54 of file RecEmcDigit.cxx.

55{
56 return fCellId;
57}

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

◆ CellId() [2/2]

RecEmcID RecEmcDigit::CellId ( const RecEmcID & CellId)

Definition at line 70 of file RecEmcDigit.cxx.

71{
73 return fCellId;
74}

◆ Dump()

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}

◆ operator=()

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}

◆ TDC() [1/2]

RecEmcTDC RecEmcDigit::TDC ( ) const

Definition at line 64 of file RecEmcDigit.cxx.

65{
66 return fTDC;
67}

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

◆ TDC() [2/2]

RecEmcTDC RecEmcDigit::TDC ( const RecEmcTDC & TDC)

Definition at line 82 of file RecEmcDigit.cxx.

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

Member Data Documentation

◆ fADC

RecEmcADC RecEmcDigit::fADC
protected

Definition at line 53 of file RecEmcDigit.h.

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

◆ fCellId

RecEmcID RecEmcDigit::fCellId
protected

◆ fTDC

RecEmcTDC RecEmcDigit::fTDC
protected

Definition at line 54 of file RecEmcDigit.h.

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


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