ATLAS Offline Software
CaloTopoTowerAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOREC_CALOTOPOTOWERALGORITHM_H
6 #define CALOREC_CALOTOPOTOWERALGORITHM_H
7 
25 #include "GaudiKernel/ToolHandle.h"
26 
30 #include <string>
31 #include <vector>
32 
35 
37 {
38  public:
39 
41  typedef std::vector<tool_type*> tool_store;
42  typedef tool_store::const_iterator tool_iterator;
43 
45  CaloTopoTowerAlgorithm(const std::string& name, ISvcLocator* pService);
46 
48 
50  virtual StatusCode initialize() override;
51  virtual StatusCode execute (const EventContext& ctx) const override;
52  virtual StatusCode finalize() override;
53 
54  protected:
55 
57  // Properties //
59 
60  // link output container
62 
63  // tool collection
64  std::vector<std::string> m_toolNames;
65  ToolHandleArray<ICaloTopoTowerBuilderToolBase> m_ptools;
66 
68  // Stores and Services //
70 
71  // list of tools
73 
75  // CaloTopoTowerContainer variables
76  // Container name strings
82 
83  // Selection criteria
87 
88  // Noise tool stuff
89  float m_noiseSigma;
91 
92  // Type definitions
93  // typedef Navigable<CaloClusterContainer> nav_t;
94 
95  // List of calorimeters from which to use cells
96  std::vector<std::string> m_includedCalos;
97  std::vector<CaloCell_ID::SUBCALO> m_caloIndices;
99 
100  //END CaloTopoTowerContainer variables
102 };
103 #endif
CaloTopoTowerAlgorithm::m_cellContainerKey
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
Definition: CaloTopoTowerAlgorithm.h:77
CaloTopoTowerAlgorithm::m_caloSelection
bool m_caloSelection
Definition: CaloTopoTowerAlgorithm.h:98
CaloTopoTowerAlgorithm
Definition: CaloTopoTowerAlgorithm.h:37
CaloTopoTowerAlgorithm::m_clusterKey
SG::ReadHandleKey< CaloClusterContainer > m_clusterKey
Definition: CaloTopoTowerAlgorithm.h:78
CaloTopoTowerAlgorithm::m_tools
tool_store m_tools
Definition: CaloTopoTowerAlgorithm.h:72
CaloTopoTowerAlgorithm::tool_iterator
tool_store::const_iterator tool_iterator
Definition: CaloTopoTowerAlgorithm.h:42
CaloTopoTowerAlgorithm::m_caloIndices
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
Definition: CaloTopoTowerAlgorithm.h:97
CaloTopoTowerAlgorithm::m_toolNames
std::vector< std::string > m_toolNames
Definition: CaloTopoTowerAlgorithm.h:64
CaloTopoTowerAlgorithm::m_genericLink
bool m_genericLink
Definition: CaloTopoTowerAlgorithm.h:61
SG::ReadHandleKey< CaloCellContainer >
CaloTopoTowerAlgorithm::m_includedCalos
std::vector< std::string > m_includedCalos
Definition: CaloTopoTowerAlgorithm.h:96
CaloCell_ID.h
CaloTopoTowerBuilderToolBase
CaloTopoTowerBuilderToolBase is abstract base class for tower builders.
Definition: CaloTopoTowerBuilderToolBase.h:22
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloTopoTowerAlgorithm::~CaloTopoTowerAlgorithm
virtual ~CaloTopoTowerAlgorithm()
CaloTopoTowerAlgorithm::m_minimumCellEnergy
double m_minimumCellEnergy
Definition: CaloTopoTowerAlgorithm.h:84
SG::WriteHandleKey< CaloTopoTowerContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloTopoTowerAlgorithm::CaloTopoTowerAlgorithm
CaloTopoTowerAlgorithm(const std::string &name, ISvcLocator *pService)
Algorithm constructor.
Definition: CaloTopoTowerAlgorithm.cxx:17
CaloCell2ClusterMap.h
CaloTopoTowerContainer
Storable container class for CaloTower.
Definition: CaloTopoTowerContainer.h:51
CaloTopoTowerAlgorithm::tool_type
CaloTopoTowerBuilderToolBase tool_type
Definition: CaloTopoTowerAlgorithm.h:40
CaloTopoTowerAlgorithm::m_towerContainerKey
SG::ReadHandleKey< CaloTowerContainer > m_towerContainerKey
Definition: CaloTopoTowerAlgorithm.h:80
ICaloTopoTowerBuilderToolBase
Definition: ICaloTopoTowerBuilderToolBase.h:36
AthReentrantAlgorithm.h
CaloTopoTowerAlgorithm::m_cellESignificanceThreshold
float m_cellESignificanceThreshold
Definition: CaloTopoTowerAlgorithm.h:90
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloTopoTowerAlgorithm::m_cellToClusterMapKey
SG::ReadHandleKey< CaloCell2ClusterMap > m_cellToClusterMapKey
Definition: CaloTopoTowerAlgorithm.h:79
CaloTopoTowerAlgorithm::initialize
virtual StatusCode initialize() override
inherited from Algorithm
Definition: CaloTopoTowerAlgorithm.cxx:69
CaloTopoTowerAlgorithm::m_newTowerContainerKey
SG::WriteHandleKey< CaloTopoTowerContainer > m_newTowerContainerKey
Definition: CaloTopoTowerAlgorithm.h:81
CaloTopoTowerAlgorithm::m_minimumClusterEnergy
double m_minimumClusterEnergy
Definition: CaloTopoTowerAlgorithm.h:85
CaloTopoTowerBuilderToolBase.h
CaloTopoTowerAlgorithm::finalize
virtual StatusCode finalize() override
Definition: CaloTopoTowerAlgorithm.cxx:315
CaloTopoTowerAlgorithm::m_ptools
ToolHandleArray< ICaloTopoTowerBuilderToolBase > m_ptools
Definition: CaloTopoTowerAlgorithm.h:65
CaloTopoTowerAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CaloTopoTowerAlgorithm.cxx:173
CaloTopoTowerAlgorithm::m_noiseSigma
float m_noiseSigma
Definition: CaloTopoTowerAlgorithm.h:89
CaloTopoTowerAlgorithm::m_useCellWeights
bool m_useCellWeights
Definition: CaloTopoTowerAlgorithm.h:86
CaloTopoTowerAlgorithm::tool_store
std::vector< tool_type * > tool_store
Definition: CaloTopoTowerAlgorithm.h:41