ATLAS Offline Software
T2CaloEgammaReFastAlgo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
16 #ifndef TRIGT2CALOEGAMMA_T2CALOEGAMMAREFASTALGO_H
17 #define TRIGT2CALOEGAMMA_T2CALOEGAMMAREFASTALGO_H
18 
19 #include "GaudiKernel/ServiceHandle.h"
20 #include "GaudiKernel/ToolHandle.h"
31 #include "TrigFastCalibWithRings.h"
32 
33 #include <string>
34 
35 class IReAlgToolCalo;
36 
40 
41  public:
42  T2CaloEgammaReFastAlgo(const std::string& name, ISvcLocator* pSvcLocator);
43 
44  virtual StatusCode initialize() override;
45  virtual StatusCode execute(const EventContext& context) const override;
47  // float calculateZ0(const float etaLayer1, const float etaLayer2);
48 
49  private:
50  // Properties:
51 
52  Gaudi::Property<bool> m_doForward{this, "DoForward", false,
53  "Do Forward clusters"};
54 
55  Gaudi::Property<bool> m_doCalibWithRings{this, "DoCalibWithRings", false,
56  "FastCalo Et Calibration using Rings"};
57 
58  Gaudi::Property<bool> m_useRings{this, "UseRings", false,
59  "Rings are Used in FastCaloFex"};
60 
61 
62  Gaudi::Property<float> m_l1eta{this, "L1ForceEta", -10.0, "Forced LVL1 eta"};
63  Gaudi::Property<float> m_l1phi{this, "L1ForcePhi", -10.0, "Forced LVL1 phi"};
64  Gaudi::Property<double> m_etaWidth{this, "EtaWidth", 0.1, "Eta Width of the Region of Interest"};
65  Gaudi::Property<double> m_phiWidth{this, "PhiWidth", 0.1, "Phi Width of the Region of Interest"};
66 
67  Gaudi::Property<bool> m_storeCells{this, "StoreCells", false,
68  "store cells in container attached to RoI"};
69 
70  ToolHandleArray<IEgammaCalibration> m_calibsBarrel{
71  this, "CalibListBarrel", {}, "list of calib tools for the Barrel clusters"};
72  ToolHandleArray<IEgammaCalibration> m_calibsEndcap{
73  this, "CalibListEndcap", {}, "list of calib tools for the EndCap clusters"};
74 
75  Gaudi::Property<std::vector<float>> m_rhoEta{
76  this, "RhoEta", {}, "Variables to calculate Z0 position"};
77  Gaudi::Property<std::vector<float>> m_zEta{
78  this, "ZEta", {}, "Variables to calculate Z0 position"};
79 
80  ToolHandleArray<IReAlgToolCalo> m_emAlgTools{
81  this, "IReAlgToolList", {}, "list of ReAlgToolCalos for feature extraction"};
83  this, "BCIDAvgKey", "CaloBCIDAverage", "" };
84 
86  this, "RoIs", "OutputRoIs", "input RoIs"};
87 
89  this, "ClustersName", "CaloClusters", "Calo cluster container"};
90  ToolHandle< GenericMonitoringTool > m_monTool { this, "MonTool", "", "Monitoring tool" };
91  ToolHandle< TrigFastCalibWithRings > m_calibWRingsTool { this, "CalibWRingsTool", "", "FastCalo Calib with Rings tool" };
92 
93 };
94 
95 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
T2CaloEgammaReFastAlgo::m_l1eta
Gaudi::Property< float > m_l1eta
Definition: T2CaloEgammaReFastAlgo.h:62
T2CaloEgammaReFastAlgo::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: T2CaloEgammaReFastAlgo.h:90
IEgammaCalibration.h
TrigFastCalibWithRings.h
T2CaloEgammaReFastAlgo::m_storeCells
Gaudi::Property< bool > m_storeCells
Definition: T2CaloEgammaReFastAlgo.h:67
TrigEMCluster.h
T2CaloEgammaReFastAlgo::m_calibsEndcap
ToolHandleArray< IEgammaCalibration > m_calibsEndcap
Definition: T2CaloEgammaReFastAlgo.h:72
SG::ReadHandleKey< CaloBCIDAverage >
T2CaloEgammaReFastAlgo::T2CaloEgammaReFastAlgo
T2CaloEgammaReFastAlgo(const std::string &name, ISvcLocator *pSvcLocator)
Definition: T2CaloEgammaReFastAlgo.cxx:26
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
T2CaloEgammaReFastAlgo::m_zEta
Gaudi::Property< std::vector< float > > m_zEta
Definition: T2CaloEgammaReFastAlgo.h:77
GenericMonitoringTool.h
T2CaloEgammaReFastAlgo::m_clusterContainerKey
SG::WriteHandleKey< xAOD::TrigEMClusterContainer > m_clusterContainerKey
Definition: T2CaloEgammaReFastAlgo.h:88
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
T2CaloEgammaReFastAlgo::initialize
virtual StatusCode initialize() override
Definition: T2CaloEgammaReFastAlgo.cxx:30
TrigEMClusterAuxContainer.h
T2CaloEgammaReFastAlgo::m_calibsBarrel
ToolHandleArray< IEgammaCalibration > m_calibsBarrel
Definition: T2CaloEgammaReFastAlgo.h:70
T2CaloEgammaReFastAlgo::m_useRings
Gaudi::Property< bool > m_useRings
Definition: T2CaloEgammaReFastAlgo.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T2CaloEgammaReFastAlgo::m_bcidAvgKey
SG::ReadHandleKey< CaloBCIDAverage > m_bcidAvgKey
Definition: T2CaloEgammaReFastAlgo.h:82
T2CaloEgammaReFastAlgo::m_emAlgTools
ToolHandleArray< IReAlgToolCalo > m_emAlgTools
Definition: T2CaloEgammaReFastAlgo.h:80
T2CaloEgammaReFastAlgo::m_etaWidth
Gaudi::Property< double > m_etaWidth
Definition: T2CaloEgammaReFastAlgo.h:64
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
T2CaloEgammaReFastAlgo::m_phiWidth
Gaudi::Property< double > m_phiWidth
Definition: T2CaloEgammaReFastAlgo.h:65
T2CaloEgammaReFastAlgo::m_doForward
Gaudi::Property< bool > m_doForward
calculate zo mass
Definition: T2CaloEgammaReFastAlgo.h:52
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
IReAlgToolCalo
Base Class for Tools used for Egamma and Tau Feature Extraction Algorithms.
Definition: IReAlgToolCalo.h:37
CaloBCIDAverage.h
T2CaloEgammaReFastAlgo::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition: T2CaloEgammaReFastAlgo.h:85
TrigEMClusterContainer.h
T2CaloEgammaReFastAlgo::m_calibWRingsTool
ToolHandle< TrigFastCalibWithRings > m_calibWRingsTool
Definition: T2CaloEgammaReFastAlgo.h:91
T2CaloEgammaReFastAlgo
Main LVL2 Algorithm.
Definition: T2CaloEgammaReFastAlgo.h:39
T2CaloEgammaReFastAlgo::m_doCalibWithRings
Gaudi::Property< bool > m_doCalibWithRings
Definition: T2CaloEgammaReFastAlgo.h:55
T2CaloEgammaReFastAlgo::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: T2CaloEgammaReFastAlgo.cxx:42
T2CaloEgammaReFastAlgo::m_rhoEta
Gaudi::Property< std::vector< float > > m_rhoEta
Definition: T2CaloEgammaReFastAlgo.h:75
TrigRoiDescriptorCollection.h
T2CaloEgammaReFastAlgo::m_l1phi
Gaudi::Property< float > m_l1phi
Definition: T2CaloEgammaReFastAlgo.h:63