CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
ParticleFlux Class Reference

#include <ParticleFlux.h>

Classes

struct  flux
 

Public Member Functions

void addFlux (const ParticleFlux::flux f)
 
void clear ()
 
unsigned int getComponents () const
 
std::vector< ParticleFlux::fluxgetFlux () const &
 
int getId () const
 
std::string const & getName () const
 
 ParticleFlux (std::string name="", int id=0)
 
void setId (const int id)
 
void setName (const std::string nm)
 
virtual ~ParticleFlux ()
 

Private Attributes

int detId_
 
std::string detName_
 
std::vector< fluxfluxVector_
 

Detailed Description

Definition at line 11 of file ParticleFlux.h.

Constructor & Destructor Documentation

ParticleFlux::ParticleFlux ( std::string  name = "",
int  id = 0 
)
inline

Definition at line 15 of file ParticleFlux.h.

15 : detName_(name), detId_(id) {}
std::string detName_
Definition: ParticleFlux.h:37
virtual ParticleFlux::~ParticleFlux ( )
inlinevirtual

Definition at line 16 of file ParticleFlux.h.

16 {}

Member Function Documentation

void ParticleFlux::addFlux ( const ParticleFlux::flux  f)

Definition at line 3 of file ParticleFlux.cc.

References fluxVector_.

Referenced by setId().

3  {
4  fluxVector_.push_back(f);
5 }
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:39
void ParticleFlux::clear ( void  )

Definition at line 7 of file ParticleFlux.cc.

References fluxVector_.

Referenced by setId().

7  {
8  fluxVector_.clear();
9 }
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:39
unsigned int ParticleFlux::getComponents ( ) const
inline

Definition at line 28 of file ParticleFlux.h.

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

28 {return fluxVector_.size();}
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:39
std::vector<ParticleFlux::flux> ParticleFlux::getFlux ( ) const
inline

Definition at line 29 of file ParticleFlux.h.

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

29 {return fluxVector_;}
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:39
int ParticleFlux::getId ( void  ) const
inline

Definition at line 27 of file ParticleFlux.h.

References detId_.

Referenced by SimG4FluxProducer::endOfEvent().

27 {return detId_;}
std::string const& ParticleFlux::getName ( void  ) const
inline

Definition at line 26 of file ParticleFlux.h.

References detName_.

Referenced by plotting.Plot::draw(), and SimG4FluxProducer::endOfEvent().

26 {return detName_;}
std::string detName_
Definition: ParticleFlux.h:37
void ParticleFlux::setId ( const int  id)
inline

Definition at line 31 of file ParticleFlux.h.

References addFlux(), clear(), detId_, f, and triggerObjects_cff::id.

void ParticleFlux::setName ( const std::string  nm)
inline

Definition at line 30 of file ParticleFlux.h.

References detName_.

30 {detName_ = nm;}
std::string detName_
Definition: ParticleFlux.h:37

Member Data Documentation

int ParticleFlux::detId_
private

Definition at line 38 of file ParticleFlux.h.

Referenced by getId(), and setId().

std::string ParticleFlux::detName_
private

Definition at line 37 of file ParticleFlux.h.

Referenced by getName(), and setName().

std::vector<flux> ParticleFlux::fluxVector_
private

Definition at line 39 of file ParticleFlux.h.

Referenced by addFlux(), clear(), getComponents(), and getFlux().