![]() |
Belle II Software release-09-00-03
|
Database object for xt-relations. More...
#include <CDCXtRelations.h>


Public Types | |
| enum | { c_nSLayers = 56 , c_maxNAlphaBins = 18 , c_maxNThetaBins = 7 , c_maxNXtParams = 8 } |
| Constants. More... | |
Public Member Functions | |
| CDCXtRelations () | |
| Default constructor. | |
| void | setAlphaBin (const array3 &alpha) |
| Set alpha-angle bin (rad) | |
| void | setThetaBin (const array3 &theta) |
| Set theta-angle bin (rad) | |
| void | setXtParamMode (unsigned short mode) |
| Set xt parameterization mode. | |
| void | setXtParams (const XtID xtID, const std::vector< float > ¶ms) |
| Set xt parameters for the specified id. | |
| void | setXtParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta, const std::vector< float > ¶ms) |
| Set xt parameters for the specified id. | |
| void | addXTParams (const XtID xtID, const std::vector< float > &delta) |
| Update xt parameters for the specified id. | |
| void | addXTParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta, const std::vector< float > &delta) |
| Update xt parameters for the specified id. | |
| void | replaceXTParams (const XtID xtID, const std::vector< float > ¶m) |
| Replace xt parameters for the specified id. | |
| void | replaceXTParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta, const std::vector< float > ¶m) |
| Replace xt parameters for the specified id. | |
| unsigned short | getNoOfAlphaBins () const |
| Get no. | |
| unsigned short | getNoOfThetaBins () const |
| Get no. | |
| const array3 & | getAlphaBin (unsigned short i) const |
| Get i-th alpha-angle bin info. | |
| float | getAlphaPoint (unsigned short i) const |
| Get i-th alpha-angle point (rad) | |
| const array3 & | getThetaBin (unsigned short i) const |
| Get i-th theta-angle bin info. | |
| float | getThetaPoint (unsigned short i) const |
| Get i-th theta-angle point (rad) | |
| unsigned short | getXtParamMode () const |
| Get xt parameterization mode. | |
| XtID | getXtID (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta) const |
| Get xt id. | |
| XtID | getXtID (unsigned short iCLayer, unsigned short iLR, float alpha, float theta) const |
| Get xt id. | |
| const std::vector< float > & | getXtParams (const XtID xtID) const |
| Get xt parameters for the specified id. | |
| const std::vector< float > & | getXtParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta) const |
| Get xt parameters for the specified id. | |
| void | dump () const |
| Print all contents. | |
| void | outputToFile (std::string fileName) const |
| Output the contents in test file format. | |
| double | getGlobalParam (unsigned short xtId, unsigned short i) const |
| Get global parameter for i-th component of the specified xtId. | |
| void | setGlobalParam (double value, unsigned short xtId, unsigned short i) |
| Set global parameter for i-th component of the specified xtId. | |
| std::vector< std::pair< unsigned short, unsigned short > > | listGlobalParams () const |
| list stored global parameters TODO FIXME CDC not ready | |
Static Public Member Functions | |
| static bool | comp (const array3 &lhs, const array3 &rhs) |
| Static function for sorting. | |
| static unsigned short | getGlobalUniqueID () |
| Get global unique id. | |
Private Types | |
| typedef std::array< float, 3 > | array3 |
| angle bin info. | |
| typedef unsigned short | XtID |
| id. | |
Private Member Functions | |
| ClassDef (CDCXtRelations, 2) | |
| ClassDef. | |
Private Attributes | |
| unsigned short | m_xtParamMode |
| Mode for xt parameterization. | |
| unsigned short | m_nXtParams |
| no. | |
| std::vector< array3 > | m_alphaBins |
| alpha bins for xt (rad) | |
| std::vector< array3 > | m_thetaBins |
| theta bins for xt (rad) | |
| std::map< XtID, std::vector< float > > | m_xts |
| XT-relation coefficients for each layer, Left/Right, entrance angle and polar angle. | |
Database object for xt-relations.
Definition at line 28 of file CDCXtRelations.h.
|
private |
angle bin info.
Definition at line 30 of file CDCXtRelations.h.
|
private |
| anonymous enum |
Constants.
| Enumerator | |
|---|---|
| c_nSLayers | no. of layers |
| c_maxNAlphaBins | max. no. of alpha angle bins |
| c_maxNThetaBins | max. no. of theta angle bins |
| c_maxNXtParams | max. no. of params. for xt |
Definition at line 37 of file CDCXtRelations.h.
|
inline |
Default constructor.
Definition at line 46 of file CDCXtRelations.h.
|
inline |
Update xt parameters for the specified id.
(=bin)
Definition at line 121 of file CDCXtRelations.h.
|
inline |
Update xt parameters for the specified id.
(=bin)
Definition at line 137 of file CDCXtRelations.h.
Static function for sorting.
Definition at line 79 of file CDCXtRelations.h.
|
inline |
Print all contents.
Definition at line 319 of file CDCXtRelations.h.
|
inline |
|
inline |
Get i-th alpha-angle point (rad)
Definition at line 198 of file CDCXtRelations.h.
|
inline |
Get global parameter for i-th component of the specified xtId.
Definition at line 414 of file CDCXtRelations.h.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
Get i-th theta-angle point (rad)
Definition at line 214 of file CDCXtRelations.h.
|
inline |
Get xt id.
(=bin id.)
Definition at line 243 of file CDCXtRelations.h.
|
inline |
Get xt id.
(=bin id.) bit#00 - 05: used for layer no. bit#06 - 06: used for left/right bit#07 - 11: used for alpha angle bin bit#12 - 15: used for theta angle bin
Definition at line 234 of file CDCXtRelations.h.
|
inline |
Get xt parameterization mode.
Definition at line 222 of file CDCXtRelations.h.
|
inline |
|
inline |
Get xt parameters for the specified id.
(=bin)
Definition at line 308 of file CDCXtRelations.h.
|
inline |
list stored global parameters TODO FIXME CDC not ready
Definition at line 435 of file CDCXtRelations.h.
|
inline |
Output the contents in test file format.
Definition at line 363 of file CDCXtRelations.h.
|
inline |
Replace xt parameters for the specified id.
(=bin)
Definition at line 147 of file CDCXtRelations.h.
|
inline |
Replace xt parameters for the specified id.
(=bin)
Definition at line 163 of file CDCXtRelations.h.
|
inline |
Set alpha-angle bin (rad)
Definition at line 52 of file CDCXtRelations.h.
|
inline |
Set global parameter for i-th component of the specified xtId.
Definition at line 419 of file CDCXtRelations.h.
|
inline |
Set theta-angle bin (rad)
Definition at line 66 of file CDCXtRelations.h.
|
inline |
Set xt parameterization mode.
Definition at line 87 of file CDCXtRelations.h.
|
inline |
Set xt parameters for the specified id.
(=bin)
Definition at line 95 of file CDCXtRelations.h.
|
inline |
Set xt parameters for the specified id.
(=bin)
Definition at line 111 of file CDCXtRelations.h.
|
private |
alpha bins for xt (rad)
Definition at line 448 of file CDCXtRelations.h.
|
private |
|
private |
theta bins for xt (rad)
Definition at line 449 of file CDCXtRelations.h.
|
private |
Mode for xt parameterization.
Definition at line 446 of file CDCXtRelations.h.
|
private |
XT-relation coefficients for each layer, Left/Right, entrance angle and polar angle.
Definition at line 451 of file CDCXtRelations.h.