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