BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcDigi.h
Go to the documentation of this file.
1#ifndef EmcDigi_H
2#define EmcDigi_H
3#include <vector>
4#include "GaudiKernel/ObjectVector.h"
5#include "RawEvent/RawData.h"
7
8using namespace EventModel;
9extern const CLID& CLID_EmcDigi;
10
11/*
12 *
13 */
14
15class EmcDigi : public RawData {
16public:
17 // Constructor
18 EmcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel);
19 EmcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel,
20 const unsigned int measure);
21 EmcDigi(const unsigned int id);
22
23 // Set Measure Word
24 void setMeasure(const unsigned int measure) { m_measure = measure; }
25
26 // Get Measure Word
27 unsigned int getMeasure() const { return m_measure; }
28
29 // Retrieve reference to class definition structure
30 virtual const CLID& clID() const { return EmcDigi::classID(); }
31 static const CLID& classID() { return CLID_EmcDigi; }
32
33 // Add two signals, using waveform
34 EmcDigi &operator+=(const EmcDigi &);
35
36 virtual std::ostream& fillStream( std::ostream& s ) const;
37
38private:
39 unsigned int m_measure;
40
41};
42
43typedef ObjectVector<EmcDigi> EmcDigiCol;
44
45inline std::ostream& EmcDigi::fillStream( std::ostream& s ) const {
46 s << "class EmcDigi :" << std::endl
47 << " m_id: " << m_intId
48 << " m_timeChannel: " << m_timeChannel
49 << " m_chargeChannel: " << m_chargeChannel
50 << " m_measure: " << m_measure
51 << std::endl;
52 return s;
53}
54#endif
ObjectVector< EmcDigi > EmcDigiCol
Definition: EmcDigi.h:43
const CLID & CLID_EmcDigi
Definition: EventModel.cxx:237
XmlRpcServer s
Definition: HelloServer.cpp:11
EmcDigi & operator+=(const EmcDigi &)
Definition: EmcDigi.cxx:22
unsigned int getMeasure() const
Definition: EmcDigi.h:27
void setMeasure(const unsigned int measure)
Definition: EmcDigi.h:24
virtual const CLID & clID() const
Definition: EmcDigi.h:30
virtual std::ostream & fillStream(std::ostream &s) const
Fill the ASCII output stream.
Definition: EmcDigi.h:45
static const CLID & classID()
Definition: EmcDigi.h:31
unsigned int m_timeChannel
Definition: RawData.h:70
unsigned int m_chargeChannel
Definition: RawData.h:72
const unsigned int m_intId
Definition: RawData.h:74