ATLAS Offline Software
JetHitAssociationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JET_HIT_ASSOCIATION_ALG_HH
6 #define JET_HIT_ASSOCIATION_ALG_HH
7 
8 
9 // STL includes
10 #include <string>
11 
12 // FrameWork includes
14 
15 // Containers
16 #include "xAODJet/JetContainer.h"
19 
20 // Read and write handles
23 
24 // Element links
25 #include "AthLinks/ElementLink.h"
26 
27 
28 namespace FlavorTagDiscriminants {
29 
31 
32  public:
33 
34  JetHitAssociationAlg (const std::string& name,
35  ISvcLocator* pSvcLocator);
36 
37  virtual StatusCode initialize() override;
38  virtual StatusCode execute(const EventContext& ) const override;
39  virtual StatusCode finalize() override;
40 
41 
42  private:
43 
45  this,"jetContainer","tempEmtopoJets","Key for jets"};
46 
48  this,"hitContainer","PixelClusters","Key for hits"};
49 
51  this, "hitReaderX","HitsXRelToBeamspot","Key for output hits x coordinate relative to beamspot"};
52 
54  this, "hitReaderY","HitsYRelToBeamspot","Key for output hits y coordinate relative to beamspot"};
55 
57  this,"hitAssociation","hitsAssociatedWithJet","Key for decorating links"};
58 
59  Gaudi::Property <float> m_dPhiHitToJet{
60  this, "dphiHitToJet", 0.2, "Phi difference between hit and jet"};
61 
62  Gaudi::Property <int> m_maxHits{
63  this, "maxHits", 200, "Maximum number of hits"};
64 
65  };
66 }
67 
68 #endif
FlavorTagDiscriminants::JetHitAssociationAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: JetHitAssociationAlg.cxx:43
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
FlavorTagDiscriminants::JetHitAssociationAlg::m_inputPixHitCollectionKey
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_inputPixHitCollectionKey
Definition: JetHitAssociationAlg.h:47
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants::JetHitAssociationAlg::m_jetCollectionKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetCollectionKey
Definition: JetHitAssociationAlg.h:44
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::JetHitAssociationAlg::m_hitAssociationKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_hitAssociationKey
Definition: JetHitAssociationAlg.h:56
FlavorTagDiscriminants::JetHitAssociationAlg::JetHitAssociationAlg
JetHitAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: JetHitAssociationAlg.cxx:17
FlavorTagDiscriminants::JetHitAssociationAlg::finalize
virtual StatusCode finalize() override
Definition: JetHitAssociationAlg.cxx:108
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
FlavorTagDiscriminants::JetHitAssociationAlg::m_HitsYRelToBeamspotKey
SG::ReadDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitsYRelToBeamspotKey
Definition: JetHitAssociationAlg.h:53
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::JetHitAssociationAlg::m_maxHits
Gaudi::Property< int > m_maxHits
Definition: JetHitAssociationAlg.h:62
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
JetContainer.h
TrackMeasurementValidationContainer.h
FlavorTagDiscriminants::JetHitAssociationAlg::m_dPhiHitToJet
Gaudi::Property< float > m_dPhiHitToJet
Definition: JetHitAssociationAlg.h:59
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
FlavorTagDiscriminants::JetHitAssociationAlg
Definition: JetHitAssociationAlg.h:30
FlavorTagDiscriminants::JetHitAssociationAlg::initialize
virtual StatusCode initialize() override
Definition: JetHitAssociationAlg.cxx:21
FlavorTagDiscriminants::JetHitAssociationAlg::m_HitsXRelToBeamspotKey
SG::ReadDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitsXRelToBeamspotKey
Definition: JetHitAssociationAlg.h:50