BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
AthenaHitsCollectionHelper.h
Go to the documentation of this file.
1#ifndef AthenaHitsCollectionHelper_H
2#define AthenaHitsCollectionHelper_H
3
4#include <string>
5// Generic interface to a hit collection. it should be used to
6// remove any dependency between sensitive detectors and the
7// underlying storing system..
8#include "GaudiKernel/ISvcLocator.h"
9#include "GaudiKernel/Bootstrap.h"
10#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/IMessageSvc.h"
12
13// #include "StoreGate/StoreGateSvc.h"
14
16public:
19 // following can't be virtual
20 /*
21 template <typename collectionType>
22 void ExportCollection(collectionType* collection)
23 {
24 StatusCode status = m_storeGate->record(collection,collection->Name(),false);
25 if (status.isFailure())
26 {
27 std::cout
28 << "Failed to record and lock HitCollection in StoreGate!"
29 << std::endl;
30 }
31 else
32 {
33 }
34 }
35 */
36 /*
37 template <typename collectionType>
38 const DataHandle< collectionType > RetrieveCollection(std::string name="")
39 {
40 const DataHandle< collectionType > collMDT;
41 if (name.empty())
42 StatusCode status = m_storeGate->retrieve( collMDT );
43 else
44 StatusCode status = m_storeGate->retrieve( collMDT , name);
45 return collMDT;
46 }
47 */
48private:
49 // StoreGateSvc* m_storeGate;
50};
51
52#endif
53