Belle II Software development
|
base class for calibrations classes More...
#include <SVDCalibrationsBase.h>
Public Types | |
enum | E_side { Vindex = 0 , Uindex = 1 } |
This enumeration assure the same semantic of the isU methods defined by Peter Kv. More... | |
typedef T | t_perSideContainer |
typedef of the container of each side | |
Public Member Functions | |
SVDCalibrationsBase (typename T::calibrationType defaultT=typename T::calibrationType(), const TString &uniqueID="") | |
The default constructor initialize all the vectors. | |
~SVDCalibrationsBase () | |
Simple destructor. | |
T::calibrationType | get (unsigned int layer, unsigned int ladder, unsigned int sensor, unsigned int side, unsigned int strip) const |
Return the calibration associated to a given strip. | |
const T::calibrationType & | getReference (unsigned int layer, unsigned int ladder, unsigned int sensor, unsigned int side, unsigned int strip) const |
Return a reference to the calibration associated to a given strip. | |
TString | get_uniqueID () const |
Get the unique ID of the calibration. | |
void | set (unsigned int layer, unsigned int ladder, unsigned int sensor, unsigned int side, unsigned int strip, typename T::calibrationType value) |
Set the calibration associated to a given strip. | |
E_side | sideIndex (bool isU) const |
Return the array index of the side. | |
Private Types | |
typedef std::vector< typename T::payloadContainerType > | SVDSensor |
T::payloadContainerType can be a vector whose length is the number of strips per side or a list of defect on a given side This vector will have length 2. | |
typedef std::vector< SVDSensor > | SVDLadder |
An SVDLadder is a vector of SVDSensors. | |
typedef std::vector< SVDLadder > | SVDLayer |
An SVDLayer is a vector of SVDLadders. | |
typedef std::vector< SVDLayer > | SVD |
The SVD is a vector of SVDLayers. | |
Private Attributes | |
SVD | calibrations |
an SVD calibration | |
TString | m_uniqueID |
The unique identifier is a private member of SVDCalibrationsBase, whose value is assigned in the constructor. | |
base class for calibrations classes
Definition at line 24 of file SVDCalibrationsBase.h.
The SVD is a vector of SVDLayers.
Definition at line 43 of file SVDCalibrationsBase.h.
An SVDLadder is a vector of SVDSensors.
Definition at line 37 of file SVDCalibrationsBase.h.
An SVDLayer is a vector of SVDLadders.
Definition at line 40 of file SVDCalibrationsBase.h.
|
private |
T::payloadContainerType can be a vector whose length is the number of strips per side or a list of defect on a given side This vector will have length 2.
Index 0 for the V side, index 1 for the U side Please, please, pleaseeeee use SVDCalibrationBase<...>::UIndex and SVDCalibrationBase<...>::VIndex instead of 1 and 0 for better code readibility
Definition at line 34 of file SVDCalibrationsBase.h.
typedef T t_perSideContainer |
typedef of the container of each side
Definition at line 209 of file SVDCalibrationsBase.h.
enum E_side |
This enumeration assure the same semantic of the isU methods defined by Peter Kv.
Definition at line 53 of file SVDCalibrationsBase.h.
|
inline |
The default constructor initialize all the vectors.
Definition at line 57 of file SVDCalibrationsBase.h.
|
inline |
|
inline |
Return the calibration associated to a given strip.
Return the calibration associated to a given strip identified by:
layer | is the layer number (2 to 6 in the present geometry) |
ladder | is the ladder number ( 1 to 7 for layer 3, 1 to 10 for layer 4 etc...) |
sensor | is the sensor number ( 1 to 2 for layer 3, 1 to 3 for layer 4 etc...) |
side | is the sensor view: 1 for Side U ( Side P ), 0 for side V (Side N) |
strip | is the strip number: from 1 to 512 or 768 depending on the sensor it throws std::out_of_range if the strip is unknown |
Definition at line 94 of file SVDCalibrationsBase.h.
|
inline |
|
inline |
Return a reference to the calibration associated to a given strip.
Return a reference to the calibration associated to a given strip identified by:
layer | is the layer number (2 to 6 in the present geometry) |
ladder | is the ladder number ( 1 to 7 for layer 3, 1 to 10 for layer 4 etc...) |
sensor | is the sensor number ( 1 to 2 for layer 3, 1 to 3 for layer 4 etc...) |
side | is the sensor view: 1 for Side U ( Side P ), 0 for side V (Side N) |
strip | is the strip number: from 1 to 512 or 768 depending on the sensor it throws std::out_of_range if the strip is unknown |
Definition at line 129 of file SVDCalibrationsBase.h.
|
inline |
Set the calibration associated to a given strip.
Return the calibration associated to a given strip identified by:
layer | is the layer number (2 to 6 in the present geometry) |
ladder | is the ladder number ( 1 to 7 for layer 3, 1 to 10 for layer 4 etc...) |
sensor | is the sensor number ( 1 to 2 for layer 3, 1 to 3 for layer 4 etc...) |
side | is the sensor view: 1 for Side U ( Side P ), 0 for side V (Side N) |
strip | is the strip number: from 1 to 512 or 768 depending on the sensor |
value | it throws std::out_of_range if the strip is unknown |
Definition at line 170 of file SVDCalibrationsBase.h.
|
inline |
Return the array index of the side.
isU |
Definition at line 201 of file SVDCalibrationsBase.h.
|
private |
an SVD calibration
Definition at line 46 of file SVDCalibrationsBase.h.
|
private |
The unique identifier is a private member of SVDCalibrationsBase, whose value is assigned in the constructor.
Definition at line 212 of file SVDCalibrationsBase.h.