Fork me on GitHub

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

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

property 'invisible()' added to PdgParticle

File size: 3.5 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:
[469]42 PdgParticle(): _pid(-999), _mass(0), _charge(0), _gamma_tot(0), _ctau(0), _name("Unknown"), _isInvisible(false) {};
43 PdgParticle(const long 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() {};
[469]47 long int pid() const {return _pid;};
[386]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;};
[469]52 bool invisible() const {return _isInvisible;};
[386]53 std::string name() const {return _name;};
54
55 private:
[469]56 long int _pid;
57 float _mass; // GeV
58 float _charge; // in e+
59 float _gamma_tot; // GeV
[402]60 double _ctau; // in m
[386]61 std::string _name;
[469]62 bool _isInvisible; // neutrino-like
[386]63};
64
65class PdgTable {
66 public:
67 PdgTable(){};
68 PdgTable(const PdgTable& table);
69 PdgTable& operator=(const PdgTable& table);
70 ~PdgTable(){};
[469]71 void insert(const long int pid, const PdgParticle &p);
[386]72 void print() const;
73 PdgParticle operator[](const int pid) const;
74 private:
75 std::map<int, PdgParticle> _table;
76};
77
78#endif
Note: See TracBrowser for help on using the repository browser.