Jpp  17.2.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 37 of file JPDB.hh.

Constructor & Destructor Documentation

JAANET::JParticle::JParticle ( )
inline

Default constructor.

Definition at line 41 of file JPDB.hh.

42  {
43  this->name = "";
44  this->pdg = 0;
45  this->geant = 0;
46  this->mass = 0.0;
47  }
std::string name
name of particle
Definition: JPDB.hh:89
double mass
mass of particle [GeV]
Definition: JPDB.hh:92
int geant
GEANT code of particle.
Definition: JPDB.hh:91
int pdg
PDG code of particle.
Definition: JPDB.hh:90
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 58 of file JPDB.hh.

62  {
63  this->name = name;
64  this->pdg = pdg;
65  this->geant = geant;
66  this->mass = mass;
67  }
std::string name
name of particle
Definition: JPDB.hh:89
double mass
mass of particle [GeV]
Definition: JPDB.hh:92
int geant
GEANT code of particle.
Definition: JPDB.hh:91
int pdg
PDG code of particle.
Definition: JPDB.hh:90

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 77 of file JPDB.hh.

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

Member Data Documentation

std::string JAANET::JParticle::name

name of particle

Definition at line 89 of file JPDB.hh.

int JAANET::JParticle::pdg

PDG code of particle.

Definition at line 90 of file JPDB.hh.

int JAANET::JParticle::geant

GEANT code of particle.

Definition at line 91 of file JPDB.hh.

double JAANET::JParticle::mass

mass of particle [GeV]

Definition at line 92 of file JPDB.hh.


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