BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/EmcRecEventModel/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
16class RecEmcDigit
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);
29
30 //Access
31 //Read
33 RecEmcADC ADC() const;
34 RecEmcTDC TDC() const;
35
36 //Write
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 */
map< RecEmcID, RecEmcDigit, less< RecEmcID > > RecEmcDigitMap
ostream & operator<<(ostream &os, const RecEmcDigit &aDigit)
RecEmcDigit & operator=(const RecEmcDigit &aDigit)
RecEmcDigit(const RecEmcDigit &aDigit)
RecEmcADC ADC() const
Definition: RecEmcDigit.cxx:59
RecEmcID CellId(const RecEmcID &CellId)
RecEmcDigit(const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
void Dump() const
RecEmcADC ADC(const RecEmcADC &ADC)
RecEmcTDC TDC() const
Definition: RecEmcDigit.cxx:64
void Assign(const RecEmcDigit &aDigit)
void Assign(const RecEmcID &CellId, const RecEmcADC &ADC, const RecEmcTDC &TDC)
RecEmcTDC TDC(const RecEmcTDC &TDC)
RecEmcID CellId() const
Definition: RecEmcDigit.cxx:54