Database object for fudge factors for CDC space resol.
More...
#include <CDCFudgeFactorsForSigma.h>
|
| CDCFudgeFactorsForSigma () |
| Default constructor.
|
|
void | setGroupID (unsigned short mode) |
| Set group id (factors per group) id=0: all-wires; >=1: not ready.
|
|
void | setFactors (unsigned short id, const std::vector< float > &factors) |
| Set the factors in the list.
|
|
unsigned short | getGroupID () const |
| Get group id.
|
|
unsigned short | getEntries () const |
| Get the no.
|
|
std::map< unsigned short, std::vector< float > > | getFactors () const |
| Get the whole list.
|
|
const std::vector< float > & | getFactors (unsigned short id) const |
| Get the factors for the id.
|
|
void | dump () const |
| Print all contents.
|
|
|
unsigned short | m_groupID = 0 |
| Output the contents in text file format.
|
|
std::map< unsigned short, std::vector< float > > | m_ffs |
| cv list
|
|
Database object for fudge factors for CDC space resol.
Needed both for MC and data production. This object would probably be tentative; may be merged into the CDCSpaceResols object in future...
Definition at line 25 of file CDCFudgeFactorsForSigma.h.
◆ CDCFudgeFactorsForSigma()
◆ dump()
Print all contents.
Definition at line 94 of file CDCFudgeFactorsForSigma.h.
95 {
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;
100
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];
106 }
107 std::cout << std::endl;
108 }
109 }
std::map< unsigned short, std::vector< float > > m_ffs
cv list
◆ getEntries()
unsigned short getEntries |
( |
| ) |
const |
|
inline |
◆ getFactors() [1/2]
std::map< unsigned short, std::vector< float > > getFactors |
( |
| ) |
const |
|
inline |
◆ getFactors() [2/2]
const std::vector< float > & getFactors |
( |
unsigned short |
id | ) |
const |
|
inline |
Get the factors for the id.
- Parameters
-
- Returns
- fudge factors for the id
Definition at line 81 of file CDCFudgeFactorsForSigma.h.
82 {
83 std::map<unsigned short, std::vector<float>>::const_iterator it =
m_ffs.find(
id);
84 if (it !=
m_ffs.end()) {
85 return it->second;
86 } else {
87 B2FATAL("Specified id not found in getFactors !");
88 }
89 }
◆ getGroupID()
unsigned short getGroupID |
( |
| ) |
const |
|
inline |
Get group id.
Definition at line 55 of file CDCFudgeFactorsForSigma.h.
56 {
58 }
unsigned short m_groupID
Output the contents in text file format.
◆ setFactors()
void setFactors |
( |
unsigned short |
id, |
|
|
const std::vector< float > & |
factors |
|
) |
| |
|
inline |
Set the factors in the list.
- Parameters
-
id | laerID(0-55) or wireID |
factors | factors |
Definition at line 47 of file CDCFudgeFactorsForSigma.h.
48 {
49 m_ffs.insert(std::pair<
unsigned short, std::vector<float>>(
id, factors));
50 }
◆ setGroupID()
void setGroupID |
( |
unsigned short |
mode | ) |
|
|
inline |
◆ m_ffs
std::map<unsigned short, std::vector<float> > m_ffs |
|
private |
◆ m_groupID
unsigned short m_groupID = 0 |
|
private |
The documentation for this class was generated from the following file: