LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Compact representation of photons on a channel. More...
#include "SimPhotons.h"
Public Member Functions | |
SimPhotonsLite ()=default | |
Default constructor (do not use! it's for ROOT only). More... | |
SimPhotonsLite (int chan) | |
Constructor: associated to optical detector channel chan , and empty. More... | |
SimPhotonsLite & | operator+= (const SimPhotonsLite &rhs) |
Add all photons from rhs to this ones, at their original time. More... | |
SimPhotonsLite | operator+ (const SimPhotonsLite &rhs) const |
bool | operator== (const SimPhotonsLite &other) const |
Returns whether other is on the same channel (OpChannel ) as this. More... | |
Public Attributes | |
int | OpChannel |
Optical detector channel associated to this data. More... | |
std::map< int, int > | DetectedPhotons |
Number of photons detected at each given time: time tick -> photons. More... | |
Compact representation of photons on a channel.
sim::SimPhotons
Compared to sim::SimPhotons
, this object contains only the total count of photon arriving at a certain time on the channel. The time is discretized in ticks.
Definition at line 98 of file SimPhotons.h.
|
default |
Default constructor (do not use! it's for ROOT only).
|
inline |
Constructor: associated to optical detector channel chan
, and empty.
Definition at line 104 of file SimPhotons.h.
sim::SimPhotonsLite sim::SimPhotonsLite::operator+ | ( | const SimPhotonsLite & | rhs | ) | const |
Creates a new sim::SimPhotonsLite
with all photons from rhs
and this object.
Definition at line 42 of file SimPhotons.cxx.
sim::SimPhotonsLite & sim::SimPhotonsLite::operator+= | ( | const SimPhotonsLite & | rhs | ) |
Add all photons from rhs
to this ones, at their original time.
Definition at line 32 of file SimPhotons.cxx.
References DetectedPhotons.
|
inline |
Returns whether other
is on the same channel (OpChannel
) as this.
Definition at line 230 of file SimPhotons.h.
References OpChannel.
std::map<int, int> sim::SimPhotonsLite::DetectedPhotons |
Number of photons detected at each given time: time tick -> photons.
Definition at line 109 of file SimPhotons.h.
Referenced by sim::DumpSimPhotonsLite::DumpPhoton(), simfilter::FilterSimPhotonLiteTime::filter(), operator+=(), and larg4::LArG4::produce().
int sim::SimPhotonsLite::OpChannel |
Optical detector channel associated to this data.
Definition at line 106 of file SimPhotons.h.
Referenced by sim::DumpSimPhotonsLite::DumpPhoton(), simfilter::FilterSimPhotonLiteTime::filter(), operator==(), and larg4::LArG4::produce().