LArSoft  v08_16_00
Liquid Argon Software toolkit - http://larsoft.org/
sim::SimPhotonsLite Class Reference

#include "SimPhotons.h"

Public Member Functions

 SimPhotonsLite ()
 
 SimPhotonsLite (int chan)
 
SimPhotonsLiteoperator+= (const SimPhotonsLite &rhs)
 
const SimPhotonsLite operator+ (const SimPhotonsLite &rhs) const
 
bool operator== (const SimPhotonsLite &other) const
 

Public Attributes

int OpChannel
 
std::map< int, int > DetectedPhotons
 

Detailed Description

Definition at line 55 of file SimPhotons.h.

Constructor & Destructor Documentation

sim::SimPhotonsLite::SimPhotonsLite ( )

Definition at line 55 of file SimPhotons.cxx.

56  {
57  }
sim::SimPhotonsLite::SimPhotonsLite ( int  chan)
inline

Definition at line 59 of file SimPhotons.h.

60  : OpChannel(chan)
61  {}

Member Function Documentation

const SimPhotonsLite sim::SimPhotonsLite::operator+ ( const SimPhotonsLite rhs) const

Definition at line 91 of file SimPhotons.cxx.

92  {
93  return SimPhotonsLite(*this)+=rhs;
94  }
SimPhotonsLite & sim::SimPhotonsLite::operator+= ( const SimPhotonsLite rhs)

Definition at line 81 of file SimPhotons.cxx.

References DetectedPhotons.

82  {
83 
84  for(auto const& phot : rhs.DetectedPhotons)
85  this->DetectedPhotons[phot.first] += phot.second;
86 
87  return *this;
88  }
std::map< int, int > DetectedPhotons
Definition: SimPhotons.h:64
General LArSoft Utilities.
bool sim::SimPhotonsLite::operator== ( const SimPhotonsLite other) const
inline

Definition at line 158 of file SimPhotons.h.

References OpChannel.

158 { return OpChannel == other.OpChannel; }

Member Data Documentation

std::map<int, int> sim::SimPhotonsLite::DetectedPhotons
int sim::SimPhotonsLite::OpChannel

The documentation for this class was generated from the following files: