#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <sys/stat.h>
#include <ctime>
#include <string>
#include "Rtypes.h"
#include "TMath.h"
#include "TVector3.h"
#include "TCut.h"
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "TProfile.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TTree.h"
#include "TLeaf.h"
#include "TFile.h"
#include "TChain.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TStyle.h"
#include "TROOT.h"
#include "TMinuit.h"
Go to the source code of this file.
|
| #define | TABL <<"\t"<< |
| |
| #define | BIG 1.79768e+308 |
| |
| #define | BIGINT 2147483647 |
| |
| #define | BIGSIZE 18446744073709551615 |
| |
| #define | M_PI 3.14159265358979323846 |
| |
| #define | NINT(a) ( int(floor((a)+0.5)) ) |
| |
| #define | SGN(a) ( (a)<0 ? -1 : ( (a)>0 ? +1 : 0 ) ) |
| |
| #define BIGINT 2147483647 |
| #define BIGSIZE 18446744073709551615 |
| #define M_PI 3.14159265358979323846 |
| #define NINT |
( |
|
a | ) |
( int(floor((a)+0.5)) ) |
| #define SGN |
( |
|
a | ) |
( (a)<0 ? -1 : ( (a)>0 ? +1 : 0 ) ) |
| double binerr |
( |
double const |
passed, |
|
|
double const |
tested |
|
) |
| |
|
inline |
Definition at line 100 of file includeROOT.h.
102 if ((passed<0) || (tested<=0) || (passed>tested)) {
103 std::cout <<
"Fatality in binerr(double,double): Invalid arguments ";
104 std::cout << passed <<
"/" << tested <<
std::endl;
111 }
else if ( passed==0.0 || passed==tested ) {
112 err = 0.421 /
pow(tested,0.94);
114 err = std::sqrt( passed*(tested-passed)/tested );
void err(const char *fmt,...)
QTextStream & endl(QTextStream &s)
| bool chargedPDG |
( |
int |
PDGcode | ) |
|
Definition at line 265 of file includeROOT.h.
267 if (PDGcode > 1000000000)
return true;
| long double CUBE |
( |
long double |
b | ) |
|
|
inline |
Definition at line 136 of file includeROOT.h.
139 if (retval==0 && !S_ISREG(buf.st_mode)) {
140 cout <<
"filehamna(string) : Not a regular file" <<
endl;
143 return (retval == -1);
QTextStream & endl(QTextStream &s)
| double massPDG |
( |
int |
PDGcode | ) |
|
Definition at line 203 of file includeROOT.h.
205 if (PDGcode > 1000000000) {
206 int A = (PDGcode -1000000000)/10;
208 return A * (39.948 / 40.0);
| double Qadd |
( |
double const |
x, |
|
|
double const |
y |
|
) |
| |
|
inline |
Definition at line 77 of file includeROOT.h.
std::enable_if_t< std::is_arithmetic_v< T >, T > hypot(T x, T y)
| double Qadd |
( |
double const |
x, |
|
|
double const |
y, |
|
|
double const |
z |
|
) |
| |
|
inline |
Definition at line 80 of file includeROOT.h.
81 double absX,absY,absZ;
82 absX = fabs(
x); absY = fabs(
y); absZ = fabs(
z);
double Qadd(double const x, double const y)
std::enable_if_t< std::is_arithmetic_v< T >, T > hypot(T x, T y)
| double Qsub |
( |
double const |
x, |
|
|
double const |
y |
|
) |
| |
|
inline |
Definition at line 87 of file includeROOT.h.
88 if (std::fabs(
x) < std::fabs(
y)) {
89 std::cout <<
"Fatality in Qsub(double,double): Invalid arguments";
93 long double x2 =
x*
x;
long double y2 =
y*
y;
94 return double(std::sqrt( x2 - y2 ));
QTextStream & endl(QTextStream &s)
| long double QUAD |
( |
long double |
b | ) |
|
|
inline |
| long double SQR |
( |
long double |
b | ) |
|
|
inline |
| char* stringEffErr |
( |
int |
num, |
|
|
int |
den |
|
) |
| |
Definition at line 123 of file includeROOT.h.
125 char*
temp =
new char[32];
126 double rat = 1000.0*double(
num)/double(den);
129 sprintf(temp,
"%5.2f %c%c %5.2f m%c%c", rat, 0xC2,0xB1, err, 0xC2,0xB0);
double binerr(double const passed, double const tested)
void err(const char *fmt,...)
| int const ArgonPDG = 1000180400 |
| int const CarbonPDG = 1000060120 |
| int const cascade0_PDG = 3322 |
| int const cascadeM_PDG = 3312 |
| int const DeuteronPDG = 1000010020 |
| int const electronPDG = 11 |
| int const HeliumPDG = 1000020040 |
| int const KshortPDG = 310 |
| int const lambdaPDG = 3122 |
| double const Mcasc0 = 1.31486 |
| double const McascNeg = 1.32171 |
| double const MchK = 0.493677 |
| double const Melectron = 0.00051100 |
| double const Meta = 0.547862 |
| double const MetaPR = 0.95778 |
| double const Mlambda = 1.115683 |
| double const Mmuon = 0.10565837 |
| double const MneuK = 0.497611 |
| double const Mneut = 0.93956541 |
| double const Mpi0 = 0.13497770 |
| double const MpiCH = 0.13957061 |
| double const Mprot = 0.93827208 |
| double const Mrho = 0.77526 |
| double const Msigma0 = 1.192642 |
| double const MsigmaNeg = 1.197449 |
| double const MsigmaPos = 1.18937 |
| int const neutronPDG = 2112 |
| int const protonPDG = 2212 |
| int const sigma0_PDG = 3212 |
| int const sigmaM_PDG = 3112 |
| int const sigmaP_PDG = 3222 |