ATLAS Offline Software
CaloClusterContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: CaloClusterContainer.cxx
8 PACKAGE: offline/Calorimeter/CaloRec
9 
10 AUTHORS: H. Ma
11 CREATED: May 2001
12 
13 PURPOSE: Container for CaloCluster objects.
14 
15 
16 ********************************************************************/
17 
18 // INCLUDE HEADER FILES:
20 #include "CaloEvent/CaloClusterContainer.h"
21 #include "CaloEvent/CaloCluster.h"
22 #include "CaloEvent/CaloTowerSeg.h"
23 #include <iostream>
24 
26  DataVector<CaloCluster>(ownPolicy)
27 {}
28 
30  : DataVector<CaloCluster>(), m_towerSeg(towerSeg)
31 { }
32 
33 CaloClusterContainer::CaloClusterContainer(const std::string& RoiAuthor)
34  : DataVector<CaloCluster>(), m_ROIauthor(RoiAuthor)
35 { }
36 
37 CaloClusterContainer::CaloClusterContainer(const CaloTowerSeg& towerSeg, const std::string& RoiAuthor)
38  : DataVector<CaloCluster>(), m_towerSeg(towerSeg), m_ROIauthor(RoiAuthor)
39 { }
40 
42 
44 {
45  std::cout << " Size of CaloClusterContainer is " << size() << std::endl;
46 }
47 
CaloTowerSeg.h
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
CaloClusterContainer::print
void print()
Print size (probably obsolete)
Definition: CaloClusterContainer.cxx:43
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
CaloClusterContainer::~CaloClusterContainer
virtual ~CaloClusterContainer()
Default destructor.
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition: CaloTowerSeg.h:37
CaloClusterContainer::CaloClusterContainer
CaloClusterContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition: CaloClusterContainer.cxx:25
DataVector< CaloCluster >::size
size_type size() const noexcept
Returns the number of elements in the collection.