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 13 of file ParticleFlux.h.

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

Definition at line 14 of file ParticleFlux.h.

14 {}

Member Function Documentation

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

Definition at line 3 of file ParticleFlux.cc.

References fluxVector_.

Referenced by setId().

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

Definition at line 5 of file ParticleFlux.cc.

References fluxVector_.

Referenced by setId().

5 { fluxVector_.clear(); }
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:36
unsigned int ParticleFlux::getComponents ( ) const
inline

Definition at line 26 of file ParticleFlux.h.

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

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

Definition at line 27 of file ParticleFlux.h.

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

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

Definition at line 25 of file ParticleFlux.h.

References detId_.

Referenced by SimG4FluxProducer::endOfEvent().

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

Definition at line 24 of file ParticleFlux.h.

References detName_.

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

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

Definition at line 29 of file ParticleFlux.h.

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

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

Definition at line 28 of file ParticleFlux.h.

References detName_.

28 { detName_ = nm; }
std::string detName_
Definition: ParticleFlux.h:34

Member Data Documentation

int ParticleFlux::detId_
private

Definition at line 35 of file ParticleFlux.h.

Referenced by getId(), and setId().

std::string ParticleFlux::detName_
private

Definition at line 34 of file ParticleFlux.h.

Referenced by getName(), and setName().

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

Definition at line 36 of file ParticleFlux.h.

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