Belle II Software  release-05-02-19
CDCSpaceResols Class Reference

Database object for space resolutions. More...

#include <CDCSpaceResols.h>

Inheritance diagram for CDCSpaceResols:
Collaboration diagram for CDCSpaceResols:

Public Types

enum  {
  c_nSLayers = 56,
  c_maxNAlphaBins = 18,
  c_maxNThetaBins = 7,
  c_maxNSigmaParams = 9
}
 Constants. More...
 

Public Member Functions

 CDCSpaceResols ()
 Default constructor.
 
void setAlphaBin (const array3 &alpha)
 Set alpha-angle bin (rad)
 
void setThetaBin (const array3 &theta)
 Set theta-angle bin (rad)
 
void setSigmaParamMode (unsigned short mode)
 Set sigma parameterization mode.
 
void setSigmaParams (const SigmaID sigmaID, const std::vector< float > &params)
 Set sigma parameters for the specified id. More...
 
void setSigmaParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta, const std::vector< float > &params)
 Set sigma parameters for the specified id. More...
 
void addSigmaParams (const SigmaID sigmaID, const std::vector< float > &delta)
 Update parameters for the specified id. More...
 
void addSigmaParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta, const std::vector< float > &delta)
 Update parameters for the specified id. More...
 
unsigned short getNoOfAlphaBins () const
 Get no. More...
 
unsigned short getNoOfThetaBins () const
 Get no. More...
 
const array3getAlphaBin (unsigned short i) const
 Get i-th alpha-angle bin info. More...
 
float getAlphaPoint (unsigned short i) const
 Get i-th alpha-angle point (rad)
 
const array3getThetaBin (unsigned short i) const
 Get i-th theta-angle bin info. More...
 
float getThetaPoint (unsigned short i) const
 Get i-th theta-angle point (rad)
 
unsigned short getSigmaParamMode () const
 Get parameterization mode.
 
SigmaID getSigmaID (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta) const
 Get id. More...
 
SigmaID getSigmaID (unsigned short iCLayer, unsigned short iLR, float alpha, float theta) const
 Get id. More...
 
const std::vector< float > & getSigmaParams (const SigmaID sigmaID) const
 Get sigma parameters for the specified id. More...
 
const std::vector< float > & getSigmaParams (unsigned short iCLayer, unsigned short iLR, unsigned short iAlpha, unsigned short iTheta) const
 Get sigma parameters for the specified id. More...
 
void dump () const
 Print all contents.
 
void outputToFile (std::string fileName) const
 Output the contents in text file format.
 

Static Public Member Functions

static bool comp (const array3 &lhs, const array3 &rhs)
 Static function for sorting.
 

Private Types

typedef std::array< float, 3 > array3
 angle bin info.
 
typedef unsigned short SigmaID
 id. More...
 

Private Member Functions

 ClassDef (CDCSpaceResols, 1)
 ClassDef.
 

Private Attributes

unsigned short m_sigmaParamMode
 Mode for sigma parameterization.
 
unsigned short m_nSigmaParams
 no. More...
 
std::vector< array3m_alphaBins
 alpha bins for sigma (rad)
 
std::vector< array3m_thetaBins
 theta bins for sigma (rad)
 
std::map< SigmaID, std::vector< float > > m_sigmas
 Sigma coefficients for each layer, Left/Right, entrance angle and polar angle. More...
 

Detailed Description

Database object for space resolutions.

Definition at line 36 of file CDCSpaceResols.h.

Member Typedef Documentation

◆ SigmaID

typedef unsigned short SigmaID
private

id.

for resol.

Definition at line 39 of file CDCSpaceResols.h.

Member Enumeration Documentation

◆ anonymous enum

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_maxNSigmaParams 

max.

no. of params. for sigma

Definition at line 45 of file CDCSpaceResols.h.

47  {}
48 

Member Function Documentation

◆ addSigmaParams() [1/2]

void addSigmaParams ( const SigmaID  sigmaID,
const std::vector< float > &  delta 
)
inline

Update parameters for the specified id.

(=bin)

Definition at line 129 of file CDCSpaceResols.h.

◆ addSigmaParams() [2/2]

void addSigmaParams ( unsigned short  iCLayer,
unsigned short  iLR,
unsigned short  iAlpha,
unsigned short  iTheta,
const std::vector< float > &  delta 
)
inline

Update parameters for the specified id.

(=bin)

Definition at line 145 of file CDCSpaceResols.h.

◆ getAlphaBin()

const array3& getAlphaBin ( unsigned short  i) const
inline

Get i-th alpha-angle bin info.

(rad)

Definition at line 172 of file CDCSpaceResols.h.

◆ getNoOfAlphaBins()

unsigned short getNoOfAlphaBins ( ) const
inline

Get no.

of alpha-angle bin

Definition at line 156 of file CDCSpaceResols.h.

◆ getNoOfThetaBins()

unsigned short getNoOfThetaBins ( ) const
inline

Get no.

of theta-angle bin

Definition at line 164 of file CDCSpaceResols.h.

◆ getSigmaID() [1/2]

SigmaID getSigmaID ( unsigned short  iCLayer,
unsigned short  iLR,
float  alpha,
float  theta 
) const
inline

Get id.

(=bin id.)

Definition at line 225 of file CDCSpaceResols.h.

◆ getSigmaID() [2/2]

SigmaID getSigmaID ( unsigned short  iCLayer,
unsigned short  iLR,
unsigned short  iAlpha,
unsigned short  iTheta 
) const
inline

Get 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 216 of file CDCSpaceResols.h.

◆ getSigmaParams() [1/2]

const std::vector<float>& getSigmaParams ( const SigmaID  sigmaID) const
inline

Get sigma parameters for the specified id.

(=bin)

Definition at line 277 of file CDCSpaceResols.h.

◆ getSigmaParams() [2/2]

const std::vector<float>& getSigmaParams ( unsigned short  iCLayer,
unsigned short  iLR,
unsigned short  iAlpha,
unsigned short  iTheta 
) const
inline

Get sigma parameters for the specified id.

(=bin)

Definition at line 290 of file CDCSpaceResols.h.

◆ getThetaBin()

const array3& getThetaBin ( unsigned short  i) const
inline

Get i-th theta-angle bin info.

(rad)

Definition at line 188 of file CDCSpaceResols.h.

◆ setSigmaParams() [1/2]

void setSigmaParams ( const SigmaID  sigmaID,
const std::vector< float > &  params 
)
inline

Set sigma parameters for the specified id.

(=bin)

Definition at line 103 of file CDCSpaceResols.h.

◆ setSigmaParams() [2/2]

void setSigmaParams ( unsigned short  iCLayer,
unsigned short  iLR,
unsigned short  iAlpha,
unsigned short  iTheta,
const std::vector< float > &  params 
)
inline

Set sigma parameters for the specified id.

(=bin)

Definition at line 119 of file CDCSpaceResols.h.

Member Data Documentation

◆ m_nSigmaParams

unsigned short m_nSigmaParams
private

no.

of sigma parameters per bin

Definition at line 392 of file CDCSpaceResols.h.

◆ m_sigmas

std::map<SigmaID, std::vector<float> > m_sigmas
private

Sigma coefficients for each layer, Left/Right, entrance angle and polar angle.


Definition at line 396 of file CDCSpaceResols.h.


The documentation for this class was generated from the following file:
Belle2::CDCSpaceResols::m_sigmaParamMode
unsigned short m_sigmaParamMode
Mode for sigma parameterization.
Definition: CDCSpaceResols.h:391
Belle2::CDCSpaceResols::m_nSigmaParams
unsigned short m_nSigmaParams
no.
Definition: CDCSpaceResols.h:392