ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloEvent
CaloEvent
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
12
NAME: CaloClusterContainer.h
13
PACKAGE: offline/Calorimeter/CaloRec
14
15
AUTHORS: H. Ma
16
CREATED: May 2001
17
18
PURPOSE: Container for CaloCluster objects
19
Baseclass: ObjectVector<CaloCluster>
20
21
********************************************************************/
22
23
// INCLUDE HEADER FILES:
24
25
#include "
AthContainers/DataVector.h
"
26
#include "
AthenaKernel/CLASS_DEF.h
"
27
28
#include "
CaloEvent/CaloTowerSeg.h
"
29
#include "CaloEvent/CaloCluster.h"
30
#include "
NavFourMom/INavigable4MomentumCollection.h
"
31
#include "
CxxUtils/checker_macros.h
"
32
33
34
DATAVECTOR_VIRTBASES1
(
CaloCluster
,
INavigable4Momentum
);
35
36
class
CaloClusterContainer
:
public
DataVector
<CaloCluster>
37
{
38
39
public
:
40
// constructor
42
CaloClusterContainer
(
SG::OwnershipPolicy
ownPolicy
=
SG::OWN_ELEMENTS
) ;
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
58
virtual
~CaloClusterContainer
();
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
82
CaloTowerSeg
m_towerSeg
;
83
84
/* ROI ID and author algorithm for trigger use */
85
std::string
m_ROIauthor
;
86
87
};
88
89
CLASS_DEF
(
CaloClusterContainer
, 2806, 1)
90
SG_BASE
(
CaloClusterContainer
,
DataVector
<
CaloCluster
> );
91
100
101
inline
void
CaloClusterContainer
::
setTowerSeg
(
const
CaloTowerSeg
& towerSeg)
102
{
m_towerSeg
= towerSeg; }
103
104
inline
const
CaloTowerSeg
&
CaloClusterContainer::getTowerSeg
()
const
105
{
return
m_towerSeg
; }
106
107
inline
void
CaloClusterContainer::setROIAuthor
(
const
std::string& RoiAuthor)
108
{
m_ROIauthor
= RoiAuthor; }
109
110
inline
const
std::string&
CaloClusterContainer::getROIAuthor
()
const
111
{
return
m_ROIauthor
; }
112
#endif
CaloClusterContainer
CaloClusterContainer
Definition
CaloTPCnv.cxx:21
CaloTowerSeg.h
SG_BASE
#define SG_BASE(D, B)
Declare that class D derives from class B.
Definition
Control/AthenaKernel/AthenaKernel/BaseInfo.h:243
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
DATAVECTOR_VIRTBASES1
#define DATAVECTOR_VIRTBASES1(T, B1)
Declare base class info to DataVector.
Definition
DataVector.h:673
INavigable4MomentumCollection.h
checker_macros.h
Define macros for attributes used to control the static checker.
CaloClusterContainer
Storable container for CaloCluster.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
CaloClusterContainer::getTowerSeg
virtual const CaloTowerSeg & getTowerSeg() const
Retrieve tower segmentation.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:104
CaloClusterContainer::getROIAuthor
virtual const std::string & getROIAuthor() const
Retrieve ROI ID and author.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:110
CaloClusterContainer::print
void print()
Print size (probably obsolete).
Definition
CaloClusterContainer.cxx:43
CaloClusterContainer::m_towerSeg
CaloTowerSeg m_towerSeg
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:82
CaloClusterContainer::setTowerSeg
virtual void setTowerSeg(const CaloTowerSeg &towerSeg)
Set tower segmentation into CaloClusterContainer.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:101
CaloClusterContainer::~CaloClusterContainer
virtual ~CaloClusterContainer()
Default destructor.
CaloClusterContainer::setROIAuthor
virtual void setROIAuthor(const std::string &RoiAuthor)
Set ROI ID and author into CaloClusterContainer.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:107
CaloClusterContainer::m_ROIauthor
std::string m_ROIauthor
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:85
CaloClusterContainer::CaloClusterContainer
CaloClusterContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition
CaloClusterContainer.cxx:25
CaloCluster
Principal data class for CaloCell clusters.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition
CaloTowerSeg.h:37
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
DataVector< CaloCluster >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector< CaloCluster >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
INavigable4Momentum
Definition
INavigable4Momentum.h:21
const
SG::OwnershipPolicy
OwnershipPolicy
Definition
OwnershipPolicy.h:16
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition
OwnershipPolicy.h:17
Generated on
for ATLAS Offline Software by
1.17.0