58 #ifndef LARVOXELLIST_H 59 #define LARVOXELLIST_H 73 typedef std::map<LArVoxelID, LArVoxelData>
list_type;
94 void Add(
const key_type& key,
const double&
energy,
const int&
id)
120 void Cut(
const double&);
122 const key_type&
ID(
const size_type)
const;
123 double Energy(
const size_type)
const;
155 const mapped_type&
at(
const key_type& key)
const {
return m_voxelList.at(key); }
171 #endif // LARVOXELLIST_H
const LArVoxelList operator*(const double &value) const
const mapped_type & at(const key_type &key) const
list_type::mapped_type mapped_type
void insert(const key_type &key, const mapped_type &value)
list_type::reverse_iterator reverse_iterator
reverse_iterator rbegin()
void swap(LArVoxelList &other)
list_type::key_compare key_compare
list_type m_voxelList
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy)
const mapped_type & operator[](const key_type &key) const
std::map< LArVoxelID, LArVoxelData > list_type
LArVoxelList & operator+=(const LArVoxelList &other)
void Add(const key_type &key, const double &energy, const int &id)
list_type::const_iterator const_iterator
friend std::ostream & operator<<(std::ostream &output, const LArVoxelList &)
double Energy(const size_type) const
list_type::value_type value_type
Encapsulates the information we want store for a voxel.
list_type::const_reverse_iterator const_reverse_iterator
iterator find(const key_type &key)
list_type::difference_type difference_type
void Cut(const double &)
Apply an energy cut to the voxels.
list_type::iterator iterator
iterator upper_bound(const key_type &key)
const_iterator upper_bound(const key_type &key) const
const_iterator begin() const
list_type::size_type size_type
LArVoxelList & operator*=(const double &value)
const_iterator find(const key_type &key) const
const_iterator end() const
list_type::key_type key_type
const_reverse_iterator rbegin() const
const_iterator lower_bound(const key_type &key) const
size_type erase(const key_type &key)
void Add(const key_type &key, const double &energy)
iterator lower_bound(const key_type &key)
mapped_type & at(const key_type &key)
const key_type & ID(const size_type) const
mapped_type & operator[](const key_type &key)
Unique identifier for a given LAr voxel.
const_reverse_iterator rend() const
list_type::allocator_type allocator_type
const LArVoxelList operator+(const LArVoxelList &other) const