ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolExample
AthenaPoolExampleData
AthenaPoolExampleData
ExampleTrackContainer.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_EXAMPLETRACKCONTAINER_H
6
#define ATHENAPOOLEXAMPLEDATA_EXAMPLETRACKCONTAINER_H
7
13
14
#include "
AthContainers/DataVector.h
"
15
#include "
AthenaPoolExampleData/ExampleTrack.h
"
16
20
class
ExampleTrackContainer
:
public
DataVector
<ExampleTrack> {
21
22
public
:
// Constructor and Destructor
24
ExampleTrackContainer
(
SG::OwnershipPolicy
ownPolicy
=
SG::OWN_ELEMENTS
) :
DataVector
<
ExampleTrack
>(
ownPolicy
) {}
26
virtual
~ExampleTrackContainer
() =
default
;
27
};
28
#include "
AthenaKernel/CLASS_DEF.h
"
29
CLASS_DEF
(
ExampleTrackContainer
, 9103, 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.
ExampleTrack.h
This file contains the class definition for the ExampleTrack class.
DataVector< ExampleTrack >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector< ExampleTrack >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
ExampleTrackContainer
This class provides a data vector for ExampleTrack objects in AthenaPool.
Definition
ExampleTrackContainer.h:20
ExampleTrackContainer::~ExampleTrackContainer
virtual ~ExampleTrackContainer()=default
Destructor.
ExampleTrackContainer::ExampleTrackContainer
ExampleTrackContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Default Constructor.
Definition
ExampleTrackContainer.h:24
ExampleTrack
This class provides a dummy track data object for AthenaPool.
Definition
ExampleTrack.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