LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 |
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 84 of file LArVoxelList.h.
typedef list_type::const_iterator sim::LArVoxelList::const_iterator |
Definition at line 78 of file LArVoxelList.h.
typedef list_type::const_reverse_iterator sim::LArVoxelList::const_reverse_iterator |
Definition at line 80 of file LArVoxelList.h.
typedef list_type::difference_type sim::LArVoxelList::difference_type |
Definition at line 82 of file LArVoxelList.h.
typedef list_type::iterator sim::LArVoxelList::iterator |
Definition at line 77 of file LArVoxelList.h.
typedef list_type::key_compare sim::LArVoxelList::key_compare |
Definition at line 83 of file LArVoxelList.h.
typedef list_type::key_type sim::LArVoxelList::key_type |
Definition at line 74 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 73 of file LArVoxelList.h.
typedef list_type::mapped_type sim::LArVoxelList::mapped_type |
Definition at line 75 of file LArVoxelList.h.
typedef list_type::reverse_iterator sim::LArVoxelList::reverse_iterator |
Definition at line 79 of file LArVoxelList.h.
typedef list_type::size_type sim::LArVoxelList::size_type |
Definition at line 81 of file LArVoxelList.h.
typedef list_type::value_type sim::LArVoxelList::value_type |
Definition at line 76 of file LArVoxelList.h.
sim::LArVoxelList::LArVoxelList | ( | ) |
Definition at line 18 of file LArVoxelList.cxx.
Referenced by sim::operator*(), operator*(), and operator+().
|
virtual |
Definition at line 21 of file LArVoxelList.cxx.
|
inline |
Definition at line 93 of file LArVoxelList.h.
References m_voxelList.
Referenced by Add(), sim::SimListUtils::GetLArVoxelList(), and operator+=().
|
inline |
Definition at line 94 of file LArVoxelList.h.
References Add(), and m_voxelList.
void sim::LArVoxelList::Add | ( | const LArVoxelList & | other | ) |
Definition at line 24 of file LArVoxelList.cxx.
References m_voxelList.
|
inline |
Definition at line 154 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 155 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 130 of file LArVoxelList.h.
References m_voxelList.
Referenced by evdb_tool::DrawLArVoxel3D::Draw(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 131 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 142 of file LArVoxelList.h.
References m_voxelList.
void sim::LArVoxelList::Cut | ( | const double & | cut | ) |
Apply an energy cut to the voxels.
Definition at line 52 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
|
inline |
Definition at line 140 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 132 of file LArVoxelList.h.
References m_voxelList.
Referenced by evdb_tool::DrawLArVoxel3D::Draw(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 133 of file LArVoxelList.h.
References m_voxelList.
double sim::LArVoxelList::Energy | ( | const size_type | index | ) | const |
Definition at line 81 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
Definition at line 163 of file LArVoxelList.h.
References m_voxelList.
Definition at line 144 of file LArVoxelList.h.
References m_voxelList.
Referenced by sim::SimListUtils::GetLArVoxelList().
|
inline |
Definition at line 145 of file LArVoxelList.h.
References m_voxelList.
const LArVoxelList::key_type & sim::LArVoxelList::ID | ( | const size_type | index | ) | const |
Definition at line 73 of file LArVoxelList.cxx.
References m_voxelList.
Referenced by operator*().
|
inline |
Definition at line 161 of file LArVoxelList.h.
References m_voxelList, and value.
Definition at line 148 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 149 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 113 of file LArVoxelList.h.
References Cut(), Energy(), ID(), LArVoxelList(), operator<<, and value.
LArVoxelList & sim::LArVoxelList::operator*= | ( | const double & | value | ) |
Definition at line 33 of file LArVoxelList.cxx.
References m_voxelList, and value.
Referenced by operator+().
|
inline |
Definition at line 107 of file LArVoxelList.h.
References LArVoxelList(), operator*=(), fhicl::other, and value.
|
inline |
Definition at line 102 of file LArVoxelList.h.
References Add().
|
inline |
Definition at line 151 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 153 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 134 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 139 of file LArVoxelList.h.
References m_voxelList.
Referenced by evdb_tool::DrawLArVoxel3D::Draw(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and sim::operator<<().
|
inline |
Definition at line 141 of file LArVoxelList.h.
References m_voxelList.
Definition at line 146 of file LArVoxelList.h.
References m_voxelList.
|
inline |
Definition at line 147 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 45 of file LArVoxelList.cxx.
|
friend |
Definition at line 89 of file LArVoxelList.cxx.
Referenced by operator*().
|
private |
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy)
Definition at line 166 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().