BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/include/RawDataCnv/RawDataAddress.h
Go to the documentation of this file.
1//====================================================================
2// RawDataAddress.h
3//====================================================================
4//
5// Description: An address class used to access Event Filter packed
6// raw event persistent data from within the Athena
7// framework.
8//
9//--------------------------------------------------------------------
10
11#ifndef EF_TDR_EVENT_ADDRESS_H
12#define EF_TDR_EVENT_ADDRESS_H
13
14// Include files.
15#include "GaudiKernel/GenericAddress.h"
16#include <string>
17
18#include "RawDataCnv/ClassID_temp.h"
19
20// Namespaces.
21using namespace std;
22
23// Forward declarations.
24class EVENT;
25
26class RawDataAddress : public GenericAddress {
27
28public:
29 // Standard Constructor.
30 RawDataAddress( const CLID& clid, const string& fname, const string& cname )
31 : GenericAddress( PACKEDRAWEVENT_StorageType, clid, fname, cname )
32 , m_Event( NULL )
33 , m_clID( clid ) {}
34
35 // Standard Destructor.
36 // virtual ~RawDataAddress();
37
38 /// Event accessors
39 void setEvent( const EVENT* evt ) { m_Event = evt; }
40 inline const EVENT* event() const { return m_Event; }
41 virtual const CLID& clID() const { return m_clID; }
42
43private:
44 // Pointer to Event Filter raw event data wrapper class.
45 const EVENT* m_Event;
46 /// Class id
47 CLID m_clID;
48};
49
50#endif // EF_TDR_EVENT_ADDRESS_H
void setEvent(const EVENT *evt)
Event accessors.
RawDataAddress(const CLID &clid, const string &fname, const string &cname)