ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetPhysValMonitoring
src
InDetPerfPlot_VerticesVsMu.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
10
#include "
InDetPerfPlot_VerticesVsMu.h
"
11
#include "
xAODTracking/TrackParticle.h
"
12
#include "
xAODTracking/TrackParticleContainer.h
"
13
#include "
xAODTracking/Vertex.h
"
14
#include "
xAODTracking/VertexContainer.h
"
15
#include "
EventPrimitives/EventPrimitives.h
"
16
#include "
EventPrimitives/EventPrimitivesHelpers.h
"
17
18
InDetPerfPlot_VerticesVsMu::InDetPerfPlot_VerticesVsMu
(
InDetPlotBase
* pParent,
19
const
std::string& sDir):
20
InDetPlotBase
(pParent, sDir)
21
{
22
// nop
23
}
24
25
void
26
InDetPerfPlot_VerticesVsMu::initializePlots
() {
27
28
book
(
m_vx_n_vs_truthMu
,
"vx_n_vs_truthMu"
);
29
book
(
m_vx_n_vs_actualMu
,
"vx_n_vs_actualMu"
);
30
}
31
32
void
33
InDetPerfPlot_VerticesVsMu::fill
(
const
xAOD::VertexContainer
& vertices,
unsigned
int
truthMu,
float
actualMu,
float
weight) {
34
// fill number of vertices
35
int
nGoodVertices(0);
36
37
for
(
const
auto
& vtx : vertices.
stdcont
()) {
38
if
(vtx->vertexType() ==
xAOD::VxType::NoVtx
) {
39
continue
;
// skip dummy vertex
40
}
41
nGoodVertices++;
42
}
43
44
fillHisto
(
m_vx_n_vs_truthMu
, nGoodVertices, truthMu, weight);
45
fillHisto
(
m_vx_n_vs_actualMu
, nGoodVertices, actualMu, weight);
46
47
}
EventPrimitivesHelpers.h
EventPrimitives.h
TrackParticleContainer.h
TrackParticle.h
Vertex.h
InDetPerfPlot_VerticesVsMu.h
VertexContainer.h
DataVector::stdcont
const PtrVector & stdcont() const
Return the underlying std::vector of the container.
InDetPerfPlot_VerticesVsMu::initializePlots
void initializePlots()
Definition
InDetPerfPlot_VerticesVsMu.cxx:26
InDetPerfPlot_VerticesVsMu::m_vx_n_vs_actualMu
TH2 * m_vx_n_vs_actualMu
Definition
InDetPerfPlot_VerticesVsMu.h:35
InDetPerfPlot_VerticesVsMu::m_vx_n_vs_truthMu
TH2 * m_vx_n_vs_truthMu
Definition
InDetPerfPlot_VerticesVsMu.h:34
InDetPerfPlot_VerticesVsMu::fill
void fill(const xAOD::VertexContainer &vertices, unsigned int truthMu, float actualMu, float weight=1.0)
Definition
InDetPerfPlot_VerticesVsMu.cxx:33
InDetPerfPlot_VerticesVsMu::InDetPerfPlot_VerticesVsMu
InDetPerfPlot_VerticesVsMu(InDetPlotBase *pParent, const std::string &dirName)
Definition
InDetPerfPlot_VerticesVsMu.cxx:18
InDetPlotBase::fillHisto
static void fillHisto(TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0)
Definition
InDetPlotBase.cxx:82
InDetPlotBase::InDetPlotBase
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
Definition
InDetPlotBase.cxx:35
InDetPlotBase::book
void book(Htype *&pHisto, std::string_view histoIdentifier, std::string_view nameOverride="", std::string_view folder="default")
Helper method to book histograms using an identifier string.
xAOD::VxType::NoVtx
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
Definition
TrackingPrimitives.h:589
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0