LArSoft  v08_32_01
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 76 of file SimPhotons.h.

Member Typedef Documentation

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

Definition at line 91 of file SimPhotons.h.

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

Definition at line 93 of file SimPhotons.h.

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

Definition at line 95 of file SimPhotons.h.

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

Definition at line 90 of file SimPhotons.h.

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

volume number for the OpDet

Definition at line 88 of file SimPhotons.h.

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

Definition at line 92 of file SimPhotons.h.

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

Definition at line 94 of file SimPhotons.h.

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

Definition at line 89 of file SimPhotons.h.

Constructor & Destructor Documentation

sim::SimPhotons::SimPhotons ( )

Definition at line 61 of file SimPhotons.cxx.

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

Definition at line 80 of file SimPhotons.h.

81  : fOpChannel(chan)
82  {}

Member Function Documentation

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

Definition at line 75 of file SimPhotons.cxx.

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

Definition at line 66 of file SimPhotons.cxx.

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

Definition at line 157 of file SimPhotons.h.

References OpChannel().

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

Definition at line 153 of file SimPhotons.h.

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

153 { fOpChannel = ch; }

Member Data Documentation

T std::vector< T >::elements

STL member.

int sim::SimPhotons::fOpChannel

Definition at line 84 of file SimPhotons.h.

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