 |
Belle II Software
release-05-01-25
|
27 class CDCEDepToADCConversions:
public TObject {
57 void setParams(
unsigned short id,
const std::vector<float>& params)
59 m_cvs.insert(std::pair<
unsigned short, std::vector<float>>(
id, params));
89 std::map<unsigned short, std::vector<float>>
getParams()
const
99 const std::vector<float>&
getParams(
unsigned short id)
const
101 std::map<unsigned short, std::vector<float>>::const_iterator it =
m_cvs.find(
id);
102 if (it !=
m_cvs.end()) {
105 B2FATAL(
"Specified id not found in getParams !");
114 std::cout <<
" " << std::endl;
115 std::cout <<
"Edep-to-ADC conversion list" << std::endl;
116 std::cout <<
"#entries= " <<
m_cvs.size() << std::endl;
118 std::cout <<
"in order of id and parameters" << std::endl;
121 std::cout << ent.first;
122 unsigned short np = (ent.second).size();
123 for (
unsigned short i = 0; i < np; ++i) {
124 std::cout <<
" " << (ent.second)[i];
126 std::cout << std::endl;
157 std::map<unsigned short, std::vector<float>>
m_cvs;
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 > ¶ms)
Set the conv.
unsigned short getParamMode() const
Get mode of conversion parameterization.
ClassDef(CDCEDepToADCConversions, 2)
ClassDef.
unsigned short m_paramMode
Output the contents in text file format.
Abstract base class for different kinds of events.
std::map< unsigned short, std::vector< float > > getParams() const
Get the whole list.
std::map< unsigned short, std::vector< float > > m_cvs
cv list
CDCEDepToADCConversions()
Default constructor.
unsigned short getGroupID() const
Get group id.
unsigned short m_groupID
Group id (parameterized per group)
unsigned short getEntries() const
Get the no.
void dump() const
Print all contents.
void setParamMode(unsigned short mode)
Set conversion parameterization mode.