ATLAS Offline Software
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 
14 namespace Muon{
15 
16 MuonHitResidualPlots::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 
26 void MuonHitResidualPlots::fill(const Trk::ResidualPull& resPull, int stationPhi )
27 {
28  m_oResidualPlots.fill(resPull);
29 
30  //const float residual = resPull.residual().front();
31  const float pull = resPull.pull().front();
32 
33  pulls_vs_sectorPhi->Fill(stationPhi,pull);
34  pullsRMS_vs_sectorPhi->Fill(stationPhi,pull);
35 }
36 
37 }//closing namespace
38 
39 #endif // not XAOD_ANALYSIS
40 
PlotBase
Definition: PlotBase.h:34
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Trk::ResidualPull::pull
const std::vector< double > & pull() const
return pull vector
PlotBase::Book2D
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
Muon::MuonHitResidualPlots::m_oResidualPlots
Trk::HitResidualPlots m_oResidualPlots
Definition: MuonHitResidualPlots.h:28
Trk::ResidualPull
This class containes residual and pull information.
Definition: ResidualPull.h:46
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MuonHitResidualPlots::pulls_vs_sectorPhi
TH2 * pulls_vs_sectorPhi
Definition: MuonHitResidualPlots.h:29
ResidualPull.h
python.StandardJetMods.pull
pull
Definition: StandardJetMods.py:282
Muon::MuonHitResidualPlots::fill
void fill(const Trk::ResidualPull &resPull, int stationPhi)
Definition: MuonHitResidualPlots.cxx:26
Muon::MuonHitResidualPlots::pullsRMS_vs_sectorPhi
TProfile * pullsRMS_vs_sectorPhi
Definition: MuonHitResidualPlots.h:30
MuonHitResidualPlots.h
Trk::HitResidualPlots::fill
void fill(const Trk::ResidualPull &resPull)
Definition: HitResidualPlots.cxx:24
PlotBase::BookTProfile
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
Muon::MuonHitResidualPlots::MuonHitResidualPlots
MuonHitResidualPlots(PlotBase *pParent, const std::string &sDir, std::string sType="")
Definition: MuonHitResidualPlots.cxx:16