BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
ParticleSet Class Reference

A very simple 'map' type histogram axis. More...

#include <ParticleSet.hh>

Collaboration diagram for ParticleSet:
Collaboration graph

Public Member Functions

void Fill (long int x, double weight=1)
 
std::map< longint, BinValue >::iterator begin ()
 
std::map< longint, BinValue >::iterator end ()
 
std::map< longint, BinValue >::const_iterator begin () const
 
std::map< longint, BinValue >::const_iterator end () const
 
bool empty () const
 
BinValueoperator[] (const long int key)
 
const BinValueoperator[] (const long int key) const
 

Data Fields

std::map< long int, BinValuedata
 
unsigned long nEntries
 

Detailed Description

A very simple 'map' type histogram axis.

A map of type T (e.g. integer for PDG ID) to an accumulated value which is a double. The sum of the weights squared is also accumulated for error estimation.

Author
Laurie Nevay

Definition at line 62 of file ParticleSet.hh.

Member Function Documentation

◆ begin() [1/2]

std::map< longint, BinValue >::iterator ParticleSet::begin ( )
inline

Definition at line 69 of file ParticleSet.hh.

◆ begin() [2/2]

std::map< longint, BinValue >::const_iterator ParticleSet::begin ( ) const
inline

Definition at line 71 of file ParticleSet.hh.

◆ empty()

bool ParticleSet::empty ( ) const
inline

Definition at line 73 of file ParticleSet.hh.

◆ end() [1/2]

std::map< longint, BinValue >::iterator ParticleSet::end ( )
inline

Definition at line 70 of file ParticleSet.hh.

◆ end() [2/2]

std::map< longint, BinValue >::const_iterator ParticleSet::end ( ) const
inline

Definition at line 72 of file ParticleSet.hh.

◆ Fill()

void ParticleSet::Fill ( long int  x,
double  weight = 1 
)
inline

Definition at line 65 of file ParticleSet.hh.

◆ operator[]() [1/2]

BinValue & ParticleSet::operator[] ( const long int  key)
inline

Definition at line 75 of file ParticleSet.hh.

◆ operator[]() [2/2]

const BinValue & ParticleSet::operator[] ( const long int  key) const
inline

Definition at line 76 of file ParticleSet.hh.

Field Documentation

◆ data

std::map<long int, BinValue> ParticleSet::data

Definition at line 78 of file ParticleSet.hh.

◆ nEntries

unsigned long ParticleSet::nEntries

Definition at line 79 of file ParticleSet.hh.


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