ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaEvent
src
ElectronContainer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/********************************************************************
6
7
NAME: ElectronContainer.cxx
8
PACKAGE: offline/Reconstruction/egammaEvent
9
10
********************************************************************/
11
12
// INCLUDE HEADER FILES:
13
14
#include "
egammaEvent/ElectronContainer.h
"
15
#include "
egammaEvent/Electron.h
"
16
#include <iomanip>
17
#include <iostream>
18
19
// END OF HEADER FILES INCLUDE
20
21
ElectronContainer::ElectronContainer
(
SG::OwnershipPolicy
ownPolicy
) :
22
DataVector
<
Analysis
::
Electron
>(
ownPolicy
)
23
{}
24
25
// print objects found in container
26
void
ElectronContainer::print
()
27
{
28
29
DataVector<Analysis::Electron>::const_iterator
c_itr;
30
31
std::cout <<
"Number of Electron objects in container "
32
<< this->
size
() << std::endl;
33
34
for
(c_itr=
begin
(); c_itr!=
end
(); ++c_itr)
35
{
36
(*c_itr)->print();
37
}
38
}
ElectronContainer.h
Electron.h
DataVector::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
Definition
DataVector.h:838
DataVector< Analysis::Electron >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector< Analysis::Electron >::end
const_iterator end() const noexcept
DataVector< Analysis::Electron >::begin
const_iterator begin() const noexcept
DataVector< Analysis::Electron >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
DataVector< Analysis::Electron >::size
size_type size() const noexcept
ElectronContainer::print
void print()
Definition
ElectronContainer.cxx:26
ElectronContainer::ElectronContainer
ElectronContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition
ElectronContainer.cxx:21
Electron
Class describing an electron.
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
SG::OwnershipPolicy
OwnershipPolicy
Definition
OwnershipPolicy.h:16
Generated on
for ATLAS Offline Software by
1.17.0