|
Jpp test-rotations-old
the software that should make you happy
|
Detector geometry. More...
#include <JGeometry.hh>
Classes | |
| struct | module_type |
| Auxiliary data structure for module location and position. More... | |
Public Types | |
| typedef JKey_t | key_type |
| typedef JValue_t | mapped_type |
| typedef std::pair< JKey_t, JValue_t > | value_type |
| typedef JHashMapEvaluator< JEvaluator_t > | evaluator_type |
| typedef JHashCollection< value_type, evaluator_type > | collection_type |
| typedef collection_type::container_type | container_type |
| typedef container_type::const_iterator | const_iterator |
| typedef container_type::const_reverse_iterator | const_reverse_iterator |
| typedef container_type::iterator | iterator |
| typedef container_type::reverse_iterator | reverse_iterator |
Public Member Functions | |
| JDetector () | |
| Default constructor. | |
| JDetector (const JDETECTOR::JDetector &detector, const std::vector< JHydrophone > &hydrophones=std::vector< JHydrophone >()) | |
| Constructor. | |
| bool | hasString (int string) const |
| Check if this detector has given string. | |
| bool | hasLocation (const JLocation &location) const |
| Check if this detector has given location. | |
| virtual void | clear () override |
| Clear. | |
| void | reset () |
| Reset values. | |
| void | set (const JHashMap &source, const mapped_type &value) |
| Set values corresponding to keys in given source. | |
| virtual mapped_type & | get (typename JClass< key_type >::argument_type key) override |
| Get mapped value. | |
| virtual const mapped_type & | get (typename JClass< key_type >::argument_type key) const override |
| Get mapped value. | |
| value_type & | get (const T &value) |
| Get element with given value. | |
| const value_type & | get (const T &value) const |
| Get element with given value. | |
| void | swap (JHashCollection &collection) |
| Swap hash collection. | |
| const_iterator | find (const T &value) const |
| Find element with given value. | |
| iterator | find (const T &value) |
| Find element with given value. | |
| virtual bool | insert (const value_type &element) |
| Insert element. | |
| void | insert (T __begin, T __end) |
| Insert values. | |
| void | erase (iterator pos) |
| Erase element at given position. | |
| void | erase (iterator __begin, iterator __end) |
| Erase elements in given range. | |
| bool | erase (const T &value) |
| Erase element with given value. | |
| bool | has (const T &value) const |
| Test whether given value is present. | |
| int | getIndex (const T &value) const |
| Get index of given value. | |
| const mapped_type & | operator[] (typename JClass< key_type >::argument_type key) const |
| Get mapped value. | |
| mapped_type & | operator[] (typename JClass< key_type >::argument_type key) |
| Get mapped value. | |
| void | put (typename JClass< key_type > ::argument_type key, typename JClass< mapped_type >::argument_type value) |
| Put pair-wise element (key,value) into collection. | |
Public Attributes | |
| JHashMapEvaluator< JHashEvaluator > | getValue |
| Function object for evaluation of element. | |
Protected Attributes | |
| JTOOLS::JHashCollection::router_type | router |
Private Member Functions | |
| void | operator[] (int) |
| void | assign () |
| void | resize () |
| void | push_back () |
| void | pop_back () |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const JDetector &detector) |
| Write detector parameters to output stream. | |
Detector geometry.
Definition at line 499 of file JGeometry.hh.
|
inherited |
Definition at line 78 of file JHashMap.hh.
|
inherited |
Definition at line 79 of file JHashMap.hh.
|
inherited |
Definition at line 80 of file JHashMap.hh.
|
inherited |
Definition at line 81 of file JHashMap.hh.
|
inherited |
Definition at line 83 of file JHashMap.hh.
|
inherited |
Definition at line 84 of file JHashMap.hh.
|
inherited |
Definition at line 86 of file JHashMap.hh.
|
inherited |
Definition at line 87 of file JHashMap.hh.
|
inherited |
Definition at line 88 of file JHashMap.hh.
|
inherited |
Definition at line 89 of file JHashMap.hh.
|
inline |
|
inline |
Constructor.
Note that the positions of the base modules correspond to the reference position of the string.
As a consequence, a base module (i.e. floor = 0) is required for each string.
Missing base modules should therefore be added beforehand (e.g. using application JDetectorDB.cc).
Note that if the position of a hydrophone is not available, it is assumed that there is no hydrophone on that string.
If the position of the hydrophone is manually set, the corresponding parameter JString::has_hydrophone should be set to true.
| detector | detector |
| hydrophones | container with data of hydrophones |
Definition at line 524 of file JGeometry.hh.
|
inline |
Check if this detector has given string.
| string | string |
Definition at line 576 of file JGeometry.hh.
|
inline |
Check if this detector has given location.
| location | location |
Definition at line 588 of file JGeometry.hh.
|
inlineoverridevirtualinherited |
Clear.
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 107 of file JHashMap.hh.
|
inlineinherited |
Reset values.
Definition at line 116 of file JHashMap.hh.
|
inlineinherited |
Set values corresponding to keys in given source.
| source | source |
| value | value |
Definition at line 130 of file JHashMap.hh.
|
inlineoverridevirtualinherited |
Get mapped value.
| key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 146 of file JHashMap.hh.
|
inlineoverridevirtualinherited |
Get mapped value.
This method will throw an exception if given key is not present following the prerequisite of constness.
| key | key |
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 166 of file JHashMap.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
| value | value |
Definition at line 176 of file JHashCollection.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
| value | value |
Definition at line 197 of file JHashCollection.hh.
|
inlineinherited |
Swap hash collection.
| collection | hash collection |
Definition at line 123 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
| value | value |
Definition at line 138 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
| value | value |
Definition at line 156 of file JHashCollection.hh.
|
inlinevirtualinherited |
Insert element.
| element | element |
Definition at line 215 of file JHashCollection.hh.
|
inlineinherited |
Insert values.
| __begin | begin of values |
| __end | end of values |
Definition at line 239 of file JHashCollection.hh.
|
inlineinherited |
Erase element at given position.
| pos | valid position |
Definition at line 252 of file JHashCollection.hh.
|
inlineinherited |
Erase elements in given range.
| __begin | begin position (included) |
| __end | end position (excluded) |
Definition at line 268 of file JHashCollection.hh.
|
inlineinherited |
Erase element with given value.
| value | value |
Definition at line 287 of file JHashCollection.hh.
|
inlineinherited |
Test whether given value is present.
| value | value |
Definition at line 309 of file JHashCollection.hh.
|
inlineinherited |
Get index of given value.
| value | value |
Definition at line 322 of file JHashCollection.hh.
|
privateinherited |
|
inlineinherited |
Get mapped value.
| key | key |
Definition at line 73 of file JMappableCollection.hh.
|
inlineinherited |
Get mapped value.
| key | key |
Definition at line 85 of file JMappableCollection.hh.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inlineinherited |
Put pair-wise element (key,value) into collection.
| key | key |
| value | value |
Definition at line 97 of file JMappableCollection.hh.
|
friend |
Write detector parameters to output stream.
| out | output stream |
| detector | detector |
Definition at line 601 of file JGeometry.hh.
|
inherited |
Function object for evaluation of element.
Definition at line 331 of file JHashCollection.hh.
|
protectedinherited |