![]() |
Belle II Software development
|
dE/dx cosine gain calibration constants More...
#include <CDCDedxCosineCor.h>
Public Member Functions | |
| CDCDedxCosineCor () | |
| Default constructor. | |
| CDCDedxCosineCor (const std::vector< double > &cosgains) | |
| Old payloads Constructor. | |
| CDCDedxCosineCor (const std::vector< std::vector< double > > &groupCosgains, const std::vector< unsigned int > &layerToGroup) | |
| New-style constructor: grouped cosine corrections with layer-to-group mapping. | |
| ~CDCDedxCosineCor () | |
| Destructor. | |
| CDCDedxCosineCor & | operator*= (const CDCDedxCosineCor &rhs) |
| Combine payloads. | |
| bool | isGrouped () const |
| Check whether grouped mode is used. | |
| unsigned int | getNGroups () const |
| Get number of groups in grouped mode. | |
| unsigned int | getNLayers () const |
| Number of layers. | |
| unsigned int | getGroup (unsigned int layer) const |
| Get group index for layer. | |
| unsigned int | getSize (unsigned int layer) const |
| Get the number of bins. | |
| const std::vector< double > & | getCosCor () const |
| Get the old-style calibration constants. | |
| const std::vector< std::vector< double > > & | getGroupCosCor () const |
| Get the grouped calibration constants. | |
| const std::vector< unsigned int > & | getLayerMap () const |
| Get the Layer-to-group map. | |
| void | setCosCor (unsigned int bin, double value) |
| Set old-style cosine correction. | |
| void | setCosCor (unsigned int group, unsigned int bin, double value) |
| Set grouped cosine correction. | |
| double | getMean (unsigned int bin) const |
| Return dE/dx mean value for the given bin in old mode. | |
| double | getMean (double costh) const |
| Return dE/dx mean value for given cos(theta) in old mode. | |
| double | getMean (unsigned int layer, unsigned int bin) const |
| Return dE/dx mean value for the given layer and bin. | |
| double | getMean (unsigned int layer, double costh) const |
| Return dE/dx mean value for given layer and cos(theta) | |
Private Member Functions | |
| double | getMeanFromVector (const std::vector< double > &gains, double costh) const |
| Helper to interpolate/extrapolate from one vector of gains. | |
| bool | isValidGroupedPayload () const |
| Validate grouped payload content. | |
| bool | multiplyGains (std::vector< double > &lhs, const std::vector< double > &rhs) const |
| Multiply lhs by rhs with possible rebinning. | |
| ClassDef (CDCDedxCosineCor, 9) | |
| ClassDef. | |
Private Attributes | |
| std::vector< double > | m_cosgains |
| old-style dE/dx gains in cos(theta) bins | |
| std::vector< std::vector< double > > | m_groupCosgains |
| grouped dE/dx gains [group][bin] | |
| std::vector< unsigned int > | m_layerToGroup |
| map from layer index to group index | |
dE/dx cosine gain calibration constants
Definition at line 26 of file CDCDedxCosineCor.h.
|
inline |
Default constructor.
Definition at line 33 of file CDCDedxCosineCor.h.
|
inlineexplicit |
Old payloads Constructor.
| cosgains | vector of calibration constants |
Definition at line 39 of file CDCDedxCosineCor.h.
| CDCDedxCosineCor | ( | const std::vector< std::vector< double > > & | groupCosgains, |
| const std::vector< unsigned int > & | layerToGroup ) |
New-style constructor: grouped cosine corrections with layer-to-group mapping.
| groupCosgains | grouped calibration constants [group][bin] |
| layerToGroup | map from layer index to group index |
Definition at line 15 of file CDCDedxCosineCor.cc.
|
inline |
|
inline |
Get the old-style calibration constants.
Definition at line 123 of file CDCDedxCosineCor.h.
|
inline |
Get group index for layer.
Definition at line 90 of file CDCDedxCosineCor.h.
|
inline |
Get the grouped calibration constants.
Definition at line 132 of file CDCDedxCosineCor.h.
|
inline |
Get the Layer-to-group map.
Definition at line 141 of file CDCDedxCosineCor.h.
| double getMean | ( | double | costh | ) | const |
Return dE/dx mean value for given cos(theta) in old mode.
| costh | cos(theta) |
Definition at line 122 of file CDCDedxCosineCor.cc.
| double getMean | ( | unsigned int | bin | ) | const |
Return dE/dx mean value for the given bin in old mode.
| bin | cosine bin |
Definition at line 115 of file CDCDedxCosineCor.cc.
| double getMean | ( | unsigned int | layer, |
| double | costh ) const |
Return dE/dx mean value for given layer and cos(theta)
| layer | layer index |
| costh | cos(theta) |
Definition at line 151 of file CDCDedxCosineCor.cc.
| double getMean | ( | unsigned int | layer, |
| unsigned int | bin ) const |
Return dE/dx mean value for the given layer and bin.
| layer | layer index |
| bin | cosine bin |
Definition at line 129 of file CDCDedxCosineCor.cc.
|
private |
Helper to interpolate/extrapolate from one vector of gains.
| gains | vector of gains |
| costh | cos(theta) |
Definition at line 169 of file CDCDedxCosineCor.cc.
|
inline |
Get number of groups in grouped mode.
Definition at line 75 of file CDCDedxCosineCor.h.
|
inline |
Number of layers.
Definition at line 82 of file CDCDedxCosineCor.h.
|
inline |
Get the number of bins.
Definition at line 109 of file CDCDedxCosineCor.h.
|
inline |
Check whether grouped mode is used.
Definition at line 66 of file CDCDedxCosineCor.h.
|
private |
Validate grouped payload content.
Definition at line 85 of file CDCDedxCosineCor.cc.
|
private |
Multiply lhs by rhs with possible rebinning.
If rhs has fewer bins, each rhs bin is applied to a block of lhs bins. This allows combining payloads with different binning (e.g. coarse => fine).
Definition at line 204 of file CDCDedxCosineCor.cc.
| CDCDedxCosineCor & operator*= | ( | const CDCDedxCosineCor & | rhs | ) |
Combine payloads.
Definition at line 219 of file CDCDedxCosineCor.cc.
| void setCosCor | ( | unsigned int | bin, |
| double | value ) |
Set old-style cosine correction.
| bin | bin number |
| value | value to be set |
Definition at line 64 of file CDCDedxCosineCor.cc.
| void setCosCor | ( | unsigned int | group, |
| unsigned int | bin, | ||
| double | value ) |
Set grouped cosine correction.
| group | group number |
| bin | bin number |
| value | value to be set |
Definition at line 70 of file CDCDedxCosineCor.cc.
|
private |
old-style dE/dx gains in cos(theta) bins
Definition at line 214 of file CDCDedxCosineCor.h.
|
private |
grouped dE/dx gains [group][bin]
Definition at line 215 of file CDCDedxCosineCor.h.
|
private |
map from layer index to group index
Definition at line 216 of file CDCDedxCosineCor.h.