ATLAS Offline Software
HIEventShapeMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef __HIEVENTSHAPEMAKER_H__
6 #define __HIEVENTSHAPEMAKER_H__
7 
9 
13 
14 #include "GaudiKernel/ToolHandle.h"
15 #include "Gaudi/Property.h"
16 #include "IHIEventShapeFiller.h"
18 
21 
22 #include <string>
23 #include <iostream>
24 #include <sstream>
25 #include <memory>
26 
27 class CaloCellContainer;
28 
30 {
31 public:
32 
34  HIEventShapeMaker(const std::string& name, ISvcLocator* pSvcLocator);
36  ~HIEventShapeMaker() = default;
37 
38 
39  virtual StatusCode initialize() override;
40  virtual StatusCode execute(const EventContext& ctx) const override;
41  virtual StatusCode finalize() override;
42 
43 private:
44  SG::ReadHandleKey<xAOD::CaloClusterContainer> m_towerContainerKey{ this, "InputTowerKey" , "CombinedTower" , "InputTowerKey" }; //TowerContainer key
45  SG::ReadHandleKey<INavigable4MomentumCollection> m_naviContainerKey{ this, "NaviTowerKey" , "CombinedTower" , "InputTowerKey for Navigable Momentum collection" };
46  SG::ReadHandleKey<CaloCellContainer> m_cellContainerKey{ this, "InputCellKey" , "" , "InputCellKey" }; //CaloCellContainer key
47  SG::ReadHandleKey<xAOD::HIEventShapeContainer> m_readExistingKey{ this, "ReadExistingKey", "HIEventShapeContainer", "Read key to retrieve the shape im_summary_only is true" };
48  SG::WriteHandleKey<xAOD::HIEventShapeContainer> m_outputKey{ this, "OutputContainerKey" , "HIEventShapeContainer", "Output Container Key" }; //Name of output container key
49  SG::WriteHandleKey<xAOD::HIEventShapeContainer> m_summaryKey{ this, "SummaryContainerKey" , "", "SummaryContainerKey" };
50 
51  Gaudi::Property< bool > m_summaryOnly{ this, "SummaryOnly", false, "Summary Only boolean switch" };
52 
53  ToolHandle<IHIEventShapeFiller> m_HIEventShapeFillerTool{ this, "HIEventShapeFillerTool", "HIEventShapeFillerTool", "HIEventShapeFillerTool" };
54  ToolHandle<IHIEventShapeSummaryTool> m_summaryTool{ this, "SummaryTool", "HIEventShapeSummaryTool", "Handle to IHIEventShapeSummaryTool" };
55 
57 };
58 
59 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HIEventShapeMaker::HIEventShapeMaker
HIEventShapeMaker(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: HIEventShapeMaker.cxx:14
HIEventShapeMaker::m_cellContainerKey
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
Definition: HIEventShapeMaker.h:46
HIEventShapeMaker::PrintHIEventShapeContainer
std::string PrintHIEventShapeContainer(const xAOD::HIEventShapeContainer *Container) const
Definition: HIEventShapeMaker.cxx:100
HIEventShapeMaker::m_towerContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_towerContainerKey
Definition: HIEventShapeMaker.h:44
SG::ReadHandleKey< xAOD::CaloClusterContainer >
HIEventShapeMaker::initialize
virtual StatusCode initialize() override
Definition: HIEventShapeMaker.cxx:19
HIEventShapeMaker::~HIEventShapeMaker
~HIEventShapeMaker()=default
Default Destructor.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
Container
storage of the time histories of all the cells
HIEventShapeMaker::m_readExistingKey
SG::ReadHandleKey< xAOD::HIEventShapeContainer > m_readExistingKey
Definition: HIEventShapeMaker.h:47
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IHIEventShapeFiller.h
HIEventShapeContainer.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthReentrantAlgorithm.h
HIEventShapeMaker::m_summaryOnly
Gaudi::Property< bool > m_summaryOnly
Definition: HIEventShapeMaker.h:51
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
HIEventShapeMaker::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: HIEventShapeMaker.cxx:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
HIEventShapeSummaryTool.h
CaloClusterContainer.h
HIEventShapeAuxContainer.h
HIEventShapeMaker::m_summaryTool
ToolHandle< IHIEventShapeSummaryTool > m_summaryTool
Definition: HIEventShapeMaker.h:54
HIEventShapeMaker::finalize
virtual StatusCode finalize() override
Definition: HIEventShapeMaker.cxx:94
HIEventShapeMaker::m_HIEventShapeFillerTool
ToolHandle< IHIEventShapeFiller > m_HIEventShapeFillerTool
Definition: HIEventShapeMaker.h:53
HIEventShapeMaker::m_naviContainerKey
SG::ReadHandleKey< INavigable4MomentumCollection > m_naviContainerKey
Definition: HIEventShapeMaker.h:45
HIEventShapeMaker
Definition: HIEventShapeMaker.h:30
HIEventShapeMaker::m_outputKey
SG::WriteHandleKey< xAOD::HIEventShapeContainer > m_outputKey
Definition: HIEventShapeMaker.h:48
HIEventShapeMaker::m_summaryKey
SG::WriteHandleKey< xAOD::HIEventShapeContainer > m_summaryKey
Definition: HIEventShapeMaker.h:49