BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/EmcRawEvent/EmcRawEvent/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"
6#include "EventModel/EventModel.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
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
XmlRpcServer s
Definition: HelloServer.cpp:11
ObjectVector< EmcDigi > EmcDigiCol
const CLID & CLID_EmcDigi
Definition: EventModel.cxx:237
EmcDigi & operator+=(const EmcDigi &)
EmcDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel, const unsigned int measure)
EmcDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
EmcDigi(const unsigned int id)
void setMeasure(const unsigned int measure)
virtual std::ostream & fillStream(std::ostream &s) const
Fill the ASCII output stream.
virtual std::ostream & fillStream(std::ostream &s) const
Fill the ASCII output stream.