58 typedef std::vector< key_type > keyList_type;
63 if ( (*i).second.Energy() < cut ) {
64 keyList.push_back( (*i).first );
69 for ( keyList_type::const_iterator i = keyList.begin(); i != keyList.end(); ++i ){
78 std::advance(i,index);
86 std::advance(i,index);
87 return (*i).second.Energy();
95 int numberOfDigits = (int) std::log10( (
double) numberOfVoxels ) + 1;
98 output.width( numberOfDigits );
99 output <<
"#" <<
": < ID, energy >" << std::endl;
104 output.width( numberOfDigits );
105 output << nVoxel <<
": "
106 <<
"< " << (*voxel).first
107 <<
", " << (*voxel).second
Container of LAr voxel information.
const LArVoxelData operator*(const double &value, const LArVoxelData &data)
list_type m_voxelList
A sorted list of <LArVoxelID,double> pairs = (voxel ID, energy)
list_type::const_iterator const_iterator
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
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
void Add(const key_type &key, const double &energy)
const key_type & ID(const size_type) const
std::ostream & operator<<(std::ostream &output, const LArVoxelData &data)