47 void setFactors(
unsigned short id,
const std::vector<float>& factors)
49 m_ffs.insert(std::pair<
unsigned short, std::vector<float>>(
id, factors));
71 std::map<unsigned short, std::vector<float>>
getFactors()
const
81 const std::vector<float>&
getFactors(
unsigned short id)
const
83 std::map<unsigned short, std::vector<float>>::const_iterator it =
m_ffs.find(
id);
84 if (it !=
m_ffs.end()) {
87 B2FATAL(
"Specified id not found in getFactors !");
96 std::cout <<
" " << std::endl;
97 std::cout <<
"Fudge factor list" << std::endl;
98 std::cout <<
"#entries= " <<
m_ffs.size() << std::endl;
99 std::cout <<
"in order of id and factors" << std::endl;
101 for (
auto const& ent :
m_ffs) {
102 std::cout << ent.first;
103 unsigned short np = (ent.second).size();
104 for (
unsigned short i = 0; i < np; ++i) {
105 std::cout <<
" " << (ent.second)[i];
107 std::cout << std::endl;
137 std::map<unsigned short, std::vector<float>>
m_ffs;
Database object for fudge factors for CDC space resol.
const std::vector< float > & getFactors(unsigned short id) const
Get the factors for the id.
void setGroupID(unsigned short mode)
Set group id (factors per group) id=0: all-wires; >=1: not ready.
std::map< unsigned short, std::vector< float > > m_ffs
cv list
std::map< unsigned short, std::vector< float > > getFactors() const
Get the whole list.
ClassDef(CDCFudgeFactorsForSigma, 1)
ClassDef.
CDCFudgeFactorsForSigma()
Default constructor.
unsigned short getEntries() const
Get the no.
void setFactors(unsigned short id, const std::vector< float > &factors)
Set the factors in the list.
unsigned short m_groupID
Output the contents in text file format.
void dump() const
Print all contents.
unsigned short getGroupID() const
Get group id.
Abstract base class for different kinds of events.