BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
HltRaw.h
Go to the documentation of this file.
1#ifndef HltRaw_H
2#define HltRaw_H
3#include <vector>
4#include "GaudiKernel/ObjectVector.h"
5#include "RawEvent/RawData.h"
7
8using namespace EventModel;
9extern const CLID& CLID_HltRaw;
10
11/*
12 *
13 */
14
15class HltRaw : public RawData {
16 public:
17 // Constructor
18 HltRaw(const Identifier& id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0);
19 HltRaw(const unsigned int id);
20
21 void setIntChannel(const unsigned int intChannel){setTimeChannel(intChannel);};
22 unsigned int getIntChannel(){return getTimeChannel();};
23
24 void setFloatChannel(const float value){m_chargeChannel= *((unsigned int*)(&value));};
25 float getFloatChannel(){return *((float*)(&m_chargeChannel));};
26
27 // Retrieve reference to class definition structure
28 virtual const CLID& clID() const { return HltRaw::classID(); }
29 static const CLID& classID() { return CLID_HltRaw; }
30
31 private:
32
33};
34
35typedef ObjectVector<HltRaw> HltRawCol;
36
37#endif
const CLID & CLID_HltRaw
Definition: EventModel.cxx:284
ObjectVector< HltRaw > HltRawCol
Definition: HltRaw.h:35
Definition: HltRaw.h:15
static const CLID & classID()
Definition: HltRaw.h:29
float getFloatChannel()
Definition: HltRaw.h:25
unsigned int getIntChannel()
Definition: HltRaw.h:22
void setIntChannel(const unsigned int intChannel)
Definition: HltRaw.h:21
void setFloatChannel(const float value)
Definition: HltRaw.h:24
virtual const CLID & clID() const
Definition: HltRaw.h:28
unsigned int m_chargeChannel
Definition: RawData.h:72
void setTimeChannel(const unsigned int timeChannel)
Definition: RawData.cxx:25
unsigned int getTimeChannel() const
Definition: RawData.cxx:40