ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolExample
AthenaPoolExampleData
AthenaPoolExampleData
ExampleHitContainer.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHENAPOOLEXAMPLEDATA_EXAMPLEHITCONTAINER_H
6
#define ATHENAPOOLEXAMPLEDATA_EXAMPLEHITCONTAINER_H
7
13
14
#include "
AthContainers/DataVector.h
"
15
#include "
AthenaPoolExampleData/ExampleHit.h
"
16
20
class
ExampleHitContainer
:
public
DataVector
<ExampleHit> {
21
22
public
:
// Constructor and Destructor
24
ExampleHitContainer
(
SG::OwnershipPolicy
ownPolicy
=
SG::OWN_ELEMENTS
) :
DataVector
<
ExampleHit
>(
ownPolicy
) {}
26
virtual
~ExampleHitContainer
() =
default
;
27
};
28
#include "
AthenaKernel/CLASS_DEF.h
"
29
CLASS_DEF
(
ExampleHitContainer
, 9102, 1)
30
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
ExampleHit.h
This file contains the class definition for the ExampleHit class.
DataVector< ExampleHit >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector< ExampleHit >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
ExampleHitContainer
This class provides a data vector for ExampleHit objects in AthenaPool.
Definition
ExampleHitContainer.h:20
ExampleHitContainer::~ExampleHitContainer
virtual ~ExampleHitContainer()=default
Destructor.
ExampleHitContainer::ExampleHitContainer
ExampleHitContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Default Constructor.
Definition
ExampleHitContainer.h:24
ExampleHit
This class provides a dummy hit data object for AthenaPool.
Definition
ExampleHit.h:24
SG::OwnershipPolicy
OwnershipPolicy
Definition
OwnershipPolicy.h:16
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition
OwnershipPolicy.h:17
Generated on
for ATLAS Offline Software by
1.17.0