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

Database object for energy-deposit to ADC-count conversion. More...

#include <CDCEDepToADCConversions.h>

Inheritance diagram for CDCEDepToADCConversions:
Collaboration diagram for CDCEDepToADCConversions:

Public Member Functions

 CDCEDepToADCConversions ()
 Default constructor.
 
void setParamMode (unsigned short mode)
 Set conversion parameterization mode.
 
void setGroupID (unsigned short mode)
 Set group id (parameterized per group) id=0: superLayerID; =1: layerID; =1: wireID.
 
void setParams (unsigned short id, const std::vector< float > &params)
 Set the conv. More...
 
unsigned short getParamMode () const
 Get mode of conversion parameterization.
 
unsigned short getGroupID () const
 Get group id.
 
unsigned short getEntries () const
 Get the no. More...
 
std::map< unsigned short, std::vector< float > > getParams () const
 Get the whole list.
 
const std::vector< float > & getParams (unsigned short id) const
 Get the conv. More...
 
void dump () const
 Print all contents.
 

Private Member Functions

 ClassDef (CDCEDepToADCConversions, 2)
 ClassDef.
 

Private Attributes

unsigned short m_paramMode = 0
 Output the contents in text file format. More...
 
unsigned short m_groupID = 0
 Group id (parameterized per group)
 
std::map< unsigned short, std::vector< float > > m_cvs
 cv list
 

Detailed Description

Database object for energy-deposit to ADC-count conversion.

Definition at line 35 of file CDCEDepToADCConversions.h.

Member Function Documentation

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 89 of file CDCEDepToADCConversions.h.

90  {
91  return m_cvs;
92  }

◆ getParams()

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

Get the conv.

parameters for the id

Parameters
idlayerID or wireID
Returns
conversion paramseters for the id

Definition at line 107 of file CDCEDepToADCConversions.h.

◆ setParams()

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

Set the conv.

paramseters in the list

Parameters
idsuperLayerid(0-8), laerID(0-55) or wireID
paramsparameters for conversion

Definition at line 65 of file CDCEDepToADCConversions.h.

Member Data Documentation

◆ m_paramMode

unsigned short m_paramMode = 0
private

Output the contents in text file format.

Mode for parameterization

Definition at line 163 of file CDCEDepToADCConversions.h.


The documentation for this class was generated from the following file:
Belle2::CDCEDepToADCConversions::m_cvs
std::map< unsigned short, std::vector< float > > m_cvs
cv list
Definition: CDCEDepToADCConversions.h:165