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

template class for the APV Histograms More...

#include <SVDAPVHistograms.h>

Inheritance diagram for SVDAPVHistograms< H >:
Collaboration diagram for SVDAPVHistograms< 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

 SVDAPVHistograms ()
 Default constructor.
 
 SVDAPVHistograms (const H &templateAPV)
 Use. More...
 
 ~SVDAPVHistograms ()
 clean everything in the destructor
 
H * getHistogram (const VxdID &vxdID, int view, int apv)
 get a reference to the histogram for More...
 
template<class ... Types>
void fill (const VxdID &vxdID, int view, int apv, Types ... args)
 fill the histogram for More...
 
template<class ... Types>
void fill (const VxdID &vxdID, bool isU, int apv, Types ... args)
 fill the histogram for More...
 
void customizeString (std::string &base, const VxdID &vxdID, bool isU, int user_apv)
 replaces layer ladder sensor view and apv with the current numbers
 
void clean ()
 delete pointers
 

Private Types

typedef std::vector< H * > t_Views
 A t_SVDView is a vector of H that will have length = # APV chips. More...
 
typedef std::vector< t_Viewst_SVDSensor
 a vector of vector of H, length = 2
 
typedef std::vector< t_SVDSensort_SVDLadder
 A t_SVDLadder is a vector of t_SVDSensors. More...
 
typedef std::vector< t_SVDLaddert_SVDLayer
 A t_SVDLayer is a vector of t_SVDLadders. More...
 
typedef std::vector< t_SVDLayert_SVD
 The t_SVD is a vector of t_SVDLayers. More...
 

Private Member Functions

void customize (H &histogram, VxdID vxdID, int view, int apv)
 customize the histogram with the sensor, view and APV numbers
 
 ClassDef (SVDAPVHistograms, 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::SVDAPVHistograms< H >

template class for the APV Histograms

Definition at line 24 of file SVDAPVHistograms.h.

Member Typedef Documentation

◆ t_SVD

typedef std::vector< t_SVDLayer > t_SVD
private

The t_SVD is a vector of t_SVDLayers.

a vector of vector of vector of vector of vector of H, length = # layers

Definition at line 139 of file SVDAPVHistograms.h.

◆ t_SVDLadder

typedef std::vector< t_SVDSensor > t_SVDLadder
private

A t_SVDLadder is a vector of t_SVDSensors.

a vector of vector of vector of H, length = # svd sensors

Definition at line 133 of file SVDAPVHistograms.h.

◆ t_SVDLayer

typedef std::vector< t_SVDLadder > t_SVDLayer
private

A t_SVDLayer is a vector of t_SVDLadders.

a vector of vector of vector of vector of H, length = # ladders

Definition at line 136 of file SVDAPVHistograms.h.

◆ t_Views

typedef std::vector< H* > t_Views
private

A t_SVDView is a vector of H that will have length = # APV chips.

Index 0 for the V side, index 1 for the U side Please, please, pleaseeeee use SVDAPVHistograms<...>::UIndex and SVDAPVHistograms<...>::VIndex instead of 1 and 0 for better code readibility a vector of H, length = # APV chips

Definition at line 128 of file SVDAPVHistograms.h.

Member Function Documentation

◆ fill() [1/2]

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

fill the histogram for

Parameters
vxdIDside
isU
apv
argsvalue to be filled

Definition at line 83 of file SVDAPVHistograms.h.

◆ fill() [2/2]

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

fill the histogram for

Parameters
vxdIDside
view
apv
argsvalue to be filled

Definition at line 71 of file SVDAPVHistograms.h.

◆ getHistogram()

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

get a reference to the histogram for

Parameters
vxdIDside
viewand
apvplease, use the enumeration SVDAPVHistograms::Vindex and SVDAPVHistograms::UIndex

Definition at line 44 of file SVDAPVHistograms.h.

Member Data Documentation

◆ m_histograms

t_SVD m_histograms
private

the vector of vector ...

that contains all histograms

Definition at line 141 of file SVDAPVHistograms.h.


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