BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TofRawEvent/TofRawEvent/TofDigi.h
Go to the documentation of this file.
1#ifndef TofDigi_H
2#define TofDigi_H
3#include <vector>
4#include <iostream>
5#include "GaudiKernel/ObjectVector.h"
6#include "RawEvent/RawData.h"
7#include "EventModel/EventModel.h"
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, const unsigned int chargeChannel);
20 TofDigi(const unsigned int id);
21
22 // Set Overflow Flag
23 void setOverflow(const unsigned int overflow) { m_overflow = overflow; }
24
25 // Get Overflow Flag
26 unsigned int getOverflow() {
27 //if (m_timeChannel > 65535 || m_chargeChannel > 65535) {
28 // m_overflow = 1;
29 //}
30 return m_overflow;
31 }
32
33 // Retrieve reference to class definition structure
34 virtual const CLID& clID() const { return TofDigi::classID(); }
35 static const CLID& classID() { return CLID_TofDigi; }
36
37private:
38 unsigned int m_overflow;
39};
40
41typedef ObjectVector<TofDigi> TofDigiCol;
42
43#endif
ObjectVector< TofDigi > TofDigiCol
const CLID & CLID_TofDigi
Definition: EventModel.cxx:240
const CLID & CLID_TofDigi
Definition: EventModel.cxx:240
void setOverflow(const unsigned int overflow)