ATLAS Offline Software
Reconstruction/egamma/egammaEvent/egammaEvent/ElectronContainer.h
Go to the documentation of this file.
1 // dear emacs, this is -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef EGAMMAEVENT_ELECTRONCONTAINER_H
8 #define EGAMMAEVENT_ELECTRONCONTAINER_H 1
9 
15 /********************************************************************
16 
17 NAME: ElectronContainer.h
18 PACKAGE: offline/Reconstruction/egammaEvent
19 
20 ********************************************************************/
21 
22 // INCLUDE HEADER FILES:
23 
25 #include "AthenaKernel/CLASS_DEF.h"
26 #include "egammaEvent/Electron.h"
28 
30 
31 class ElectronContainer : public DataVector<Analysis::Electron>
32 {
33  public:
35  virtual ~ElectronContainer() {};
36 
39 
40  void print();
41 };
42 
44 CLASS_DEF(ElectronContainer, 1341992142, 1)
45 
46 #endif
47 
Analysis::Electron
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/Electron.h:20
ElectronContainer::ElectronContainer
ElectronContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition: ElectronContainer.cxx:21
egamma
Definition: egamma.h:58
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition: OwnershipPolicy.h:17
SG_BASE
SG_BASE(ElectronContainer, DataVector< Analysis::Electron >)
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Electron.h
ElectronContainer::~ElectronContainer
virtual ~ElectronContainer()
destructor
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/ElectronContainer.h:35
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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
ElectronContainer
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/ElectronContainer.h:32
DataVector< Analysis::Electron >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
Return the ownership policy setting for this container.
DATAVECTOR_BASE
DATAVECTOR_BASE(Analysis::Electron, egamma)
ElectronContainer::print
void print()
Definition: ElectronContainer.cxx:26
CLASS_DEF.h
macros to associate a CLID to a type
egammaContainer.h