ATLAS Offline Software
egammaContainer.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: egammaContainer.cxx
8 PACKAGE: offline/Reconstruction/egammaEvent
9 
10 AUTHORS: H. Ma
11 CREATED: Nov. 2000
12 
13 PURPOSE: This is the Container Class for egamma Objects.
14 Updated: Moved to egammaEvent
15  May 5, 2003 (MW)
16  make code compliant for gcc-3.2
17 ********************************************************************/
18 
19 // INCLUDE HEADER FILES:
20 
22 #include "egammaEvent/egamma.h"
23 #include <iomanip>
24 #include <iostream>
25 
26 // END OF HEADER FILES INCLUDE
27 
29  DataVector<egamma>(ownPolicy)
30 {}
31 
32 // print objects found in container
34 {
35 
37 
38  for (c_itr=begin(); c_itr!=end(); ++c_itr)
39  {
40  (*c_itr)->print();
41  }
42 
43 }
egammaContainer::egammaContainer
egammaContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition: egammaContainer.cxx:28
egamma.h
egamma
Definition: egamma.h:58
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
egammaContainer::print
void print()
Definition: egammaContainer.cxx:33
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
DataVector< egamma >::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataVector< egamma >::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
egammaContainer.h