BOSS 7.1.2
BESIII Offline Software System
|
#include "TCanvas.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1F.h"
#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <cmath>
#include "curve.h"
Go to the source code of this file.
Macros | |
#define | mass_e 0.511e-3 |
#define | mass_mu 105.658e-3 |
#define | mass_pi 139.570e-3 |
#define | mass_k 493.677e-3 |
#define | mass_p 938.272e-3 |
#define | P_electron_min 421.97*mass_e |
#define | P_electron_max 3030*mass_e |
#define | P_electron_bin 80 |
#define | P_muon_min 10.98001*mass_mu |
#define | P_muon_max 115.6*mass_mu |
#define | P_muon_bin 20 |
#define | P_pion_min 0.8 |
#define | P_pion_max 0.805 |
#define | P_pion_bin 1 |
#define | P_kaon_min 0.63001*mass_k |
#define | P_kaon_max 0.74*mass_k |
#define | P_kaon_bin 5 |
#define | P_proton_min 0.26*mass_p |
#define | P_proton_max 0.63*mass_p |
#define | P_proton_bin 320 |
Functions | |
void | histgen (string, int, TObjArray &, vector< double > &) |
void | histps (string) |
bool | event_validate (double, double, double, int) |
double | get_hist_range (int, double, int) |
void | hist_update () |
const bool | ps_flag (false) |
int | main () |
Variables | |
const int | na = 10 |
const int | nc = 2 |
const double | electron_step = (double)(P_electron_max - P_electron_min) / (double)P_electron_bin |
const double | muon_step = (double)(P_muon_max - P_muon_min) / (double)P_muon_bin |
const double | pion_step = (double)(P_pion_max - P_pion_min) / (double)P_pion_bin |
const double | kaon_step = (double)(P_kaon_max - P_kaon_min) / (double)P_kaon_bin |
const double | proton_step = (double)(P_proton_max - P_proton_min) / (double)P_proton_bin |
const int | run_flag [5] = {0,0,1,0,0} |
#define mass_e 0.511e-3 |
Definition at line 17 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define mass_k 493.677e-3 |
Definition at line 20 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define mass_mu 105.658e-3 |
Definition at line 18 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define mass_p 938.272e-3 |
Definition at line 21 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define mass_pi 139.570e-3 |
Definition at line 19 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_electron_bin 80 |
Definition at line 25 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_electron_max 3030*mass_e |
Definition at line 24 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_electron_min 421.97*mass_e |
Definition at line 23 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_kaon_bin 5 |
Definition at line 37 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_kaon_max 0.74*mass_k |
Definition at line 36 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_kaon_min 0.63001*mass_k |
Definition at line 35 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_muon_bin 20 |
Definition at line 29 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_muon_max 115.6*mass_mu |
Definition at line 28 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_muon_min 10.98001*mass_mu |
Definition at line 27 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_pion_bin 1 |
Definition at line 33 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_pion_max 0.805 |
Definition at line 32 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_pion_min 0.8 |
Definition at line 31 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_proton_bin 320 |
Definition at line 41 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_proton_max 0.63*mass_p |
Definition at line 40 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
#define P_proton_min 0.26*mass_p |
Definition at line 39 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
bool event_validate | ( | double | bitrunc, |
double | ptrk, | ||
double | costheta, | ||
int | type ) |
Definition at line 348 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
double get_hist_range | ( | int | type, |
double | momentum, | ||
int | lowhigh ) |
Definition at line 391 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
void hist_update | ( | ) |
Definition at line 435 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by main().
void histgen | ( | string | filename, |
int | type, | ||
TObjArray & | hist, | ||
vector< double > & | bg ) |
Definition at line 112 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by main().
void histps | ( | string | name | ) |
Definition at line 325 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by main().
int main | ( | ) |
Definition at line 62 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
const double electron_step = (double)(P_electron_max - P_electron_min) / (double)P_electron_bin |
Definition at line 46 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const double kaon_step = (double)(P_kaon_max - P_kaon_min) / (double)P_kaon_bin |
Definition at line 49 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const double muon_step = (double)(P_muon_max - P_muon_min) / (double)P_muon_bin |
Definition at line 47 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const int na = 10 |
Definition at line 43 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const int nc = 2 |
Definition at line 44 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
const double pion_step = (double)(P_pion_max - P_pion_min) / (double)P_pion_bin |
Definition at line 48 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const double proton_step = (double)(P_proton_max - P_proton_min) / (double)P_proton_bin |
Definition at line 50 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().
const int run_flag[5] = {0,0,1,0,0} |
Definition at line 59 of file Mdc/DedxCalibAlg/DedxCalibAlg-00-02-01/share/template/Simulation/histgen/test.cxx.
Referenced by histgen().