58 typedef std::vector<key_type> keyList_type;
63 if ((*i).second.Energy() < cut) { keyList.push_back((*i).first); }
76 std::advance(i, index);
84 std::advance(i, index);
85 return (*i).second.Energy();
93 int numberOfDigits = (int)std::log10((
double)numberOfVoxels) + 1;
96 output.width(numberOfDigits);
98 <<
": < ID, energy >" << std::endl;
104 output.width(numberOfDigits);
105 output << nVoxel <<
": " 106 <<
"< " << (*voxel).first <<
", " << (*voxel).second <<
" >\n";
const LArVoxelList operator*(const double &value) const
Container of LAr voxel information.
list_type m_voxelList
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy)
list_type::const_iterator const_iterator
friend std::ostream & operator<<(std::ostream &output, const LArVoxelList &)
double Energy(const size_type) const
void Cut(const double &)
Apply an energy cut to the voxels.
list_type::iterator iterator
list_type::size_type size_type
LArVoxelList & operator*=(const double &value)
list_type::key_type key_type
void Add(const key_type &key, const double &energy)
const key_type & ID(const size_type) const