18 this->insert(this->
begin(), rhs.cbegin(), rhs.cend());
36 DetectedPhotons[
phot.first] +=
phot.second;
SimPhotonsLite & operator+=(const SimPhotonsLite &rhs)
Add all photons from rhs to this ones, at their original time.
SimPhotonsLite operator+(const SimPhotonsLite &rhs) const
SimPhotons & operator+=(const SimPhotons &rhs)
Add all photons from rhs to this ones; no sorting is applied.
std::map< int, int > DetectedPhotons
Number of photons detected at each given time: time tick -> photons.
Simulation objects for optical detectors.
General LArSoft Utilities.
Collection of photons which recorded on one channel.
Compact representation of photons on a channel.
SimPhotons operator+(const SimPhotons &rhs) const
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.