-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpdg.h
57 lines (51 loc) · 1.42 KB
/
pdg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef PDG_H
#define PDG_H
// -*- C++ -*-
//
// Package: PhysicsTools
/**
PhysicsTools/TheNtupleMaker/src/pdg.cc
Description: A standalone implementation of some simple gen-particle utilities
Implementation:
As simple as possible
*/
//
// Original Author: Harrison B. Prosper
// Created: Fri Apr 04 2008
// $Id: pdg.h,v 1.1.1.1 2011/05/04 13:04:28 prosper Exp $
//
//-----------------------------------------------------------------------------
#include <iostream>
#include <vector>
#include <string>
//-----------------------------------------------------------------------------
///
struct pdg
{
///
static
std::string particleName(int pdgid);
///
static
void printTree(std::ostream& stream,
int index,
int nhep,
std::vector<int>& pdgid,
std::vector<int>& status,
std::vector<double>& pt,
std::vector<double>& eta,
std::vector<double>& phi,
std::vector<double>& mass,
std::vector<int>& firstDaughter,
std::vector<int>& lastDaughter,
int printlevel=1,
int maxdepth=10,
int depth=0);
///
static
double deltaPhi(double phi1, double phi2);
///
static
double deltaR(double eta1, double phi1, double eta2, double phi2);
};
#endif