ATLAS Offline Software
JetHitAssociation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETHITASSOCIATION_H
6 #define JETHITASSOCIATION_H
7 
8 // STL includes
9 #include <string>
10 
11 // FrameWork includes
13 
14 // Containers
15 #include "xAODJet/JetContainer.h"
19 
20 // Read and write handles
23 
25 {
26  public:
28  JetHitAssociation (const std::string& name,
29  ISvcLocator* svcloc);
30 
31 
32  virtual StatusCode initialize() override;
33  virtual StatusCode finalize() override;
34  virtual StatusCode execute() override;
35 
36 
37  private:
38  // functions
39  StatusCode saveHits(const std::vector<const xAOD::Jet*> &jets,
40  const xAOD::Vertex* const vertex,
43  unsigned long long int &nStoredHits,
44  unsigned long long int &nTotalHits);
45 
46  // Read and write handles
53 
54  // algorithm parameters, counters
57  unsigned long long int m_nStoredPixHits;
58  unsigned long long int m_nStoredSCTHits;
59  unsigned long long int m_nTotalPixHits;
60  unsigned long long int m_nTotalSCTHits;
61 
62 };
63 
64 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
JetHitAssociation::m_dRmatchHitToJet
float m_dRmatchHitToJet
Definition: JetHitAssociation.h:56
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
JetHitAssociation::initialize
virtual StatusCode initialize() override
Definition: JetHitAssociation.cxx:39
JetHitAssociation::JetHitAssociation
JetHitAssociation(const std::string &name, ISvcLocator *svcloc)
Constructor with parameters:
Definition: JetHitAssociation.cxx:11
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
TrackMeasurementValidationAuxContainer.h
JetHitAssociation::m_jetPtThreshold
float m_jetPtThreshold
Definition: JetHitAssociation.h:55
JetHitAssociation::m_jetCollectionName
SG::ReadHandleKey< xAOD::JetContainer > m_jetCollectionName
Definition: JetHitAssociation.h:47
JetHitAssociation::m_inputSCTHitCollectionName
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_inputSCTHitCollectionName
Definition: JetHitAssociation.h:50
JetHitAssociation::saveHits
StatusCode saveHits(const std::vector< const xAOD::Jet * > &jets, const xAOD::Vertex *const vertex, SG::ReadHandle< xAOD::TrackMeasurementValidationContainer > &hits, const SG::WriteHandle< xAOD::TrackMeasurementValidationContainer > &writeHandle, unsigned long long int &nStoredHits, unsigned long long int &nTotalHits)
Definition: JetHitAssociation.cxx:128
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
JetHitAssociation::m_outputPixHitCollectionName
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_outputPixHitCollectionName
Definition: JetHitAssociation.h:51
AthAlgorithm.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
JetHitAssociation::m_nStoredSCTHits
unsigned long long int m_nStoredSCTHits
Definition: JetHitAssociation.h:58
JetHitAssociation::m_nTotalPixHits
unsigned long long int m_nTotalPixHits
Definition: JetHitAssociation.h:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetHitAssociation::m_nTotalSCTHits
unsigned long long int m_nTotalSCTHits
Definition: JetHitAssociation.h:60
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
VertexContainer.h
JetHitAssociation::m_vertexCollectionName
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexCollectionName
Definition: JetHitAssociation.h:48
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
JetContainer.h
JetHitAssociation
Definition: JetHitAssociation.h:25
JetHitAssociation::execute
virtual StatusCode execute() override
Definition: JetHitAssociation.cxx:66
TrackMeasurementValidationContainer.h
JetHitAssociation::m_nStoredPixHits
unsigned long long int m_nStoredPixHits
Definition: JetHitAssociation.h:57
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
JetHitAssociation::finalize
virtual StatusCode finalize() override
Definition: JetHitAssociation.cxx:190
JetHitAssociation::m_outputSCTHitCollectionName
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_outputSCTHitCollectionName
Definition: JetHitAssociation.h:52
JetHitAssociation::m_inputPixHitCollectionName
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_inputPixHitCollectionName
Definition: JetHitAssociation.h:49