ATLAS Offline Software
Loading...
Searching...
No Matches
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
22
23class LArHitContainer: public AthenaHitsVector<LArHit>
24
26{
27public:
28
29 LArHitContainer (const std::string& collectionName="DefaultCollectionName" );
30
39 operator std::string () const ;
40
41};
42
43CLASS_DEF (LArHitContainer, 2701 , 1 )
44
45#endif // LArSimEvent_LArHitContainer_h
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
LArHitContainer
AthenaHitsVector(const std::string &collectionName="DefaultCollectionName", AthHitVec::OwnershipPolicy ownPolicy=AthHitVec::OWN_ELEMENTS)
Hit collection.
LArHitContainer(const std::string &collectionName="DefaultCollectionName")