LArSoft  v06_68_00
Liquid Argon Software toolkit -
sim::SimPhotons Class Reference

#include "SimPhotons.h"

Inheritance diagram for sim::SimPhotons:

Public Types

typedef std::vector< OnePhotonlist_type
 volume number for the OpDet More...
typedef list_type::value_type value_type
typedef list_type::iterator iterator
typedef list_type::const_iterator const_iterator
typedef list_type::reverse_iterator reverse_iterator
typedef list_type::const_reverse_iterator const_reverse_iterator
typedef list_type::size_type size_type
typedef list_type::difference_type difference_type

Public Member Functions

 SimPhotons ()
 SimPhotons (int chan)
SimPhotonsoperator+= (const SimPhotons &rhs)
const SimPhotons operator+ (const SimPhotons &rhs) const
bool operator== (const SimPhotons &other) const
int OpChannel () const
void SetChannel (int ch)

Public Attributes

int fOpChannel
 STL member. More...

Detailed Description

Definition at line 77 of file SimPhotons.h.

Member Typedef Documentation

typedef list_type::const_iterator sim::SimPhotons::const_iterator

Definition at line 93 of file SimPhotons.h.

typedef list_type::const_reverse_iterator sim::SimPhotons::const_reverse_iterator

Definition at line 95 of file SimPhotons.h.

typedef list_type::difference_type sim::SimPhotons::difference_type

Definition at line 97 of file SimPhotons.h.

typedef list_type::iterator sim::SimPhotons::iterator

Definition at line 92 of file SimPhotons.h.

typedef std::vector<OnePhoton> sim::SimPhotons::list_type

volume number for the OpDet

Definition at line 90 of file SimPhotons.h.

typedef list_type::reverse_iterator sim::SimPhotons::reverse_iterator

Definition at line 94 of file SimPhotons.h.

typedef list_type::size_type sim::SimPhotons::size_type

Definition at line 96 of file SimPhotons.h.

typedef list_type::value_type sim::SimPhotons::value_type

Definition at line 91 of file SimPhotons.h.

Constructor & Destructor Documentation

sim::SimPhotons::SimPhotons ( )

Definition at line 62 of file SimPhotons.cxx.

63  {
64  }
sim::SimPhotons::SimPhotons ( int  chan)

Definition at line 81 of file SimPhotons.h.

82  : fOpChannel(chan)
83  {}

Member Function Documentation

int sim::SimPhotons::OpChannel ( ) const
const SimPhotons sim::SimPhotons::operator+ ( const SimPhotons rhs) const

Definition at line 76 of file SimPhotons.cxx.

77  {
78  return SimPhotons(*this)+=rhs;
79  }
SimPhotons & sim::SimPhotons::operator+= ( const SimPhotons rhs)

Definition at line 67 of file SimPhotons.cxx.

68  {
69  for(SimPhotons::const_iterator it = rhs.begin(); it!=rhs.end(); it++){
70  push_back(*it);
71  }
72  return *this;
73  }
list_type::const_iterator const_iterator
Definition: SimPhotons.h:93
bool sim::SimPhotons::operator== ( const SimPhotons other) const

Definition at line 166 of file SimPhotons.h.

References OpChannel().

166 { return fOpChannel == other.OpChannel(); }
void sim::SimPhotons::SetChannel ( int  ch)

Definition at line 162 of file SimPhotons.h.

Referenced by sim::SimListUtils::GetSimPhotonsCollection().

162 { fOpChannel = ch; }

Member Data Documentation

T std::vector< T >::elements

STL member.

int sim::SimPhotons::fOpChannel

Definition at line 85 of file SimPhotons.h.

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