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

◆ ~ParticleFlux()

virtual ParticleFlux::~ParticleFlux ( )
inlinevirtual

Definition at line 14 of file ParticleFlux.h.

14 {}

Member Function Documentation

◆ addFlux()

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

Definition at line 3 of file ParticleFlux.cc.

References f, and fluxVector_.

3 { fluxVector_.push_back(f); }
double f[11][100]
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:36

◆ clear()

void ParticleFlux::clear ( void  )

Definition at line 5 of file ParticleFlux.cc.

References fluxVector_.

5 { fluxVector_.clear(); }
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:36

◆ getComponents()

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

◆ getFlux()

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

◆ getId()

int ParticleFlux::getId ( void  ) const
inline

Definition at line 25 of file ParticleFlux.h.

References detId_.

Referenced by SimG4FluxProducer::endOfEvent().

25 { return detId_; }

◆ getName()

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

◆ setId()

void ParticleFlux::setId ( const int  id)
inline

Definition at line 29 of file ParticleFlux.h.

References detId_, and triggerObjects_cff::id.

◆ setName()

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

◆ detId_

int ParticleFlux::detId_
private

Definition at line 35 of file ParticleFlux.h.

Referenced by getId(), and setId().

◆ detName_

std::string ParticleFlux::detName_
private

Definition at line 34 of file ParticleFlux.h.

Referenced by getName(), and setName().

◆ fluxVector_

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

Definition at line 36 of file ParticleFlux.h.

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