Belle II Software  release-08-01-10
CDCFudgeFactorsForSigma Class Reference

Database object for fudge factors for CDC space resol. More...

#include <CDCFudgeFactorsForSigma.h>

Inheritance diagram for CDCFudgeFactorsForSigma:
Collaboration diagram for CDCFudgeFactorsForSigma:

Public Member Functions

 CDCFudgeFactorsForSigma ()
 Default constructor.
 
void setGroupID (unsigned short mode)
 Set group id (factors per group) id=0: all-wires; >=1: not ready.
 
void setFactors (unsigned short id, const std::vector< float > &factors)
 Set the factors in the list. More...
 
unsigned short getGroupID () const
 Get group id.
 
unsigned short getEntries () const
 Get the no. More...
 
std::map< unsigned short, std::vector< float > > getFactors () const
 Get the whole list.
 
const std::vector< float > & getFactors (unsigned short id) const
 Get the factors for the id. More...
 
void dump () const
 Print all contents.
 

Private Member Functions

 ClassDef (CDCFudgeFactorsForSigma, 1)
 ClassDef.
 

Private Attributes

unsigned short m_groupID = 0
 Output the contents in text file format. More...
 
std::map< unsigned short, std::vector< float > > m_ffs
 cv list
 

Detailed Description

Database object for fudge factors for CDC space resol.

Needed both for MC and data production. This object would probably be tentative; may be merged into the CDCSpaceResols object in future...

Definition at line 25 of file CDCFudgeFactorsForSigma.h.

Member Function Documentation

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 63 of file CDCFudgeFactorsForSigma.h.

64  {
65  return m_ffs.size();
66  }
std::map< unsigned short, std::vector< float > > m_ffs
cv list

◆ getFactors()

const std::vector<float>& getFactors ( unsigned short  id) const
inline

Get the factors for the id.

Parameters
idlayerID or wireID
Returns
fudge factors for the id

Definition at line 81 of file CDCFudgeFactorsForSigma.h.

◆ setFactors()

void setFactors ( unsigned short  id,
const std::vector< float > &  factors 
)
inline

Set the factors in the list.

Parameters
idlaerID(0-55) or wireID
factorsfactors

Definition at line 47 of file CDCFudgeFactorsForSigma.h.

Member Data Documentation

◆ m_groupID

unsigned short m_groupID = 0
private

Output the contents in text file format.

Group id (factors per group)

Definition at line 136 of file CDCFudgeFactorsForSigma.h.


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