ATLAS Offline Software
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 
10 class string;
11 template < class T, class Allocator > class vector;
12 class TH1F;
13 class TCanvas;
14 class TGaxis;
15 
16 namespace PixelCalib{
17 
19 
21 
22 public :
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 
31 private:
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;
50  bool m_oneconst;
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(
62  const std::string& direction = "phi", int color = 1, const std::string& title = "");
63 };
64 
65 }
66 #endif
PixelCalib::PixelChargeInterpolationPlot::~PixelChargeInterpolationPlot
virtual ~PixelChargeInterpolationPlot()
Definition: PixelChargeInterpolationPlot.cxx:60
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
PixelCalib::PixelChargeInterpolationPlot::m_oneconst
bool m_oneconst
Definition: PixelChargeInterpolationPlot.h:50
PixelCalib::PixelChargeInterpolationPlot::HistogramsFromConstants
std::vector< TH1F * > * HistogramsFromConstants(const PixelChargeInterpolationParameters &parameters, const std::string &direction="phi", int color=1, const std::string &title="")
Definition: PixelChargeInterpolationPlot.cxx:109
color
Definition: jFexInputByteStreamTool.cxx:25
PixelCalib::PixelChargeInterpolationPlot::DrawLayerLegend
void DrawLayerLegend(float xlegend, float ylegend)
Definition: PixelChargeInterpolationPlot.cxx:370
PixelCalib::PixelChargeInterpolationPlot::m_referenceDrawOpt
std::vector< std::string > * m_referenceDrawOpt
Definition: PixelChargeInterpolationPlot.h:49
PixelCalib::PixelChargeInterpolationPlot::m_nphibins
int m_nphibins
Definition: PixelChargeInterpolationPlot.h:47
PixelCalib::PixelChargeInterpolationPlot::m_RefHistosY
std::vector< std::vector< TH1F * > > * m_RefHistosY
Definition: PixelChargeInterpolationPlot.h:40
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
PixelCalib::PixelChargeInterpolationPlot::PixelChargeInterpolationPlot
PixelChargeInterpolationPlot(const PixelChargeInterpolationParameters &parameters, bool oneconst=false)
Definition: PixelChargeInterpolationPlot.cxx:28
PixelCalib::PixelChargeInterpolationPlot::m_histogramsY
std::vector< TH1F * > * m_histogramsY
Definition: PixelChargeInterpolationPlot.h:38
PixelCalib::PixelChargeInterpolationPlot::DrawHistoMarkers
void DrawHistoMarkers(TH1F *histo, const std::string &options="P0same", int goodj=0)
Definition: PixelChargeInterpolationPlot.cxx:340
PixelCalib::PixelChargeInterpolationPlot::m_nlayers
static const int m_nlayers
Definition: PixelChargeInterpolationPlot.h:48
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
PixelCalib::PixelChargeInterpolationPlot::DrawAxis
void DrawAxis(float y1, float y2, float x1, float x2, const std::string &direction="phi")
Definition: PixelChargeInterpolationPlot.cxx:395
PixelCalib::PixelChargeInterpolationPlot::AddReference
void AddReference(const PixelChargeInterpolationParameters &parameters, const std::string &title="Reference", int color=0, const std::string &drawopt="HIST")
Definition: PixelChargeInterpolationPlot.cxx:81
PixelCalib::PixelChargeInterpolationPlot::PlotDirection
void PlotDirection(const std::string &filename, const std::string &direction="phi")
Definition: PixelChargeInterpolationPlot.cxx:211
PixelCalib::PixelChargeInterpolationPlot::m_phibins
double * m_phibins
Definition: PixelChargeInterpolationPlot.h:45
PixelCalib::PixelChargeInterpolationPlot::m_netabins
int m_netabins
Definition: PixelChargeInterpolationPlot.h:46
PixelCalib::PixelChargeInterpolationPlot::PixelChargeInterpolationPlot
PixelChargeInterpolationPlot(const PixelChargeInterpolationPlot &)
vector
Definition: MultiHisto.h:13
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
covarianceTool.title
title
Definition: covarianceTool.py:542
PixelCalib
Definition: PixelChargeInterpolationCalibration.h:14
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
merge.output
output
Definition: merge.py:17
PixelChargeInterpolationParameters
PixelCalib::PixelChargeInterpolationPlot::m_etabins
double * m_etabins
Definition: PixelChargeInterpolationPlot.h:44
PixelCalib::PixelChargeInterpolationPlot
Definition: PixelChargeInterpolationPlot.h:20
PixelCalib::PixelChargeInterpolationPlot::Write
void Write()
Definition: PixelChargeInterpolationPlot.cxx:456
PixelCalib::PixelChargeInterpolationPlot::DrawOneHisto
void DrawOneHisto(TH1F *histo, const std::string &direction="phi", float maximum=0)
Definition: PixelChargeInterpolationPlot.cxx:294
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
PixelCalib::PixelChargeInterpolationPlot::m_histogramsX
std::vector< TH1F * > * m_histogramsX
Definition: PixelChargeInterpolationPlot.h:37
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
PixelCalib::PixelChargeInterpolationPlot::operator=
PixelChargeInterpolationPlot & operator=(const PixelChargeInterpolationPlot &)
PixelCalib::PixelChargeInterpolationParameters
Definition: PixelChargeInterpolationParameters.h:26
PixelCalib::PixelChargeInterpolationPlot::Plot
void Plot(const std::string &output)
Definition: PixelChargeInterpolationPlot.cxx:99
PixelCalib::PixelChargeInterpolationPlot::m_RefHistosX
std::vector< std::vector< TH1F * > > * m_RefHistosX
Definition: PixelChargeInterpolationPlot.h:39
plotBeamSpotCompare.histo
histo
Definition: plotBeamSpotCompare.py:415
checker_macros.h
Define macros for attributes used to control the static checker.