BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcDigit.h
Go to the documentation of this file.
1//
2// Bes EMC Rec Hit
3//
4// Created by Wang.Zhe 2003, 12, 15
5//
6
7#ifndef REC_EMC_DIGIT_H
8#define REC_EMC_DIGIT_H
9
10#include <map>
11
13
14using namespace std;
15
17{
18 public:
19 //Constructors and destructors
22 const RecEmcADC& ADC,
23 const RecEmcTDC& TDC);
25
26 //Copy and assignment
27 RecEmcDigit(const RecEmcDigit& aDigit);
28 RecEmcDigit& operator=(const RecEmcDigit& aDigit);
29
30 //Access
31 //Read
32 RecEmcID CellId() const;
33 RecEmcADC ADC() const;
34 RecEmcTDC TDC() const;
35
36 //Write
38 RecEmcADC ADC(const RecEmcADC& ADC);
39 RecEmcTDC TDC(const RecEmcTDC& TDC);
40
41 void Assign(const RecEmcID& CellId,
42 const RecEmcADC& ADC,
43 const RecEmcTDC& TDC);
44
45 void Assign(const RecEmcDigit& aDigit);
46
47 //others
48 void Dump() const;
49
50 protected:
51 //Data members
55};
56
57ostream& operator<<(ostream & os, const RecEmcDigit& aDigit);
58
59typedef map<RecEmcID,RecEmcDigit,less<RecEmcID> > RecEmcDigitMap;
60
61#endif /* REC_EMC_DIGIT_H */
double RecEmcADC
double RecEmcTDC
map< RecEmcID, RecEmcDigit, less< RecEmcID > > RecEmcDigitMap
Definition: RecEmcDigit.h:59
ostream & operator<<(ostream &os, const RecEmcDigit &aDigit)
RecEmcDigit & operator=(const RecEmcDigit &aDigit)
Definition: RecEmcDigit.cxx:41
RecEmcADC ADC() const
Definition: RecEmcDigit.cxx:59
RecEmcID fCellId
Definition: RecEmcDigit.h:52
RecEmcADC fADC
Definition: RecEmcDigit.h:53
RecEmcTDC fTDC
Definition: RecEmcDigit.h:54
void Dump() const
RecEmcTDC TDC() const
Definition: RecEmcDigit.cxx:64
void Assign(const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
Definition: RecEmcDigit.cxx:88
RecEmcID CellId() const
Definition: RecEmcDigit.cxx:54