ATLAS Offline Software
Loading...
Searching...
No Matches
PixelChargeInterpolationPlot.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PixelChargeInterpolationPlot_h
6#define PixelChargeInterpolationPlot_h
7
9#include <string>
10#include <vector>
11class TH1F;
12class TCanvas;
13class TGaxis;
14
15namespace PixelCalib{
16
18
20
21public :
22 PixelChargeInterpolationPlot(const PixelChargeInterpolationParameters &parameters, bool oneconst = false);
25 const std::string& title = "Reference", int color = 0,
26 const std::string& drawopt = "HIST");
27 void Plot(const std::string& output);
28 void Write();
29
30private:
31
34
35 // Histograms to be used
36 std::vector < TH1F* > *m_histogramsX;
37 std::vector < TH1F* > *m_histogramsY;
38 std::vector < std::vector < TH1F* > > *m_RefHistosX;
39 std::vector < std::vector < TH1F* > > *m_RefHistosY;
40
41
42 // bins
43 double* m_etabins;
44 double* m_phibins;
47 static const int m_nlayers; // = 3;
48 std::vector <std::string> *m_referenceDrawOpt;
50 inline static const std::string s_options{"P0same"};
51 inline static const std::string s_direction{"phi"};
52 inline static const std::string s_title{""};
53 // utility methods!
54 void PlotDirection(const std::string& filename, const std::string& direction = s_direction);
55
56 void DrawOneHisto(TH1F *histo, const std::string& direction = s_direction,float maximum = 0);
57 void DrawHistoMarkers(TH1F* histo, const std::string& options = s_options, int goodj = 0);
58 void DrawLayerLegend(float xlegend, float ylegend);
59 void DrawAxis(float y1, float y2, float x1, float x2, const std::string& direction = s_direction);
60
61 std::vector < TH1F*> *HistogramsFromConstants(
62 const PixelChargeInterpolationParameters &parameters,
63 const std::string& direction = s_direction, int color = 1, const std::string& title = s_title);
64};
65
66}
67#endif
Define macros for attributes used to control the static checker.
void AddReference(const PixelChargeInterpolationParameters &parameters, const std::string &title="Reference", int color=0, const std::string &drawopt="HIST")
PixelChargeInterpolationPlot(const PixelChargeInterpolationParameters &parameters, bool oneconst=false)
std::vector< std::vector< TH1F * > > * m_RefHistosX
void DrawAxis(float y1, float y2, float x1, float x2, const std::string &direction=s_direction)
void DrawHistoMarkers(TH1F *histo, const std::string &options=s_options, int goodj=0)
PixelChargeInterpolationPlot & operator=(const PixelChargeInterpolationPlot &)
std::vector< TH1F * > * HistogramsFromConstants(const PixelChargeInterpolationParameters &parameters, const std::string &direction=s_direction, int color=1, const std::string &title=s_title)
void PlotDirection(const std::string &filename, const std::string &direction=s_direction)
void DrawOneHisto(TH1F *histo, const std::string &direction=s_direction, float maximum=0)
std::vector< std::vector< TH1F * > > * m_RefHistosY
PixelChargeInterpolationPlot(const PixelChargeInterpolationPlot &)
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)