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) {}

◆ ~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.

3 { fluxVector_.push_back(f); }

References f, and fluxVector_.

◆ clear()

void ParticleFlux::clear ( void  )

Definition at line 5 of file ParticleFlux.cc.

5 { fluxVector_.clear(); }

References fluxVector_.

◆ getComponents()

unsigned int ParticleFlux::getComponents ( ) const
inline

Definition at line 26 of file ParticleFlux.h.

26 { return fluxVector_.size(); }

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

◆ getFlux()

std::vector<ParticleFlux::flux> ParticleFlux::getFlux ( ) const &
inline

Definition at line 27 of file ParticleFlux.h.

27 { return fluxVector_; }

References fluxVector_.

Referenced by SimG4FluxProducer::endOfEvent().

◆ getId()

int ParticleFlux::getId ( void  ) const
inline

Definition at line 25 of file ParticleFlux.h.

25 { return detId_; }

References detId_.

Referenced by SimG4FluxProducer::endOfEvent().

◆ getName()

std::string const& ParticleFlux::getName ( void  ) const
inline

Definition at line 24 of file ParticleFlux.h.

24 { return detName_; }

References detName_.

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

◆ setId()

void ParticleFlux::setId ( const int  id)
inline

Definition at line 29 of file ParticleFlux.h.

29 { detId_ = id; }

References detId_, and triggerObjects_cff::id.

◆ setName()

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

Definition at line 28 of file ParticleFlux.h.

28 { detName_ = nm; }

References detName_.

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().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
ParticleFlux::detId_
int detId_
Definition: ParticleFlux.h:35
ParticleFlux::fluxVector_
std::vector< flux > fluxVector_
Definition: ParticleFlux.h:36
ParticleFlux::detName_
std::string detName_
Definition: ParticleFlux.h:34
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17