BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRecEventModel/include/EmcRecEventModel/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
12#include "EmcRecEventModel/RecEmcDataType.h"
13
14using namespace std;
15
17public:
18 // Constructors and destructors
20 RecEmcDigit( const RecEmcID& CellId, const RecEmcADC& ADC, const RecEmcTDC& TDC );
22
23 // Copy and assignment
24 RecEmcDigit( const RecEmcDigit& aDigit );
25 RecEmcDigit& operator=( const RecEmcDigit& aDigit );
26
27 // Access
28 // Read
29 RecEmcID CellId() const;
30 RecEmcADC ADC() const;
31 RecEmcTDC TDC() const;
32
33 // Write
35 RecEmcADC ADC( const RecEmcADC& ADC );
36 RecEmcTDC TDC( const RecEmcTDC& TDC );
37
38 void Assign( const RecEmcID& CellId, const RecEmcADC& ADC, const RecEmcTDC& TDC );
39
40 void Assign( const RecEmcDigit& aDigit );
41
42 // others
43 void Dump() const;
44
45protected:
46 // Data members
50};
51
52ostream& operator<<( ostream& os, const RecEmcDigit& aDigit );
53
54typedef map<RecEmcID, RecEmcDigit, less<RecEmcID>> RecEmcDigitMap;
55
56#endif /* REC_EMC_DIGIT_H */
ostream & operator<<(ostream &os, const RecEmcDigit &aDigit)
map< RecEmcID, RecEmcDigit, less< RecEmcID > > RecEmcDigitMap
RecEmcDigit & operator=(const RecEmcDigit &aDigit)
RecEmcADC ADC() const
void Dump() const
RecEmcTDC TDC() const
void Assign(const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
RecEmcID CellId() const