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#include <stddef.h> // for NULL
9#include <vector>
10#include "TH2.h"
11#include "TProfile.h"
13
14namespace Muon{
15
16MuonHitResidualPlots::MuonHitResidualPlots(PlotBase *pParent, const std::string& sDir,std::string sType):PlotBase(pParent, sDir)
17, m_oResidualPlots(this, "",sType)
18, pulls_vs_sectorPhi(nullptr)
19, pullsRMS_vs_sectorPhi(nullptr)
20{
21 if (sType!="") sType=sType+"_";
22 pulls_vs_sectorPhi = Book2D(sType+"pulls_vs_sectorPhi",sType+" pulls vs sectorPhi",16,1,17,50,-20,20);
23 pullsRMS_vs_sectorPhi = BookTProfile(sType+"pullsRMS_sectorPhi",sType+" pullsRMS vs sectorPhi",16,1,17,-20,20);
24}
25
27{
28 m_oResidualPlots.fill(resPull);
29
30 //const float residual = resPull.residual().front();
31 const float pull = resPull.pull().front();
32
35}
36
37}//closing namespace
38
39#endif // not XAOD_ANALYSIS
40
void fill(const Trk::ResidualPull &resPull, int stationPhi)
Trk::HitResidualPlots m_oResidualPlots
MuonHitResidualPlots(PlotBase *pParent, const std::string &sDir, std::string sType="")
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
TProfile * BookTProfile(const std::string &name, const std::string &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
TH2F * Book2D(const std::string &name, const std::string &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.