ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonHistogramming
MuonHistUtils
src
MuonHitResidualPlots.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
#ifndef XAOD_ANALYSIS
6
7
#include "
MuonHistUtils/MuonHitResidualPlots.h
"
8
9
#include <stddef.h>
// for NULL
10
11
#include <vector>
12
13
#include "TH2.h"
14
#include "TProfile.h"
15
#include "
TrkEventPrimitives/ResidualPull.h
"
16
17
namespace
Muon
{
18
19
MuonHitResidualPlots::MuonHitResidualPlots
(
PlotBase
* pParent,
20
const
std::string& sDir,
21
std::string sType)
22
:
PlotBase
(pParent, sDir),
23
m_oResidualPlots
(this,
""
, sType),
24
pulls_vs_sectorPhi
(nullptr),
25
pullsRMS_vs_sectorPhi
(nullptr) {
26
if
(sType !=
""
) {
27
sType = sType +
"_"
;
28
}
29
pulls_vs_sectorPhi
=
30
Book2D
(sType +
"pulls_vs_sectorPhi"
, sType +
" pulls vs sectorPhi"
, 16,
31
1, 17, 50, -20, 20);
32
pullsRMS_vs_sectorPhi
=
33
BookTProfile
(sType +
"pullsRMS_sectorPhi"
,
34
sType +
" pullsRMS vs sectorPhi"
, 16, 1, 17, -20, 20);
35
}
36
37
void
MuonHitResidualPlots::fill
(
const
Trk::ResidualPull
& resPull,
38
int
stationPhi
) {
39
m_oResidualPlots
.fill(resPull);
40
41
// const float residual = resPull.residual().front();
42
const
float
pull = resPull.
pull
().front();
43
44
pulls_vs_sectorPhi
->Fill(
stationPhi
, pull);
45
pullsRMS_vs_sectorPhi
->Fill(
stationPhi
, pull);
46
}
47
48
}
// namespace Muon
49
50
#endif
// not XAOD_ANALYSIS
MuonHitResidualPlots.h
ResidualPull.h
Muon::MuonHitResidualPlots::fill
void fill(const Trk::ResidualPull &resPull, int stationPhi)
Definition
MuonHitResidualPlots.cxx:37
Muon::MuonHitResidualPlots::m_oResidualPlots
Trk::HitResidualPlots m_oResidualPlots
Definition
MuonHitResidualPlots.h:29
Muon::MuonHitResidualPlots::MuonHitResidualPlots
MuonHitResidualPlots(PlotBase *pParent, const std::string &sDir, std::string sType="")
Definition
MuonHitResidualPlots.cxx:19
Muon::MuonHitResidualPlots::pullsRMS_vs_sectorPhi
TProfile * pullsRMS_vs_sectorPhi
Definition
MuonHitResidualPlots.h:31
Muon::MuonHitResidualPlots::pulls_vs_sectorPhi
TH2 * pulls_vs_sectorPhi
Definition
MuonHitResidualPlots.h:30
PlotBase::BookTProfile
TProfile * BookTProfile(std::string_view name, std::string_view labels, int nBinsX, float startX, float endX, float startY=-1, float endY=-1, bool prependDir=true, bool useRMS=false)
Book a TProfile histogram.
Definition
PlotBase.cxx:186
PlotBase::PlotBase
PlotBase(PlotBase *parent, std::string_view sDir)
Definition
PlotBase.cxx:29
PlotBase::Book2D
TH2F * Book2D(std::string_view name, std::string_view labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
Definition
PlotBase.cxx:123
Trk::ResidualPull
This class containes residual and pull information.
Definition
ResidualPull.h:46
Trk::ResidualPull::pull
const std::vector< double > & pull() const
return pull vector
Muon::nsw::STGTPSegments::ModuleIDProperty::stationPhi
@ stationPhi
Definition
NSWSTGTPDecodeBitmaps.h:167
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0