 |
Belle II Software
release-05-01-25
|
27 class CDCFudgeFactorsForSigma:
public TObject {
49 void setFactors(
unsigned short id,
const std::vector<float>& factors)
51 m_ffs.insert(std::pair<
unsigned short, std::vector<float>>(
id, factors));
73 std::map<unsigned short, std::vector<float>>
getFactors()
const
83 const std::vector<float>&
getFactors(
unsigned short id)
const
85 std::map<unsigned short, std::vector<float>>::const_iterator it =
m_ffs.find(
id);
86 if (it !=
m_ffs.end()) {
89 B2FATAL(
"Specified id not found in getFactors !");
98 std::cout <<
" " << std::endl;
99 std::cout <<
"Fudge factor list" << std::endl;
100 std::cout <<
"#entries= " <<
m_ffs.size() << std::endl;
101 std::cout <<
"in order of id and factors" << std::endl;
103 for (
auto const& ent :
m_ffs) {
104 std::cout << ent.first;
105 unsigned short np = (ent.second).size();
106 for (
unsigned short i = 0; i < np; ++i) {
107 std::cout <<
" " << (ent.second)[i];
109 std::cout << std::endl;
139 std::map<unsigned short, std::vector<float>>
m_ffs;
std::map< unsigned short, std::vector< float > > getFactors() const
Get the whole list.
unsigned short getGroupID() const
Get group id.
unsigned short m_groupID
Output the contents in text file format.
void setFactors(unsigned short id, const std::vector< float > &factors)
Set the factors in the list.
void dump() const
Print all contents.
CDCFudgeFactorsForSigma()
Default constructor.
unsigned short getEntries() const
Get the no.
Abstract base class for different kinds of events.
ClassDef(CDCFudgeFactorsForSigma, 1)
ClassDef.
std::map< unsigned short, std::vector< float > > m_ffs
cv list
void setGroupID(unsigned short mode)
Set group id (factors per group) id=0: all-wires; >=1: not ready.