Auxiliary data structure for mechanical model parameters with commented data.
More...
#include <JMechanics.hh>
Auxiliary data structure for mechanical model parameters with commented data.
Definition at line 36 of file JMechanics.hh.
◆ anonymous enum
| Enumerator |
|---|
| WILDCARD | wild card for string number.
|
Definition at line 108 of file JMechanics_t.hh.
108 {
110 };
@ WILDCARD
wild card for string number.
◆ operator()()
| const JMechanics & JACOUSTICS::JDetectorMechanics_t::operator() |
( |
const int | string | ) |
const |
|
inlineinherited |
Get mechanical parameters for given string.
- Parameters
-
- Returns
- mechanical parameters
Definition at line 119 of file JMechanics_t.hh.
120 {
121 static const JMechanics mechanics;
122
123 const_iterator p;
124
125 if ((p = this->find(string)) != this->end())
126 return p->second;
127 else if ((p = this->find(
WILDCARD)) != this->end())
128 return p->second;
129 else
130 return mechanics;
131 }
◆ ClassDef()
◆ operator>>
Read detector mechanics from input.
- Parameters
-
| in | input stream |
| object | detector mechanics |
- Returns
- input stream
Definition at line 46 of file JMechanics.hh.
47 {
49
51
52 if (getFileStatus(is.str().c_str())) {
53 is.load();
54 }
55
56 object.clear();
57
58 is >> object.comment;
59
60 int string;
62
63 while (is >> string >> mechanics) {
64 object[string] = mechanics;
65 }
66
67 return in;
68 }
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for parameters of mechanical model.
◆ operator<<
Write detector mechanics to output.
- Parameters
-
| out | output stream |
| object | detector mechanics |
- Returns
- output stream
Definition at line 78 of file JMechanics.hh.
79 {
81
82 out << object.comment;
83 out << static_cast<const JDetectorMechanics_t&>(object);
84
85 return out;
86 }
◆ comment
| JComment JACOUSTICS::JDetectorMechanics::comment |
The documentation for this struct was generated from the following file: