LArSoft  v06_80_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 56 of file SimPhotons.h.

Constructor & Destructor Documentation

sim::SimPhotonsLite::SimPhotonsLite ( )

Definition at line 56 of file SimPhotons.cxx.

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

Definition at line 60 of file SimPhotons.h.

61  : OpChannel(chan)
62  {}

Member Function Documentation

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

Definition at line 92 of file SimPhotons.cxx.

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

Definition at line 82 of file SimPhotons.cxx.

References DetectedPhotons.

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

Definition at line 167 of file SimPhotons.h.

References OpChannel.

167 { 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: