BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/TofRawEvent/include/TofRawEvent/TofDigi.h
Go to the documentation of this file.
1#ifndef TofDigi_H
2#define TofDigi_H
3#include "EventModel/EventModel.h"
4#include "GaudiKernel/ObjectVector.h"
5#include "RawEvent/RawData.h"
6#include <iostream>
7#include <vector>
8
9using namespace EventModel;
10extern const CLID& CLID_TofDigi;
11
12/*
13 *
14 */
15
16class TofDigi : public RawData {
17public:
18 // Constructor
19 TofDigi( const Identifier& id, const unsigned int timeChannel,
20 const unsigned int chargeChannel );
21 TofDigi( const unsigned int id );
22
23 // Set Overflow Flag
24 void setOverflow( const unsigned int overflow ) { m_overflow = overflow; }
25
26 // Get Overflow Flag
27 unsigned int getOverflow() {
28 // if (m_timeChannel > 65535 || m_chargeChannel > 65535) {
29 // m_overflow = 1;
30 // }
31 return m_overflow;
32 }
33
34 // Retrieve reference to class definition structure
35 virtual const CLID& clID() const { return TofDigi::classID(); }
36 static const CLID& classID() { return CLID_TofDigi; }
37
38private:
39 unsigned int m_overflow;
40};
41
42typedef ObjectVector<TofDigi> TofDigiCol;
43
44#endif
const CLID & CLID_TofDigi
const CLID & CLID_TofDigi
virtual const CLID & clID() const
TofDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
TofDigi(const unsigned int id)
void setOverflow(const unsigned int overflow)