Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JAANET::JParticle Struct Reference

Auxiliary class to handle particle name, codes and mass. More...

#include <JPDB.hh>

Public Member Functions

 JParticle ()
 Default constructor. More...
 
 JParticle (const std::string &name, const int pdg, const int geant, const double mass)
 Constructor. More...
 

Public Attributes

std::string name
 name of particle More...
 
int pdg
 PDG code of particle. More...
 
int geant
 GEANT code of particle. More...
 
double mass
 mass of particle [GeV] More...
 

Friends

std::ostream & operator<< (std::ostream &out, const JParticle &particle)
 Print particle. More...
 

Detailed Description

Auxiliary class to handle particle name, codes and mass.

Definition at line 32 of file JPDB.hh.

Constructor & Destructor Documentation

JAANET::JParticle::JParticle ( )
inline

Default constructor.

Definition at line 36 of file JPDB.hh.

37  {
38  this->name = "";
39  this->pdg = 0;
40  this->geant = 0;
41  this->mass = 0.0;
42  }
std::string name
name of particle
Definition: JPDB.hh:84
double mass
mass of particle [GeV]
Definition: JPDB.hh:87
int geant
GEANT code of particle.
Definition: JPDB.hh:86
int pdg
PDG code of particle.
Definition: JPDB.hh:85
JAANET::JParticle::JParticle ( const std::string &  name,
const int  pdg,
const int  geant,
const double  mass 
)
inline

Constructor.

Parameters
namename of particle
pdgPDG code of particle
geantGEANT code of particle
massmass of particle

Definition at line 53 of file JPDB.hh.

57  {
58  this->name = name;
59  this->pdg = pdg;
60  this->geant = geant;
61  this->mass = mass;
62  }
std::string name
name of particle
Definition: JPDB.hh:84
double mass
mass of particle [GeV]
Definition: JPDB.hh:87
int geant
GEANT code of particle.
Definition: JPDB.hh:86
int pdg
PDG code of particle.
Definition: JPDB.hh:85

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JParticle particle 
)
friend

Print particle.

Parameters
outoutput stream
particleparticle
Returns
output stream

Definition at line 72 of file JPDB.hh.

73  {
74  using namespace std;
75  using namespace JPP;
76 
77  return out << setw(32) << left << particle.name << " "
78  << setw( 6) << right << particle.pdg << " "
79  << setw( 6) << right << particle.geant << " "
80  << FIXED(12,10) << particle.mass;
81  }
std::string name
name of particle
Definition: JPDB.hh:84
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:446
double mass
mass of particle [GeV]
Definition: JPDB.hh:87
int geant
GEANT code of particle.
Definition: JPDB.hh:86
int pdg
PDG code of particle.
Definition: JPDB.hh:85

Member Data Documentation

std::string JAANET::JParticle::name

name of particle

Definition at line 84 of file JPDB.hh.

int JAANET::JParticle::pdg

PDG code of particle.

Definition at line 85 of file JPDB.hh.

int JAANET::JParticle::geant

GEANT code of particle.

Definition at line 86 of file JPDB.hh.

double JAANET::JParticle::mass

mass of particle [GeV]

Definition at line 87 of file JPDB.hh.


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