BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/HltEvent/HltEvent/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"
6#include "EventModel/EventModel.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
HltRaw(const unsigned int id)
void setIntChannel(const unsigned int intChannel)
void setFloatChannel(const float value)
HltRaw(const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
virtual const CLID & clID() const
void setTimeChannel(const unsigned int timeChannel)
Definition: RawData.cxx:25
unsigned int getTimeChannel() const
Definition: RawData.cxx:40