ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonHistogramming
MuonHistUtils
Root
RecoMuonTrackPlotOrganizer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonHistUtils/RecoMuonTrackPlotOrganizer.h
"
6
7
namespace
Muon
{
8
9
RecoMuonTrackPlotOrganizer::RecoMuonTrackPlotOrganizer
(
10
PlotBase
* pParent,
const
std::string& sDir, std::vector<int> selPlots)
11
:
PlotBase
(pParent, sDir) {
12
13
if
(selPlots.empty()) {
14
m_selPlots.clear();
15
for (unsigned int i = 0; i < MAX_RECOTRKPLOTCLASS; i++) {
16
m_selPlots.push_back(i);
17
}
18
}
else
{
19
m_selPlots = std::move(selPlots);
20
}
21
22
for
(
int
p : m_selPlots) {
23
switch
(p) {
24
case
TRK_PARAM
:
25
m_oTrkParamPlots = std::make_unique<Trk::ParamPlots>(
26
this
,
"/kinematics/"
,
"RecoMuon"
);
27
break
;
28
case
TRK_RECOINFO
:
29
m_oTrkRecoInfoPlots = std::make_unique<Trk::RecoInfoPlots>(
30
this
,
"/parameters/"
,
"RecoMuon"
);
31
break
;
32
case
TRK_IMPACT
:
33
m_oImpactPlots =
34
std::make_unique<Trk::ImpactPlots>(
this
,
"/parameters/"
);
35
break
;
36
case
TRK_MSHITS
:
37
m_oMSHitPlots =
38
std::make_unique<Trk::MSHitPlots>(
this
,
"/hits/"
);
39
break
;
40
case
TRK_IDHITS
:
41
m_oIDHitPlots =
42
std::make_unique<Muon::IDHitSummaryPlots>(
this
,
"/hits/"
);
43
break
;
44
}
45
}
46
}
47
48
RecoMuonTrackPlotOrganizer::~RecoMuonTrackPlotOrganizer() =
default
;
49
50
void
RecoMuonTrackPlotOrganizer::fill
(
const
xAOD::TrackParticle
& tp,
51
float
weight) {
52
if
(
m_oTrkParamPlots
) {
53
m_oTrkParamPlots
->fill(tp, weight);
54
}
55
if
(
m_oTrkRecoInfoPlots
) {
56
m_oTrkRecoInfoPlots
->fill(tp, weight);
57
}
58
if
(
m_oImpactPlots
) {
59
m_oImpactPlots
->fill(tp, weight);
60
}
61
if
(
m_oMSHitPlots
) {
62
m_oMSHitPlots
->fill(tp, weight);
63
}
64
if
(
m_oIDHitPlots
) {
65
m_oIDHitPlots
->fill(tp, weight);
66
}
67
}
68
69
}
// namespace Muon
RecoMuonTrackPlotOrganizer.h
Muon::RecoMuonTrackPlotOrganizer::m_oMSHitPlots
std::unique_ptr< Trk::MSHitPlots > m_oMSHitPlots
Definition
RecoMuonTrackPlotOrganizer.h:43
Muon::RecoMuonTrackPlotOrganizer::m_oTrkRecoInfoPlots
std::unique_ptr< Trk::RecoInfoPlots > m_oTrkRecoInfoPlots
Definition
RecoMuonTrackPlotOrganizer.h:41
Muon::RecoMuonTrackPlotOrganizer::m_oImpactPlots
std::unique_ptr< Trk::ImpactPlots > m_oImpactPlots
Definition
RecoMuonTrackPlotOrganizer.h:42
Muon::RecoMuonTrackPlotOrganizer::m_oIDHitPlots
std::unique_ptr< Muon::IDHitSummaryPlots > m_oIDHitPlots
Definition
RecoMuonTrackPlotOrganizer.h:44
Muon::RecoMuonTrackPlotOrganizer::fill
void fill(const xAOD::TrackParticle &tp, float weight=1.0)
Definition
RecoMuonTrackPlotOrganizer.cxx:50
Muon::RecoMuonTrackPlotOrganizer::m_oTrkParamPlots
std::unique_ptr< Trk::ParamPlots > m_oTrkParamPlots
Definition
RecoMuonTrackPlotOrganizer.h:40
Muon::RecoMuonTrackPlotOrganizer::RecoMuonTrackPlotOrganizer
RecoMuonTrackPlotOrganizer(PlotBase *pParent, const std::string &sDir, std::vector< int > selPlots={})
Definition
RecoMuonTrackPlotOrganizer.cxx:9
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Muon::TRK_MSHITS
@ TRK_MSHITS
Definition
RecoMuonTrackPlotOrganizer.h:24
Muon::TRK_PARAM
@ TRK_PARAM
Definition
RecoMuonTrackPlotOrganizer.h:21
Muon::TRK_RECOINFO
@ TRK_RECOINFO
Definition
RecoMuonTrackPlotOrganizer.h:22
Muon::TRK_IDHITS
@ TRK_IDHITS
Definition
RecoMuonTrackPlotOrganizer.h:25
Muon::TRK_IMPACT
@ TRK_IMPACT
Definition
RecoMuonTrackPlotOrganizer.h:23
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
Generated on
for ATLAS Offline Software by
1.17.0