Auxiliary class to handle particle name, codes and mass.  
 More...
#include <JPDB.hh>
 | 
| std::string  | name | 
|   | name of particle  
  | 
|   | 
| int  | pdg | 
|   | PDG code of particle.  
  | 
|   | 
| int  | geant | 
|   | GEANT code of particle.  
  | 
|   | 
| double  | mass | 
|   | mass of particle [GeV]  
  | 
|   | 
| int  | charge | 
|   | charge of particle [|e|/3]  
  | 
|   | 
Auxiliary class to handle particle name, codes and mass. 
Definition at line 37 of file JPDB.hh.
 
◆ JParticle() [1/2]
  
  
      
        
          | JAANET::JParticle::JParticle  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 41 of file JPDB.hh.
   42    {
   48    }
int geant
GEANT code of particle.
 
std::string name
name of particle
 
double mass
mass of particle [GeV]
 
int charge
charge of particle [|e|/3]
 
int pdg
PDG code of particle.
 
 
 
 
◆ JParticle() [2/2]
  
  
      
        
          | JAANET::JParticle::JParticle  | 
          ( | 
          const std::string & |           name,  | 
         
        
           | 
           | 
          const int |           pdg,  | 
         
        
           | 
           | 
          const int |           geant,  | 
         
        
           | 
           | 
          const double |           mass,  | 
         
        
           | 
           | 
          const int |           charge ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | name | name of particle  | 
    | pdg | PDG code of particle  | 
    | geant | GEANT code of particle  | 
    | mass | mass of particle  | 
    | charge | charge of particle  | 
  
   
Definition at line 60 of file JPDB.hh.
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JParticle & |           particle ) | 
         
       
   | 
  
friend   | 
  
 
Print particle. 
- Parameters
 - 
  
    | out | output stream  | 
    | particle | particle  | 
  
   
- Returns
 - output stream 
 
Definition at line 81 of file JPDB.hh.
   82    {
   85      
   86      return out << setw(32) << left  << particle.name  << "  "
   87                 << setw( 8) << right << particle.pdg   << "  "
   88                 << setw( 6) << right << particle.geant << "  "
   89                 << 
FIXED(16,10)      << particle.mass  << 
"  " 
   90                 << setw( 5) << right << particle.charge;
   91    }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for floating point format specification.
 
 
 
 
◆ name
      
        
          | std::string JAANET::JParticle::name | 
        
      
 
name of particle 
Definition at line 94 of file JPDB.hh.
 
 
◆ pdg
      
        
          | int JAANET::JParticle::pdg | 
        
      
 
PDG code of particle. 
Definition at line 95 of file JPDB.hh.
 
 
◆ geant
      
        
          | int JAANET::JParticle::geant | 
        
      
 
GEANT code of particle. 
Definition at line 96 of file JPDB.hh.
 
 
◆ mass
      
        
          | double JAANET::JParticle::mass | 
        
      
 
mass of particle [GeV] 
Definition at line 97 of file JPDB.hh.
 
 
◆ charge
      
        
          | int JAANET::JParticle::charge | 
        
      
 
charge of particle [|e|/3] 
Definition at line 98 of file JPDB.hh.
 
 
The documentation for this struct was generated from the following file: