Belle II Software  release-08-01-10
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 setMaxSpaceResol (float sigma)
 Set max. More...
 
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.
 
float getMaxSpaceResol () const
 Get max. More...
 
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, 2)
 ClassDef.
 

Private Attributes

unsigned short m_sigmaParamMode
 Mode for sigma parameterization.
 
unsigned short m_nSigmaParams
 no. More...
 
float m_maxSpaceResol = 0.07
 max. 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 26 of file CDCSpaceResols.h.

Member Typedef Documentation

◆ SigmaID

typedef unsigned short SigmaID
private

id.

for resol.

Definition at line 29 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 35 of file CDCSpaceResols.h.

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 127 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 143 of file CDCSpaceResols.h.

◆ getAlphaBin()

const array3& getAlphaBin ( unsigned short  i) const
inline

Get i-th alpha-angle bin info.

(rad)

Definition at line 170 of file CDCSpaceResols.h.

◆ getMaxSpaceResol()

float getMaxSpaceResol ( ) const
inline

Get max.

allowed space resolution

Definition at line 210 of file CDCSpaceResols.h.

◆ getNoOfAlphaBins()

unsigned short getNoOfAlphaBins ( ) const
inline

Get no.

of alpha-angle bin

Definition at line 154 of file CDCSpaceResols.h.

◆ getNoOfThetaBins()

unsigned short getNoOfThetaBins ( ) const
inline

Get no.

of theta-angle bin

Definition at line 162 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 231 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 222 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 283 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 296 of file CDCSpaceResols.h.

◆ getThetaBin()

const array3& getThetaBin ( unsigned short  i) const
inline

Get i-th theta-angle bin info.

(rad)

Definition at line 186 of file CDCSpaceResols.h.

◆ setMaxSpaceResol()

void setMaxSpaceResol ( float  sigma)
inline

Set max.

allowed space resolution

Definition at line 93 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 101 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 117 of file CDCSpaceResols.h.

Member Data Documentation

◆ m_maxSpaceResol

float m_maxSpaceResol = 0.07
private

max.

space resol (cm) allowed

Definition at line 401 of file CDCSpaceResols.h.

◆ m_nSigmaParams

unsigned short m_nSigmaParams
private

no.

of sigma parameters per bin

Definition at line 400 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 405 of file CDCSpaceResols.h.


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