ATLAS Offline Software
PixelResidualHistograms.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PixelResidualHistograms_h
6 #define PixelResidualHistograms_h
7 
8 template < class T, class Allocator > class vector;
9 class string;
10 
11 class TH1D;
12 class TProfile;
13 class TCanvas;
14 template <class ht> class MultiHisto;
15 
16 
17 namespace PixelCalib{
18 
19 class PixelResidualHistograms;
20 
22 
23 public:
24  PixelResidualHistograms(const std::string& name,
25  const std::string& title,
26  double limits,
27  int nbins,
28  const std::vector< std::vector < float > > &binnage,
29  const std::vector< std::string > &binnames);
30 
31  virtual ~PixelResidualHistograms();
32 
33  void SetAxisTitle(const std::string& title);
34 
35  void Fill(float residual, const std::vector< float >& parameters);
36 
37  int Write(bool writebins = false);
38  int Read();
39 
40  TH1D* GetHisto(const int i);
41  TProfile* GetMeanProfile(const std::string& binname);
42  TProfile* GetRMSProfile(const std::string& binname);
43  TProfile* GetProfile(const int binnumber, bool RMS = false, bool savebins = false);
44 
45  TH1D *GetGlobalHisto();
46 
47  std::vector <TCanvas *> *DrawProfiles(int color,
48  int marker,
49  float labely = 0,
50  std::vector <TCanvas *> *canvasvector = 0,
51  const std::string& name = "");
52 
53  //const std::vector< std::string > *GetBinsNames() const;
54  //const std::vector < float > *GetBins(const std::string binname) const;
55 
56  //PixelResidualHistograms *Clone() const;
57 
58  /*void DrawHisto(int iHisto,
59  int color,
60  int marker,
61  float labelx, float labely,
62  std::string label,
63  std::string Options);*/
64 
65  /*void DrawProfile(const std::string binname,
66  int color,
67  int marker,
68  float labelx, float labely,
69  std::string label,
70  std::string Options);*/
71 
72  /*int Analyze(PixelResidualHistograms *reference = 0,
73  std::string referencename = "Reference");*/
74 
75 private:
76 
79 
81  std::vector< TProfile*> *m_MeanProfilesVector;
82  std::vector< TProfile*> *m_RMSProfilesVector;
84  std::vector< std::string > m_binnames;
85  std::vector< std::vector < float > > m_binnage;
86  std::string m_axisName;
87 
89 
90 };
91 
92 
93 } // end namespace
94 
95 #endif // #ifdef OfflineCalibValidation_h
color
Definition: jFexInputByteStreamTool.cxx:25
PixelCalib::PixelResidualHistograms::m_axisName
std::string m_axisName
Definition: PixelResidualHistograms.h:86
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
PixelCalib::PixelResidualHistograms::Read
int Read()
Definition: PixelResidualHistograms.cxx:113
PixelCalib::PixelResidualHistograms::PixelResidualHistograms
PixelResidualHistograms(const PixelResidualHistograms &)
PixelCalib::PixelResidualHistograms::m_MeanProfilesVector
std::vector< TProfile * > * m_MeanProfilesVector
Definition: PixelResidualHistograms.h:81
MultiHisto
Definition: MultiHisto.h:16
PixelCalib::PixelResidualHistograms::m_binnames
std::vector< std::string > m_binnames
Definition: PixelResidualHistograms.h:84
python.Include.marker
string marker
Definition: Include.py:21
PixelCalib::PixelResidualHistograms::operator=
PixelResidualHistograms & operator=(const PixelResidualHistograms &)
PixelCalib::PixelResidualHistograms::DrawProfiles
std::vector< TCanvas * > * DrawProfiles(int color, int marker, float labely=0, std::vector< TCanvas * > *canvasvector=0, const std::string &name="")
Definition: PixelResidualHistograms.cxx:284
PixelCalib::PixelResidualHistograms::m_RMSProfilesVector
std::vector< TProfile * > * m_RMSProfilesVector
Definition: PixelResidualHistograms.h:82
PixelCalib::PixelResidualHistograms::SetAxisTitle
void SetAxisTitle(const std::string &title)
Definition: PixelResidualHistograms.cxx:74
PixelCalib::PixelResidualHistograms::m_binnage
std::vector< std::vector< float > > m_binnage
Definition: PixelResidualHistograms.h:85
lumiFormat.i
int i
Definition: lumiFormat.py:85
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
vector
Definition: MultiHisto.h:13
PixelCalib::PixelResidualHistograms::GetRMSProfile
TProfile * GetRMSProfile(const std::string &binname)
Definition: PixelResidualHistograms.cxx:147
covarianceTool.title
title
Definition: covarianceTool.py:542
PixelCalib::PixelResidualHistograms::PixelResidualHistograms
PixelResidualHistograms()
Definition: PixelResidualHistograms.h:88
PixelCalib
Definition: PixelChargeInterpolationCalibration.h:14
PixelCalib::PixelResidualHistograms::Fill
void Fill(float residual, const std::vector< float > &parameters)
Definition: PixelResidualHistograms.cxx:68
PixelCalib::PixelResidualHistograms::GetMeanProfile
TProfile * GetMeanProfile(const std::string &binname)
Definition: PixelResidualHistograms.cxx:137
DiTauMassTools::HistInfo::RMS
@ RMS
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:35
PixelCalib::PixelResidualHistograms::GetHisto
TH1D * GetHisto(const int i)
Definition: PixelResidualHistograms.cxx:131
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
PixelCalib::PixelResidualHistograms::Write
int Write(bool writebins=false)
Definition: PixelResidualHistograms.cxx:85
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
PixelCalib::PixelResidualHistograms::~PixelResidualHistograms
virtual ~PixelResidualHistograms()
Definition: PixelResidualHistograms.cxx:54
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
PixelCalib::PixelResidualHistograms::m_GlobalHisto
TH1D * m_GlobalHisto
Definition: PixelResidualHistograms.h:83
PixelCalib::PixelResidualHistograms::GetProfile
TProfile * GetProfile(const int binnumber, bool RMS=false, bool savebins=false)
Definition: PixelResidualHistograms.cxx:183
PixelCalib::PixelResidualHistograms::GetGlobalHisto
TH1D * GetGlobalHisto()
Definition: PixelResidualHistograms.cxx:157
PixelCalib::PixelResidualHistograms::m_HistogramsVector
MultiHisto< TH1D > * m_HistogramsVector
Definition: PixelResidualHistograms.h:80
PixelCalib::PixelResidualHistograms
Definition: PixelResidualHistograms.h:21