ATLAS Offline Software
EMShowerMinimalContainer.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: EMShowerMinimalContainer.cxx
8 PACKAGE: offline/Reconstruction/egammaEvent
9 
10 AUTHORS: M.P. Casado
11 CREATED: Sep 2003
12 
13 PURPOSE: This is the Container Class for EMShowerMinimal Objects.
14 
15 ********************************************************************/
16 
17 // INCLUDE HEADER FILES:
18 
21 #include <iomanip>
22 #include <iostream>
23 
24 // END OF HEADER FILES INCLUDE
25 
26 // print objects found in container
28 {
29 
31 
32  std::cout << "Number of EMShowerMinimal objects in container "
33  << this->size() << std::endl;
34 
35  for (c_itr=begin(); c_itr!=end(); ++c_itr)
36  {
37  (*c_itr)->print();
38  }
39 
40 }
EMShowerMinimalContainer::print
void print()
Definition: EMShowerMinimalContainer.cxx:27
EMShowerMinimal.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
DataVector< EMShowerMinimal >::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
EMShowerMinimalContainer.h
DataVector< EMShowerMinimal >::size
size_type size() const noexcept
Returns the number of elements in the collection.
DataVector< EMShowerMinimal >::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.