Belle II Software  release-08-01-10
SVDHistograms< H > Class Template Reference

template class for SVd histograms More...

#include <SVDHistograms.h>

Inheritance diagram for SVDHistograms< H >:
Collaboration diagram for SVDHistograms< H >:

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

 SVDHistograms ()
 Default constructor.
 
 SVDHistograms (const H &templateHisto)
 the class is built with a default histogram for L3 and L456, U and V sides More...
 
 SVDHistograms (const H &templateU3, const H &templateV3, const H &templateU456, const H &templateV456)
 Use templates to initialize all the histograms. More...
 
 ~SVDHistograms ()
 clean everything in the destructor
 
H * getHistogram (const VxdID &vxdID, int view)
 get a reference to the histogram for More...
 
template<class ... Types>
void fill (const VxdID &vxdID, int view, Types ... args)
 fill the histogram for More...
 
template<class ... Types>
void fill (const VxdID &vxdID, bool isU, Types ... args)
 fill the histogram for More...
 
void customizeString (std::string &base, const VxdID &vxdID, bool isU)
 replaces layer ladder sensor view and apv with the current numbers
 
void clean ()
 delete pointers
 
void reset ()
 Call Reset() on all histograms.
 

Private Types

typedef std::vector< H * > t_SVDSensor
 a vector of H, length = 2
 
typedef std::vector< t_SVDSensort_SVDLadder
 a vector of vector of H, length = # svd sensors
 
typedef std::vector< t_SVDLaddert_SVDLayer
 a vector of vector of vector of H, length = # ladders
 
typedef std::vector< t_SVDLayert_SVD
 a vector of vector of vector of vector of H, length = # layers
 

Private Member Functions

void customize (H &histogram, VxdID vxdID, int view)
 customize the histogram with the sensor, view More...
 
 ClassDef (SVDHistograms, 1)
 needed by root
 

Private Attributes

t_SVD m_histograms
 the vector of vector ... More...
 
H * m_defaultHistogram
 the default histogram
 

Detailed Description

template<class H>
class Belle2::SVDHistograms< H >

template class for SVd histograms

Definition at line 24 of file SVDHistograms.h.

Constructor & Destructor Documentation

◆ SVDHistograms()

SVDHistograms ( const H &  templateHisto)
inlineexplicit

the class is built with a default histogram for L3 and L456, U and V sides

Use

Parameters
templateHistoto initialize all the histograms

Definition at line 32 of file SVDHistograms.h.

Member Function Documentation

◆ fill() [1/2]

void fill ( const VxdID vxdID,
bool  isU,
Types ...  args 
)
inline

fill the histogram for

Parameters
vxdIDside
isUwith
args

Definition at line 85 of file SVDHistograms.h.

◆ fill() [2/2]

void fill ( const VxdID vxdID,
int  view,
Types ...  args 
)
inline

fill the histogram for

Parameters
vxdIDside
viewwith
args

Definition at line 77 of file SVDHistograms.h.

◆ getHistogram()

H* getHistogram ( const VxdID vxdID,
int  view 
)
inline

get a reference to the histogram for

Parameters
vxdIDside
viewplease, use the enumeration SVDHistograms::Vindex and SVDHistograms::UIndex

Definition at line 56 of file SVDHistograms.h.

Member Data Documentation

◆ m_histograms

t_SVD m_histograms
private

the vector of vector ...

that contains all histograms

Definition at line 145 of file SVDHistograms.h.


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