Belle II Software  release-08-01-10
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; =2: 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.
 
void outputToFile (std::string fileName) const
 Output the contents in text file format.
 

Private Member Functions

 ClassDef (CDCEDepToADCConversions, 3)
 ClassDef.
 

Private Attributes

unsigned short m_paramMode = 0
 Mode for parameterization.
 
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 25 of file CDCEDepToADCConversions.h.

Member Function Documentation

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 79 of file CDCEDepToADCConversions.h.

80  {
81  return m_cvs.size();
82  }
std::map< unsigned short, std::vector< float > > m_cvs
cv list

◆ 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 97 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 55 of file CDCEDepToADCConversions.h.


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