ATLAS Offline Software
VP1ParticleData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1ParticleData //
9 // //
10 // Description: Convenient and efficient access to particle //
11 // data. //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: March 2008 //
15 // //
17 
18 #ifndef VP1PARTICLEDATA_H
19 #define VP1PARTICLEDATA_H
20 
21 #include <QString>
22 namespace HepPDT { class ParticleData; }
23 
25 public:
26 
27  //Fast and convenient access methods for often accessed data:
28 
29  static double particleMass( const int& pdgcode, bool& ok );//ok == false indicates problems
30  static double particleCharge( const int& pdgcode, bool& ok );//ok == false indicates problems
31  static QString particleName( const int& pdgcode, bool& ok );//ok == false indicates problems
32 
33  //Full information:
34  static const HepPDT::ParticleData * particleData( const int& pdgcode );//Returns 0 in case of problems
35 
36 private:
39  class Imp;
40 };
41 
42 #endif
VP1ParticleData
Definition: VP1ParticleData.h:24
VP1ParticleData::VP1ParticleData
VP1ParticleData()
Definition: VP1ParticleData.h:37
VP1ParticleData::particleCharge
static double particleCharge(const int &pdgcode, bool &ok)
Definition: VP1ParticleData.cxx:103
HepPDT
Definition: BeamHaloGenerator.h:13
VP1ParticleData::~VP1ParticleData
~VP1ParticleData()
Definition: VP1ParticleData.h:38
VP1ParticleData::particleMass
static double particleMass(const int &pdgcode, bool &ok)
Definition: VP1ParticleData.cxx:83
VP1ParticleData::particleData
static const HepPDT::ParticleData * particleData(const int &pdgcode)
Definition: VP1ParticleData.cxx:46
VP1ParticleData::particleName
static QString particleName(const int &pdgcode, bool &ok)
Definition: VP1ParticleData.cxx:127