BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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"
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
Definition: TofDigi.h:41
const CLID & CLID_TofDigi
Definition: EventModel.cxx:240
unsigned int getOverflow()
Definition: TofDigi.h:26
static const CLID & classID()
Definition: TofDigi.h:35
virtual const CLID & clID() const
Definition: TofDigi.h:34
void setOverflow(const unsigned int overflow)
Definition: TofDigi.h:23