ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9#include <stddef.h> // for NULL
10
11#include <vector>
12
13#include "TH2.h"
14#include "TProfile.h"
16
17namespace Muon {
18
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 }
30 Book2D(sType + "pulls_vs_sectorPhi", sType + " pulls vs sectorPhi", 16,
31 1, 17, 50, -20, 20);
33 BookTProfile(sType + "pullsRMS_sectorPhi",
34 sType + " pullsRMS vs sectorPhi", 16, 1, 17, -20, 20);
35}
36
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);
46}
47
48} // namespace Muon
49
50#endif // not XAOD_ANALYSIS
void fill(const Trk::ResidualPull &resPull, int stationPhi)
Trk::HitResidualPlots m_oResidualPlots
MuonHitResidualPlots(PlotBase *pParent, const std::string &sDir, std::string sType="")
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 *parent, std::string_view sDir)
Definition PlotBase.cxx:29
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
This class containes residual and pull information.
const std::vector< double > & pull() const
return pull vector
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.