ATLAS Offline Software
Loading...
Searching...
No Matches
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>
22namespace HepPDT { class ParticleData; }
23
25public:
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
36private:
39 class Imp;
40};
41
42#endif
static double particleMass(const int &pdgcode, bool &ok)
static double particleCharge(const int &pdgcode, bool &ok)
static QString particleName(const int &pdgcode, bool &ok)
static const HepPDT::ParticleData * particleData(const int &pdgcode)