ATLAS Offline Software
VertexFinder.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 DITAUREC_VERTEXFINDER_H
6 #define DITAUREC_VERTEXFINDER_H
7 
8 #include "DiTauToolBase.h"
13 
14 class VertexFinder : public DiTauToolBase {
15  public:
16 
17  //-------------------------------------------------------------
19  //-------------------------------------------------------------
20  VertexFinder(const std::string& type,
21  const std::string& name,
22  const IInterface * parent);
23 
24  //-------------------------------------------------------------
26  //-------------------------------------------------------------
27  virtual ~VertexFinder();
28 
29  virtual StatusCode initialize() override;
30 
32  const EventContext& ctx) const override;
33 
35  float& maxJVF,
36  const EventContext& ctx) const;
37 
38  static float getJetVertexFraction(const xAOD::Vertex*, const std::vector<const xAOD::TrackParticle*>&, const jet::TrackVertexAssociation*) ;
39 
40 
41  private:
43  { this, "PrimVtxContainerName", "PrimaryVertices", "" };
44  std::string m_assocTracksName;
46  { this, "TrackVertexAssociation", "JetTrackVtxAssoc_forDiTaus", "" };
47 };
48 
49 #endif // DITAUREC_VERTEXFINDER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
DiTauToolBase.h
VertexFinder::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition: VertexFinder.cxx:28
VertexFinder::VertexFinder
VertexFinder(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition: VertexFinder.cxx:14
VertexFinder::m_primVtxContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_primVtxContainerName
Definition: VertexFinder.h:43
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
VertexFinder::getJetVertexFraction
static float getJetVertexFraction(const xAOD::Vertex *, const std::vector< const xAOD::TrackParticle * > &, const jet::TrackVertexAssociation *)
Definition: VertexFinder.cxx:137
VertexFinder::getPV_TJVA
ElementLink< xAOD::VertexContainer > getPV_TJVA(const xAOD::DiTauJet *, const xAOD::VertexContainer *, float &maxJVF, const EventContext &ctx) const
Definition: VertexFinder.cxx:92
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
jet::TrackVertexAssociation
Class to hold N-to-one aassociations between tracks and vertices.
Definition: TrackVertexAssociation.h:23
VertexFinder
Definition: VertexFinder.h:14
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrackVertexAssociation.h
VertexFinder::m_trackVertexAssocName
SG::ReadHandleKey< jet::TrackVertexAssociation > m_trackVertexAssocName
Definition: VertexFinder.h:46
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DiTauToolBase
The base class for all tau tools.
Definition: DiTauToolBase.h:20
TrackParticle.h
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::DiTauJet_v1
Definition: DiTauJet_v1.h:31
VertexFinder::execute
virtual StatusCode execute(DiTauCandidateData *data, const EventContext &ctx) const override
Execute - called for each Ditau candidate.
Definition: VertexFinder.cxx:37
VertexFinder::m_assocTracksName
std::string m_assocTracksName
Definition: VertexFinder.h:44
DiTauCandidateData
Definition: DiTauCandidateData.h:15
VertexFinder::~VertexFinder
virtual ~VertexFinder()
Destructor.