59 typedef std::vector< key_type > keyList_type;
64 if ( (*i).second.Energy() < cut ) {
65 keyList.push_back( (*i).first );
79 std::advance(i,index);
87 std::advance(i,index);
88 return (*i).second.Energy();
96 int numberOfDigits = (int) std::log10( (
double) numberOfVoxels ) + 1;
99 output.width( numberOfDigits );
100 output <<
"#" <<
": < ID, energy >" << std::endl;
105 output.width( numberOfDigits );
106 output << nVoxel <<
": " 107 <<
"< " << (*voxel).first
108 <<
", " << (*voxel).second
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)
std::string value(boost::any const &)
list_type::key_type key_type
void Add(const key_type &key, const double &energy)
const key_type & ID(const size_type) const