JHUGen MELA  v2.4.1
Matrix element calculations as used in JHUGen. MELA is an important tool that was used for the Higgs boson discovery and for precise measurements of its structure and interactions. Please see the website https://spin.pha.jhu.edu/ and papers cited there for more details, and kindly cite those papers when using this code.
PDGHelpers.h
Go to the documentation of this file.
1 #ifndef PDGHELPERS_H
2 #define PDGHELPERS_H
3 
4 #include <iostream>
5 #include <cmath>
6 #include <vector>
7 // Mod_Parameters
8 #include "TModParameters.hh"
9 // TVar namespace
10 #include "TVar.hh"
11 
12 namespace PDGHelpers{
13  const double Wmass = 80.399;
14  const double Zmass = 91.1876;
15  const double Topmass = 173.2;
16  const double Bottommass = 4.75;
17  const double Zeromass = 0;
18  const double m_el = 0.00051100;
19  const double m_mu = 0.10566;
20  const double m_tau = 1.7768;
21  const double Wwidth = 2.085;
22  const double Zwidth = 2.4952;
23  const double Topwidth = 2.;
24 
26 
27  bool isALepton(const int id); // Charged leptons to be more specific
28  bool isANeutrino(const int id); // Neutral leptons
29  bool isAnUnknownJet(const int id); // id==0 particles
30  bool isAKnownJet(const int id); // q or g
31  bool isAJet(const int id); // q, g or unknown
32  bool isInvalid(const int id); // id=-9000
33  bool isAQuark(const int id); // |id|<=6
34  bool isALightQuark(const int id); // |id|<=5, so includes b quarks
35  bool isUpTypeQuark(const int id); // |id|==2, 4, 6
36  bool isDownTypeQuark(const int id); // |id|==1, 3, 5
37  bool isATopQuark(const int id); // |id|==6
38  bool isATauLepton(const int id); // |id|==15
39  bool isAGluon(const int id); // id==21
40  bool isAPhoton(const int id); // id==22
41  bool isAZBoson(const int id); // id==23
42  bool isAWBoson(const int id); // |id|==24
43  bool isAHiggs(const int id); // id==25
44 
45  void orderParticles(
46  const std::vector<int>& idlist,
47  const std::vector<bool(*)(const int)>& testlist,
48  std::vector<int>& ordering,
49  bool allowUnknown=false
50  );
52  const std::vector<int>& ids,
53  std::vector<std::vector<int>>& ordering,
54  bool* hasUnknownParticles=0
55  );
57  const std::vector<int>& ids,
58  std::vector<std::pair<int, int>>& ordering,
59  bool allowUnknown=false
60  );
61 
62  bool allEquivalent(std::vector<int> const& ids, bool allowUnknown=false);
63 
64 
66  int getCoupledVertex(const int idfirst, const int idsecond, int* hel=0, int* useAHcoupl=0);
67 
68  int convertPythiaStatus(int pSt);
69 }
70 
71 #endif
PDGHelpers::isALepton
bool isALepton(const int id)
Definition: PDGHelpers.cc:62
PDGHelpers::allEquivalent
bool allEquivalent(std::vector< int > const &ids, bool allowUnknown=false)
Definition: PDGHelpers.cc:208
PDGHelpers::HDecayMode
TVar::CandidateDecayMode HDecayMode
Definition: PDGHelpers.cc:11
PDGHelpers::Topwidth
const double Topwidth
Definition: PDGHelpers.h:23
TModParameters.hh
PDGHelpers::isInvalid
bool isInvalid(const int id)
Definition: PDGHelpers.cc:26
PDGHelpers
Definition: PDGHelpers.h:12
PDGHelpers::m_el
const double m_el
Definition: PDGHelpers.h:18
TVar::CandidateDecayMode
CandidateDecayMode
Definition: TVar.hh:37
PDGHelpers::isAHiggs
bool isAHiggs(const int id)
Definition: PDGHelpers.cc:84
PDGHelpers::isAZBoson
bool isAZBoson(const int id)
Definition: PDGHelpers.cc:76
PDGHelpers::isAnUnknownJet
bool isAnUnknownJet(const int id)
Definition: PDGHelpers.cc:22
PDGHelpers::isAQuark
bool isAQuark(const int id)
Definition: PDGHelpers.cc:35
PDGHelpers::isANeutrino
bool isANeutrino(const int id)
Definition: PDGHelpers.cc:67
PDGHelpers::isAPhoton
bool isAPhoton(const int id)
Definition: PDGHelpers.cc:72
PDGHelpers::isDownTypeQuark
bool isDownTypeQuark(const int id)
Definition: PDGHelpers.cc:45
PDGHelpers::isATopQuark
bool isATopQuark(const int id)
Definition: PDGHelpers.cc:50
PDGHelpers::getCoupledVertex
int getCoupledVertex(const int idfirst, const int idsecond, int *hel=0, int *useAHcoupl=0)
Definition: PDGHelpers.cc:235
PDGHelpers::isAWBoson
bool isAWBoson(const int id)
Definition: PDGHelpers.cc:80
PDGHelpers::isAKnownJet
bool isAKnownJet(const int id)
Definition: PDGHelpers.cc:14
PDGHelpers::setCandidateDecayMode
void setCandidateDecayMode(TVar::CandidateDecayMode mode)
Definition: PDGHelpers.cc:232
PDGHelpers::convertPythiaStatus
int convertPythiaStatus(int pSt)
Definition: PDGHelpers.cc:248
PDGHelpers::orderParticles
void orderParticles(const std::vector< int > &idlist, const std::vector< bool(*)(const int)> &testlist, std::vector< int > &ordering, bool allowUnknown=false)
Definition: PDGHelpers.cc:88
PDGHelpers::groupIdenticalParticles
void groupIdenticalParticles(const std::vector< int > &ids, std::vector< std::vector< int >> &ordering, bool *hasUnknownParticles=0)
Definition: PDGHelpers.cc:130
PDGHelpers::Zmass
const double Zmass
Definition: PDGHelpers.h:14
PDGHelpers::Zwidth
const double Zwidth
Definition: PDGHelpers.h:22
PDGHelpers::Wmass
const double Wmass
Definition: PDGHelpers.h:13
PDGHelpers::Wwidth
const double Wwidth
Definition: PDGHelpers.h:21
PDGHelpers::pairIdenticalParticles
void pairIdenticalParticles(const std::vector< int > &ids, std::vector< std::pair< int, int >> &ordering, bool allowUnknown=false)
Definition: PDGHelpers.cc:159
PDGHelpers::Bottommass
const double Bottommass
Definition: PDGHelpers.h:16
PDGHelpers::isAGluon
bool isAGluon(const int id)
Definition: PDGHelpers.cc:58
TVar.hh
PDGHelpers::m_mu
const double m_mu
Definition: PDGHelpers.h:19
PDGHelpers::isATauLepton
bool isATauLepton(const int id)
Definition: PDGHelpers.cc:54
PDGHelpers::Zeromass
const double Zeromass
Definition: PDGHelpers.h:17
PDGHelpers::Topmass
const double Topmass
Definition: PDGHelpers.h:15
PDGHelpers::isUpTypeQuark
bool isUpTypeQuark(const int id)
Definition: PDGHelpers.cc:40
PDGHelpers::isAJet
bool isAJet(const int id)
Definition: PDGHelpers.cc:18
PDGHelpers::isALightQuark
bool isALightQuark(const int id)
Definition: PDGHelpers.cc:30
PDGHelpers::m_tau
const double m_tau
Definition: PDGHelpers.h:20