LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "LArVoxelList.h"
Public Types | |
typedef std::map< LArVoxelID, LArVoxelData > | list_type |
typedef list_type::key_type | key_type |
typedef list_type::mapped_type | mapped_type |
typedef list_type::value_type | value_type |
typedef list_type::iterator | iterator |
typedef list_type::const_iterator | const_iterator |
typedef list_type::reverse_iterator | reverse_iterator |
typedef list_type::const_reverse_iterator | const_reverse_iterator |
typedef list_type::size_type | size_type |
typedef list_type::difference_type | difference_type |
typedef list_type::key_compare | key_compare |
typedef list_type::allocator_type | allocator_type |
Public Member Functions | |
LArVoxelList () | |
virtual | ~LArVoxelList () |
void | Add (const key_type &key, const double &energy) |
void | Add (const key_type &key, const double &energy, const int &id) |
void | Add (const LArVoxelList &) |
LArVoxelList & | operator+= (const LArVoxelList &other) |
const LArVoxelList | operator+ (const LArVoxelList &other) const |
LArVoxelList & | operator*= (const double &value) |
const LArVoxelList | operator* (const double &value) const |
void | Cut (const double &) |
Apply an energy cut to the voxels. More... | |
const key_type & | ID (const size_type) const |
double | Energy (const size_type) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size () const |
bool | empty () const |
void | swap (LArVoxelList &other) |
void | clear () |
iterator | find (const key_type &key) |
const_iterator | find (const key_type &key) const |
iterator | upper_bound (const key_type &key) |
const_iterator | upper_bound (const key_type &key) const |
iterator | lower_bound (const key_type &key) |
const_iterator | lower_bound (const key_type &key) const |
mapped_type & | operator[] (const key_type &key) |
const mapped_type & | operator[] (const key_type &key) const |
mapped_type & | at (const key_type &key) |
const mapped_type & | at (const key_type &key) const |
void | insert (const key_type &key, const mapped_type &value) |
size_type | erase (const key_type &key) |
Private Attributes | |
list_type | m_voxelList |
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy) More... | |
Friends | |
const LArVoxelList | operator* (const double &value, const LArVoxelList &list) |
std::ostream & | operator<< (std::ostream &output, const LArVoxelList &) |
Definition at line 68 of file LArVoxelList.h.
typedef list_type::allocator_type sim::LArVoxelList::allocator_type |
Definition at line 85 of file LArVoxelList.h.
typedef list_type::const_iterator sim::LArVoxelList::const_iterator |
Definition at line 79 of file LArVoxelList.h.
typedef list_type::const_reverse_iterator sim::LArVoxelList::const_reverse_iterator |
Definition at line 81 of file LArVoxelList.h.
typedef list_type::difference_type sim::LArVoxelList::difference_type |
Definition at line 83 of file LArVoxelList.h.
typedef list_type::iterator sim::LArVoxelList::iterator |
Definition at line 78 of file LArVoxelList.h.
typedef list_type::key_compare sim::LArVoxelList::key_compare |
Definition at line 84 of file LArVoxelList.h.
typedef list_type::key_type sim::LArVoxelList::key_type |
Definition at line 75 of file LArVoxelList.h.
typedef std::map<LArVoxelID, LArVoxelData> sim::LArVoxelList::list_type |
Some type definitions to make life easier, and to help "hide" the implementation details. (If you're not familiar with STL, you can ignore these definitions.)
Definition at line 74 of file LArVoxelList.h.
typedef list_type::mapped_type sim::LArVoxelList::mapped_type |
Definition at line 76 of file LArVoxelList.h.
typedef list_type::reverse_iterator sim::LArVoxelList::reverse_iterator |
Definition at line 80 of file LArVoxelList.h.
typedef list_type::size_type sim::LArVoxelList::size_type |
Definition at line 82 of file LArVoxelList.h.
typedef list_type::value_type sim::LArVoxelList::value_type |
Definition at line 77 of file LArVoxelList.h.
sim::LArVoxelList::LArVoxelList | ( | ) |
Definition at line 19 of file LArVoxelList.cxx.
Referenced by sim::operator*(), operator*(), and operator+().
|
virtual |
Definition at line 22 of file LArVoxelList.cxx.
|
inline |
Definition at line 94 of file LArVoxelList.h.
References m_voxelList.
Referenced by Add(), sim::SimListUtils::GetLArVoxelList(), and operator+=().
|
inline |
Definition at line 95 of file LArVoxelList.h.
References Add(), and m_voxelList.
void sim::LArVoxelList::Add | ( | const LArVoxelList & | other | ) |
Definition at line 25 of file LArVoxelList.cxx.
References m_voxelList.
|
inline |
Definition at line 155 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 156 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 131 of file LArVoxelList.h.
References m_voxelList.
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 132 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 143 of file LArVoxelList.h.
References m_voxelList.
void sim::LArVoxelList::Cut | ( | const double & | cut | ) |
Apply an energy cut to the voxels.
Definition at line 53 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
|
inline |
Definition at line 141 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 133 of file LArVoxelList.h.
References m_voxelList.
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 134 of file LArVoxelList.h.
References m_voxelList.
double sim::LArVoxelList::Energy | ( | const size_type | index | ) | const |
Definition at line 84 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
Definition at line 164 of file LArVoxelList.h.
References m_voxelList.
Definition at line 145 of file LArVoxelList.h.
References m_voxelList.
Referenced by sim::SimListUtils::GetLArVoxelList().
|
inline |
Definition at line 146 of file LArVoxelList.h.
References m_voxelList.
const LArVoxelList::key_type & sim::LArVoxelList::ID | ( | const size_type | index | ) | const |
Definition at line 76 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
|
inline |
Definition at line 162 of file LArVoxelList.h.
References m_voxelList, and fhicl::detail::atom::value().
Definition at line 149 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 150 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 111 of file LArVoxelList.h.
References Cut(), Energy(), ID(), LArVoxelList(), operator<<, and fhicl::detail::atom::value().
LArVoxelList & sim::LArVoxelList::operator*= | ( | const double & | value | ) |
Definition at line 34 of file LArVoxelList.cxx.
References m_voxelList, and fhicl::detail::atom::value().
Referenced by operator+().
|
inline |
Definition at line 105 of file LArVoxelList.h.
References LArVoxelList(), operator*=(), fhicl::other, and fhicl::detail::atom::value().
|
inline |
Definition at line 100 of file LArVoxelList.h.
References Add().
|
inline |
Definition at line 152 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 154 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 135 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 136 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 137 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 138 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 140 of file LArVoxelList.h.
References m_voxelList.
Referenced by evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 142 of file LArVoxelList.h.
References m_voxelList.
Definition at line 147 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 148 of file LArVoxelList.h.
References m_voxelList.
|
friend |
Just in case: define the result of "scalar * LArVoxelList" to be the same as "LArVoxelList * scalar".
Definition at line 46 of file LArVoxelList.cxx.
|
friend |
Definition at line 92 of file LArVoxelList.cxx.
Referenced by operator*().
|
private |
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy)
Definition at line 167 of file LArVoxelList.h.
Referenced by Add(), at(), begin(), clear(), Cut(), empty(), end(), Energy(), erase(), find(), ID(), insert(), lower_bound(), operator*=(), operator[](), rbegin(), rend(), size(), swap(), and upper_bound().