ATLAS Offline Software
Loading...
Searching...
No Matches
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef CALOEVENT_CALOCLUSTERCONTAINER_H
8#define CALOEVENT_CALOCLUSTERCONTAINER_H
9
10/********************************************************************
11
12NAME: CaloClusterContainer.h
13PACKAGE: offline/Calorimeter/CaloRec
14
15AUTHORS: H. Ma
16CREATED: May 2001
17
18PURPOSE: Container for CaloCluster objects
19 Baseclass: ObjectVector<CaloCluster>
20
21********************************************************************/
22
23// INCLUDE HEADER FILES:
24
27
29#include "CaloEvent/CaloCluster.h"
32
33
35
36class CaloClusterContainer : public DataVector<CaloCluster>
37{
38
39 public:
40 // constructor
43
45 // CaloClusterContainer();
46
48 CaloClusterContainer(const CaloTowerSeg& towerSeg);
49
51 CaloClusterContainer(const std::string& RoiAuthor);
52
53
55 CaloClusterContainer(const CaloTowerSeg& towerSeg, const std::string& RoiAuthor);
56
59
61 virtual void setTowerSeg(const CaloTowerSeg& towerSeg);
62
64 virtual const CaloTowerSeg& getTowerSeg() const;
65
67 virtual void setROIAuthor(const std::string& RoiAuthor);
68
70 virtual const std::string& getROIAuthor() const;
71
77 void print();
78
79
80 private:
81
83
84 /* ROI ID and author algorithm for trigger use */
85 std::string m_ROIauthor;
86
87};
88
91
100
102{ m_towerSeg = towerSeg; }
103
105{ return m_towerSeg; }
106
107inline void CaloClusterContainer::setROIAuthor(const std::string& RoiAuthor)
108{ m_ROIauthor = RoiAuthor; }
109
110inline const std::string& CaloClusterContainer::getROIAuthor() const
111{ return m_ROIauthor; }
112#endif
CaloClusterContainer
Definition CaloTPCnv.cxx:21
#define SG_BASE(D, B)
Declare that class D derives from class B.
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_VIRTBASES1(T, B1)
Declare base class info to DataVector.
Definition DataVector.h:673
Define macros for attributes used to control the static checker.
virtual const CaloTowerSeg & getTowerSeg() const
Retrieve tower segmentation.
virtual const std::string & getROIAuthor() const
Retrieve ROI ID and author.
void print()
Print size (probably obsolete)
virtual void setTowerSeg(const CaloTowerSeg &towerSeg)
Set tower segmentation into CaloClusterContainer.
virtual ~CaloClusterContainer()
Default destructor.
virtual void setROIAuthor(const std::string &RoiAuthor)
Set ROI ID and author into CaloClusterContainer.
CaloClusterContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Principal data class for CaloCell clusters.
Data object stores CaloTower segmentation.
Derived DataVector<T>.
Definition DataVector.h:795
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
SG::OwnershipPolicy ownPolicy() const
OwnershipPolicy
@ OWN_ELEMENTS
this data object owns its elements