ATLAS Offline Software
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h
Go to the documentation of this file.
1 
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 
26 #include "AthenaKernel/CLASS_DEF.h"
27 
28 #include "CaloEvent/CaloTowerSeg.h"
29 #include "CaloEvent/CaloCluster.h"
32 
33 
35 
36 class 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 
101 inline void CaloClusterContainer::setTowerSeg(const CaloTowerSeg& towerSeg)
102 { m_towerSeg = towerSeg; }
103 
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::m_towerSeg
CaloTowerSeg m_towerSeg
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:82
CaloClusterContainer::getTowerSeg
virtual const CaloTowerSeg & getTowerSeg() const
Retrieve tower segmentation.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:104
CaloClusterContainer
Storable container for CaloCluster.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
CaloClusterContainer::m_ROIauthor
std::string m_ROIauthor
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:85
CaloTowerSeg.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG_BASE
SG_BASE(CaloClusterContainer, DataVector< CaloCluster >)
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
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition: OwnershipPolicy.h:17
INavigable4MomentumCollection.h
CaloClusterContainer::getROIAuthor
virtual const std::string & getROIAuthor() const
Retrieve ROI ID and author
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:110
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
DATAVECTOR_VIRTBASES1
DATAVECTOR_VIRTBASES1(CaloCluster, INavigable4Momentum)
CaloClusterContainer::~CaloClusterContainer
virtual ~CaloClusterContainer()
Default destructor.
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
INavigable4Momentum
Definition: INavigable4Momentum.h:21
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:64
DataVector< CaloCluster >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
Return the ownership policy setting for this container.
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition: CaloTowerSeg.h:37
CaloClusterContainer::setROIAuthor
virtual void setROIAuthor(const std::string &RoiAuthor)
Set ROI ID and author into CaloClusterContainer.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:107
CaloClusterContainer::setTowerSeg
virtual void setTowerSeg(const CaloTowerSeg &towerSeg)
Set tower segmentation into CaloClusterContainer.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:101
CaloClusterContainer::CaloClusterContainer
CaloClusterContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
Definition: CaloClusterContainer.cxx:25
checker_macros.h
Define macros for attributes used to control the static checker.
CLASS_DEF.h
macros to associate a CLID to a type