ATLAS Offline Software
LArHitContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // LArHitContainer
6 
7 // This class exists to provides two features that an
8 // AthenaHitsVector<LArHit> does not provide on its own:
9 
10 // - a CLID for StoreGate
11 
12 // - a std::string method that can be used to examine the contents of
13 // the container.
14 
15 #ifndef LArSimEvent_LArHitContainer_h
16 #define LArSimEvent_LArHitContainer_h
17 
19 #include "LArSimEvent/LArHit.h"
20 
21 #include "AthenaKernel/CLASS_DEF.h"
22 
23 class LArHitContainer:public AthenaHitsVector<LArHit>
24 
26 {
27 public:
28 
29  LArHitContainer (const std::string& collectionName="DefaultCollectionName" );
30 
31  virtual ~LArHitContainer() ;
32 
41  virtual operator std::string () const ;
42 
43 };
44 
45 CLASS_DEF (LArHitContainer, 2701 , 1 )
46 
47 #endif // LArSimEvent_LArHitContainer_h
AthenaHitsVector.h
LArHitContainer::~LArHitContainer
virtual ~LArHitContainer()
Definition: LArHitContainer.cxx:17
LArHitContainer
Hit collection.
Definition: LArHitContainer.h:26
LArHit.h
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
AthenaHitsVector
Definition: AthenaHitsVector.h:39
CLASS_DEF.h
macros to associate a CLID to a type
LArHitContainer::LArHitContainer
LArHitContainer(const std::string &collectionName="DefaultCollectionName")
Definition: LArHitContainer.cxx:11