Belle II Software  release-08-02-06
SVDSummaryPlots Class Reference

class to summarize SVD quantities per sensor and side More...

#include <SVDSummaryPlots.h>

Inheritance diagram for SVDSummaryPlots:
Collaboration diagram for SVDSummaryPlots:

Public Types

enum  E_side {
  VIndex = 0 ,
  UIndex = 1
}
 This enumeration assure the same semantic of the isU methods defined by Peter Kv.
 

Public Member Functions

 SVDSummaryPlots ()
 Default constructor.
 
 SVDSummaryPlots (TString name, TString title)
 this is the default constructor More...
 
 ~SVDSummaryPlots ()
 clean everything in the destructor
 
TH2F * getHistogram (int view)
 get a reference to the histogram for More...
 
float getValue (const VxdID &vxdID, int view)
 get the value contained in the corresponding bin, given VxdID and view
 
float getValue (int layer, int ladder, int sensor, int view)
 get the value contained in the corresponding bin, given More...
 
void fill (int layer, int ladder, int sensor, int view, float value)
 fill the histogram for More...
 
void fill (const VxdID &vxdID, int view, float value)
 fill the histogram for More...
 
void setRunID (const TString &runID)
 set run ids in title More...
 
void reset ()
 Reset histograms.
 
void setStats (bool stats=true)
 set histograms stat More...
 
void fill (const VxdID &vxdID, bool isU, float value)
 fill the histogram for More...
 
void customizeString (std::string &base, bool isU)
 replaces layer ladder sensor view and apv with the current numbers
 
void setMinimum (Int_t value=0)
 set histogram minimum More...
 
void setMaximum (Int_t value=0)
 set histogram maximum More...
 
TH2Poly * getPoly (int view, int min=-1111, int max=-1111)
 Create the TH2Poly version of the plot.
 
void clean ()
 delete pointers
 

Private Member Functions

Int_t findBinY (Int_t layer, Int_t sensor)
 find the Y bin given the layer and sensor number
 
void customize (TH2F &histogram, int view)
 customize the histogram with the sensor, view
 
void generateHistogramBins (TH2Poly *histogram)
 generate histogram bins
 
Int_t findBinPoly (Int_t layer, Int_t ladder, Int_t sensor)
 find the poly-bin given the layer, ladder and sensor number
 
 ClassDef (SVDSummaryPlots, 3)
 needed by root
 

Private Attributes

TH2F * m_histos [2]
 vector containing the U and V histograms
 
TH2Poly * m_polyHistos [2] = {nullptr}
 vector containing the U and V poly-histograms
 
TH2F * m_defaultHistogram = nullptr
 default histograms
 
TString m_Title [2]
 Base title.
 

Detailed Description

class to summarize SVD quantities per sensor and side

Definition at line 26 of file SVDSummaryPlots.h.

Constructor & Destructor Documentation

◆ SVDSummaryPlots()

SVDSummaryPlots ( TString  name,
TString  title 
)
inline

this is the default constructor

Parameters
namehistogram name
titlehistogram title

Definition at line 37 of file SVDSummaryPlots.h.

38  {
39  m_defaultHistogram = new TH2F(name.Data(), title.Data(),
40  16, 0.5, 16.5,
41  19, 0, 19);
42 
43  for (int view = VIndex ; view < UIndex + 1; view++) {
44  std::string hname = name.Data();
45  bool isU = (view == UIndex);
46  customizeString(hname, isU);
47  m_histos[view] = new TH2F(hname.c_str(), title.Data(),
48  16, 0.5, 16.5,
49  19, 0, 19);
50  customize(*m_histos[view], view);
51  m_Title[view] = m_histos[view]->GetTitle();
52  }
53  }
TH2F * m_histos[2]
vector containing the U and V histograms
void customizeString(std::string &base, bool isU)
replaces layer ladder sensor view and apv with the current numbers
TString m_Title[2]
Base title.
void customize(TH2F &histogram, int view)
customize the histogram with the sensor, view
TH2F * m_defaultHistogram
default histograms

Member Function Documentation

◆ fill() [1/3]

void fill ( const VxdID vxdID,
bool  isU,
float  value 
)
inline

fill the histogram for

Parameters
vxdIDside
isUwith
value

Definition at line 158 of file SVDSummaryPlots.h.

◆ fill() [2/3]

void fill ( const VxdID vxdID,
int  view,
float  value 
)
inline

fill the histogram for

Parameters
vxdID
viewwith
value

Definition at line 117 of file SVDSummaryPlots.h.

◆ fill() [3/3]

void fill ( int  layer,
int  ladder,
int  sensor,
int  view,
float  value 
)
inline

fill the histogram for

Parameters
layer
ladder
sensor
viewwith
value

Definition at line 109 of file SVDSummaryPlots.h.

◆ getHistogram()

TH2F* getHistogram ( int  view)
inline

get a reference to the histogram for

Parameters
viewplease, use the enumeration SVDSummaryPlots::Vindex and SVDSummaryPlots::UIndex

Definition at line 66 of file SVDSummaryPlots.h.

◆ getValue()

float getValue ( int  layer,
int  ladder,
int  sensor,
int  view 
)
inline

get the value contained in the corresponding bin, given

Parameters
layer
ladder
sensor
view

Definition at line 96 of file SVDSummaryPlots.h.

◆ setMaximum()

void setMaximum ( Int_t  value = 0)
inline

set histogram maximum

Parameters
value

Definition at line 190 of file SVDSummaryPlots.h.

◆ setMinimum()

void setMinimum ( Int_t  value = 0)
inline

set histogram minimum

Parameters
value

Definition at line 181 of file SVDSummaryPlots.h.

◆ setRunID()

void setRunID ( const TString &  runID)
inline

set run ids in title

Parameters
runID

Definition at line 129 of file SVDSummaryPlots.h.

◆ setStats()

void setStats ( bool  stats = true)
inline

set histograms stat

Parameters
stats

Definition at line 151 of file SVDSummaryPlots.h.


The documentation for this class was generated from the following file: