ATLAS Offline Software
Loading...
Searching...
No Matches
TauProcessorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAUREC_TAUPROCESSORALG_H
6#define TAUREC_TAUPROCESSORALG_H
7
9
13
15
26
27#include "GaudiKernel/SystemOfUnits.h"
28#include "GaudiKernel/ToolHandle.h"
29
33
34class CaloCell_ID;
35
37{
38 public:
39 //-----------------------------------------------------------------
40 // Contructor and destructor
41 //-----------------------------------------------------------------
42 TauProcessorAlg( const std::string &name, ISvcLocator *pSvcLocator );
44
45 //-----------------------------------------------------------------
46 // Gaudi algorithm hooks
47 //-----------------------------------------------------------------
48 virtual StatusCode initialize();
49 virtual StatusCode execute(const EventContext& ctx) const;
50
51 private:
52
53 Gaudi::Property<double> m_maxEta {this, "MaxEta", 2.5, "maximum eta for jet seed"};
54 Gaudi::Property<double> m_minPt {this, "MinPt", 10 * Gaudi::Units::GeV, "minimum pT for jet seed"};
55 Gaudi::Property<int> m_maxNTracks {this, "MaxNTracks", -1, "maximum number of classifiedCharged tracks"};
56
57 const ToolHandleArray<ITauToolBase> m_tools {this, "Tools", {}, "Tools processing taus"};
58 const ToolHandle<ICaloConstCellMakerTool> m_cellMakerTool {this, "CellMakerTool", "", "Tool to sort the CaloCellContainer"};
59
60 SG::ReadHandleKey<xAOD::JetContainer> m_jetInputContainer{this,"Key_jetInputContainer","AntiKt4LCTopoJets","input jet key"};
61
62 SG::WriteHandleKey<xAOD::TauJetContainer> m_tauOutputContainer{this,"Key_tauOutputContainer","tmp_TauJets","output tau data key"};
63 SG::WriteHandleKey<xAOD::TauTrackContainer> m_tauTrackOutputContainer{this,"Key_tauTrackOutputContainer","TauTracks","output tau tracks data key"};
64 SG::WriteHandleKey<CaloConstCellContainer> m_tauPi0CellOutputContainer{this,"Key_tauPi0CellOutputContainer","TauCommonPi0Cells","output calo cell key"};
65
66 const CaloCell_ID* m_cellID = nullptr;
67
68 // These are needed to read ESD and AOD in AthenaMT for P->T conversion of ID tracks.
69 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
70 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_SCTDetEleCollKey{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
71 SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> m_trtDetEleContKey{this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer"};
72
73};
74
75#endif // TAUREC_TAUPROCESSORALG_H
CaloCellContainer that can accept const cell pointers.
Operate on pointers to const CaloCell.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
virtual StatusCode initialize()
Gaudi::Property< double > m_minPt
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Gaudi::Property< int > m_maxNTracks
const ToolHandle< ICaloConstCellMakerTool > m_cellMakerTool
SG::WriteHandleKey< CaloConstCellContainer > m_tauPi0CellOutputContainer
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
const ToolHandleArray< ITauToolBase > m_tools
SG::ReadHandleKey< xAOD::JetContainer > m_jetInputContainer
SG::WriteHandleKey< xAOD::TauTrackContainer > m_tauTrackOutputContainer
virtual StatusCode execute(const EventContext &ctx) const
SG::WriteHandleKey< xAOD::TauJetContainer > m_tauOutputContainer
const CaloCell_ID * m_cellID
TauProcessorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< double > m_maxEta
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey