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