ATLAS Offline Software
TauElecSubtractAlg.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 TAUREC_TauElecSubtractAlg_H
6 #define TAUREC_TauElecSubtractAlg_H
7 
14 #include "StoreGate/ReadHandle.h"
15 #include "StoreGate/WriteHandle.h"
21 #include "xAODTau/TauJet.h"
31 
37 {
39  public:
40  virtual StatusCode initialize() override;
41  virtual StatusCode execute(const EventContext& ctx) const override;
42 
43  private:
44  SG::ReadHandleKey<xAOD::ElectronContainer> m_elecInput { this, "Key_ElectronsInput", "", "Input electron container" };
45  SG::ReadHandleKey<xAOD::CaloClusterContainer> m_clustersInput { this, "Key_ClustersInput", "", "Input cluster container " };
46  SG::WriteHandleKey<xAOD::CaloClusterContainer> m_clustersOutput { this, "Key_ClustersOutput", "", "Output cluster container" };
47  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_tracksInput { this, "Key_IDTracksInput", "", "Input track container " };
48  SG::WriteHandleKey<xAOD::TrackParticleContainer> m_tracksOutput { this, "Key_IDTracksOutput", "", "Output track container " };
49  SG::WriteHandleKey<xAOD::CaloClusterContainer> m_removedClustersOutput { this, "Key_RemovedClustersOutput", "", "Output removed clusters " };
50  SG::WriteHandleKey<xAOD::TrackParticleContainer> m_removedTracksOutput { this, "Key_RemovedTracksOutput", "", "Output removed tracks " };
51 
52  // make sure standard jet TVA is run before this algorithm, hard coded for now
53  SG::ReadDecorHandleKey<xAOD::TrackParticleContainer> m_stdJetTVADecoKey { this, "InDetTrackParticles_jetTVA_key","InDetTrackParticles.TTVA_AMVFVertices_forReco", "make sure standard jet TVA is run before this algorithm, hard coded for now"};
54 
55  ToolHandle<IAsgElectronLikelihoodTool> m_eleLHSelectTool { this, "ElectronLHTool", "", "Electron likelihood selection tool" };
56  Gaudi::Property<bool> m_doNothing { this, "doNothing", false, "If we just deep copy the containers (For Validation Only)"};
57 };
58 
59 #endif // TAUREC_TauElecSubtractAlg_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TauElecSubtractAlg::m_removedTracksOutput
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_removedTracksOutput
Definition: TauElecSubtractAlg.h:50
PropertyWrapper.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
TauElecSubtractAlg::m_tracksOutput
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_tracksOutput
Definition: TauElecSubtractAlg.h:48
TauRecToolBase.h
TauElecSubtractAlg::m_stdJetTVADecoKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_stdJetTVADecoKey
Definition: TauElecSubtractAlg.h:53
ElectronxAODHelpers.h
TauElecSubtractAlg::m_elecInput
SG::ReadHandleKey< xAOD::ElectronContainer > m_elecInput
Definition: TauElecSubtractAlg.h:44
SG::ReadHandleKey< xAOD::ElectronContainer >
CaloClusterAuxContainer.h
TauJetAuxContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TauElecSubtractAlg
Algorithm that remove electron cluster and tracks from the tracks and cluster containers.
Definition: TauElecSubtractAlg.h:37
TauElecSubtractAlg::m_doNothing
Gaudi::Property< bool > m_doNothing
Definition: TauElecSubtractAlg.h:56
WriteHandle.h
Handle class for recording to StoreGate.
IAsgElectronLikelihoodTool.h
EgammaxAODHelpers.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey< xAOD::CaloClusterContainer >
TauElecSubtractAlg::m_removedClustersOutput
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_removedClustersOutput
Definition: TauElecSubtractAlg.h:49
TrackParticleAuxContainer.h
ElectronContainer.h
TauElecSubtractAlg::initialize
virtual StatusCode initialize() override
Definition: TauElecSubtractAlg.cxx:8
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TauElecSubtractAlg::m_tracksInput
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksInput
Definition: TauElecSubtractAlg.h:47
TauJetContainer.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TauElecSubtractAlg::m_clustersOutput
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_clustersOutput
Definition: TauElecSubtractAlg.h:46
CaloCellContainer.h
CaloClusterStoreHelper.h
TauElecSubtractAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TauElecSubtractAlg.cxx:23
TauJet.h
CaloClusterContainer.h
ReadDecorHandle.h
Handle class for reading a decoration on an object.
ReadHandle.h
Handle class for reading from StoreGate.
TauElecSubtractAlg::m_eleLHSelectTool
ToolHandle< IAsgElectronLikelihoodTool > m_eleLHSelectTool
Definition: TauElecSubtractAlg.h:55
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TauElecSubtractAlg::m_clustersInput
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clustersInput
Definition: TauElecSubtractAlg.h:45
TrackParticleContainer.h