#include <DetCondFloat.h>
Definition at line 40 of file DetCondFloat.h.
◆ BufferMap
◆ lessp
◆ DetCondFloat() [1/2]
| DetCondFloat::DetCondFloat |
( |
| ) |
|
|
inline |
◆ DetCondFloat() [2/2]
| DetCondFloat::DetCondFloat |
( |
const int | size, |
|
|
const std::string & | tag ) |
|
inline |
Definition at line 70 of file DetCondFloat.h.
70 :
const std::string & tag() const
◆ ~DetCondFloat()
| DetCondFloat::~DetCondFloat |
( |
| ) |
|
|
inlinevirtual |
◆ add()
| int DetCondFloat::add |
( |
const Identifier & | ident, |
|
|
const float * | f ) |
Definition at line 13 of file DetCondFloat.cxx.
13 {
14
15 size_t j=
m_buf.size();
16
19
21 return j;
22}
std::vector< float > m_buf
◆ find()
| const float * DetCondFloat::find |
( |
const Identifier & | ident | ) |
const |
Definition at line 29 of file DetCondFloat.cxx.
29 {
30 BufferMap::const_iterator itr=
m_bufmap.find(ident);
32
33 return &
m_buf[itr->second];
34 } else {
35
36 return 0;
37 }
38}
◆ findindex()
| int DetCondFloat::findindex |
( |
const Identifier & | ident | ) |
const |
Definition at line 40 of file DetCondFloat.cxx.
40 {
41 BufferMap::const_iterator itr=
m_bufmap.find(ident);
43
44 return itr->second;
45 } else {
46
47 return -1;
48 }
49}
◆ print()
| void DetCondFloat::print |
( |
| ) |
const |
|
virtual |
Definition at line 51 of file DetCondFloat.cxx.
51 {
52 std::cout <<
"DetCondFloat " <<
m_tag <<
" has granularity " <<
m_size <<
53 " with " <<
m_bufmap.size() <<
" entries and " <<
m_buf.size() <<
54 " elements" << std::endl;
55}
◆ print2()
| void DetCondFloat::print2 |
( |
| ) |
const |
|
virtual |
Definition at line 57 of file DetCondFloat.cxx.
57 {
60 for (BufferMap::const_iterator itr=
m_bufmap.begin();
62 int j=itr->second;
63 std::cout <<
"Element " <<
i <<
" ident " << (itr->first).getString() <<
64 "offset " << j << " values:";
66 std::cout << std::endl;
67 }
68}
virtual void print() const
◆ share()
| void DetCondFloat::share |
( |
const Identifier & | ident, |
|
|
const int | index ) |
◆ size()
| int DetCondFloat::size |
( |
| ) |
const |
|
inline |
◆ tag()
| const std::string & DetCondFloat::tag |
( |
| ) |
const |
|
inline |
◆ m_buf
| std::vector<float> DetCondFloat::m_buf |
|
protected |
◆ m_bufmap
◆ m_size
◆ m_tag
| std::string DetCondFloat::m_tag |
|
protected |
The documentation for this class was generated from the following files: