Fork me on GitHub

source: svn/trunk/interface/PdgParticle.h@ 445

Last change on this file since 445 was 443, checked in by Xavier Rouby, 15 years ago

new header in all files

File size: 3.4 KB
RevLine 
[386]1#ifndef _PDGPARTICLE_H_
2#define _PDGPARTICLE_H_
3
[443]4/***********************************************************************
5** **
6** /----------------------------------------------\ **
7** | Delphes, a framework for the fast simulation | **
8** | of a generic collider experiment | **
9** \------------- arXiv:0903.2225v1 ------------/ **
10** **
11** **
12** This package uses: **
13** ------------------ **
14** ROOT: Nucl. Inst. & Meth. in Phys. Res. A389 (1997) 81-86 **
15** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] **
16** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] **
17** FROG: [hep-ex/0901.2718v1] **
18** HepMC: Comput. Phys. Commun.134 (2001) 41 **
19** **
20** ------------------------------------------------------------------ **
21** **
22** Main authors: **
23** ------------- **
24** **
25** Severine Ovyn Xavier Rouby **
26** severine.ovyn@uclouvain.be xavier.rouby@cern **
27** **
28** Center for Particle Physics and Phenomenology (CP3) **
29** Universite catholique de Louvain (UCL) **
30** Louvain-la-Neuve, Belgium **
31** **
32** Copyright (C) 2008-2009, **
33** All rights reserved. **
34** **
35***********************************************************************/
36
[386]37#include <string>
38#include <map>
39
40class PdgParticle {
41 public:
[402]42 PdgParticle(): _pid(-999), _mass(0), _charge(0), _gamma_tot(0), _ctau(0), _name("Unknown") {};
43 PdgParticle(const int pid, const std::string& name, const float m, const float q, const float gamma, const float ctau);
[386]44 PdgParticle(const PdgParticle& p);
45 PdgParticle& operator=(const PdgParticle& p);
46 ~PdgParticle() {};
47 int pid() const {return _pid;};
48 float mass() const {return _mass;};
49 float charge() const {return _charge;};
50 float gamma_tot() const {return _gamma_tot;};
[402]51 double ctau() const {return _ctau;};
[386]52 std::string name() const {return _name;};
53
54 private:
55 int _pid;
56 float _mass; // GeV
57 float _charge; // in e+
[402]58 float _gamma_tot; // GeV
59 double _ctau; // in m
[386]60 std::string _name;
61};
62
63class PdgTable {
64 public:
65 PdgTable(){};
66 PdgTable(const PdgTable& table);
67 PdgTable& operator=(const PdgTable& table);
68 ~PdgTable(){};
69 void insert(const int pid, const PdgParticle &p);
70 void print() const;
71 PdgParticle operator[](const int pid) const;
72 private:
73 std::map<int, PdgParticle> _table;
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.