|
FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
| gStyle | SetOptFit (1) |
| gROOT | LoadMacro ("$VMCWORKDIR/gconfig/basiclibs.C") |
| basiclibs () | |
| gSystem | Load ("libGeoBase") |
| gSystem | Load ("libParBase") |
| gSystem | Load ("libBase") |
| gSystem | Load ("libField") |
| gSystem | Load ("libPndData") |
| gSystem | Load ("libGeane") |
| gSystem | Load ("libPlane") |
| gSystem | Load ("libGeaneEx") |
| gSystem | Load ("libTrkBase") |
| simtree | SetBranchAddress ("GeaneTrackFinal",&fTrackParFinal) |
| simtree | SetBranchAddress ("GeaneTrackPar",&fTrackParGeane) |
| cout<< Nevents<< endl;for(Int_t i=0;i< Nevents;i++){fTrackParGeane-> | Delete () |
| simtree | GetEntry (i) |
| for (Int_t k=0;k< fTrackParGeane->GetEntriesFast();k++) | |
| c | Divide (5, 2) |
| c | cd (1) |
| h1 | Draw () |
| h1 | Fit ("gaus") |
| c | cd (2) |
| c | cd (3) |
| c | cd (4) |
| c | cd (5) |
| c | cd (6) |
| c | cd (7) |
| c | cd (8) |
| c | cd (9) |
| c | cd (10) |
| c | cd () |
Variables | |
| TFile * | f =new TFile("ex1g.root") |
| TTree * | simtree =f->Get("pndsim") |
| fTrackParGeane = new TClonesArray("FairTrackParH") | |
| fTrackParIni = new TClonesArray("FairTrackParH") | |
| fTrackParFinal = new TClonesArray("FairTrackParH") | |
| TH1F * | h1 =new TH1F("h1","Phi ",100,-10.,10.) |
| TH1F * | h2 =new TH1F("h2","Lambda",100,-10,10) |
| TH1F * | h3 =new TH1F("h3","Qp",100,-10.,10.) |
| TH1F * | h4 =new TH1F("h4","Y",100,-10,10) |
| TH1F * | h5 =new TH1F("h5","Z",100,-10,10) |
| TH1F * | h6 =new TH1F("h6","Px",100, -10,10) |
| TH1F * | h7 =new TH1F("h7","Py",100,-10,10) |
| TH1F * | h8 =new TH1F("h8","Pz",100,-10,10) |
| TH1F * | h9 =new TH1F("h9","Ysc",100,-10,10) |
| TH1F * | h10 =new TH1F("h10","Zsc",100,-10,10) |
| FairTrackParH * | fTrkF |
| FairTrackParH * | fTrkG |
| Int_t | Nevents = simtree->GetEntriesFast() |
| TCanvas * | c =new TCanvas("c","c",900,600) |
| basiclibs | ( | ) |
| c cd | ( | 1 | ) |
| c cd | ( | 2 | ) |
| c cd | ( | 3 | ) |
| c cd | ( | 4 | ) |
| c cd | ( | 5 | ) |
| c cd | ( | 6 | ) |
| c cd | ( | 7 | ) |
| c cd | ( | 8 | ) |
| c cd | ( | 9 | ) |
| c cd | ( | 10 | ) |
| c cd | ( | ) |
| fTrackParFinal Delete | ( | ) |
| c Divide | ( | 5 | , |
| 2 | |||
| ) |
| h1 Draw | ( | ) |
Definition at line 64 of file NHitsPerEvent.C.
| h1 Fit | ( | "gaus" | ) |
| for | ( | Int_t | k = 0; k<fTrackParGeane->GetEntriesFast(); k++ | ) |
| gSystem Load | ( | "libGeoBase" | ) |
| gSystem Load | ( | "libParBase" | ) |
| gSystem Load | ( | "libBase" | ) |
| gSystem Load | ( | "libField" | ) |
| gSystem Load | ( | "libPndData" | ) |
| gSystem Load | ( | "libGeane" | ) |
| gSystem Load | ( | "libPlane" | ) |
| gSystem Load | ( | "libGeaneEx" | ) |
| gSystem Load | ( | "libTrkBase" | ) |
| gROOT LoadMacro | ( | "$VMCWORKDIR/gconfig/basiclibs.C" | ) |
| simtree SetBranchAddress | ( | "GeaneTrackFinal" | , |
| & | fTrackParFinal | ||
| ) |
| simtree SetBranchAddress | ( | "GeaneTrackPar" | , |
| & | fTrackParGeane | ||
| ) |
| gStyle SetOptFit | ( | 1 | ) |
| TCanvas* c =new TCanvas("c","c",900,600) |
Definition at line 65 of file runPULL1.C.
| TFile* f =new TFile("ex1g.root") |
Definition at line 20 of file runPULL1.C.
| fTrackParFinal = new TClonesArray("FairTrackParH") |
Definition at line 25 of file runPULL1.C.
Referenced by for().
| fTrackParGeane = new TClonesArray("FairTrackParH") |
Definition at line 23 of file runPULL1.C.
Referenced by for().
| fTrackParIni = new TClonesArray("FairTrackParH") |
Definition at line 24 of file runPULL1.C.
| FairTrackParH* fTrkF |
Definition at line 40 of file runPULL1.C.
| FairTrackParH* fTrkG |
Definition at line 41 of file runPULL1.C.
| TH1F* h1 =new TH1F("h1","Phi ",100,-10.,10.) |
Definition at line 27 of file runPULL1.C.
| TH1F* h10 =new TH1F("h10","Zsc",100,-10,10) |
Definition at line 36 of file runPULL1.C.
| TH1F* h2 =new TH1F("h2","Lambda",100,-10,10) |
Definition at line 28 of file runPULL1.C.
| TH1F* h3 =new TH1F("h3","Qp",100,-10.,10.) |
Definition at line 29 of file runPULL1.C.
| TH1F* h4 =new TH1F("h4","Y",100,-10,10) |
Definition at line 30 of file runPULL1.C.
| TH1F* h5 =new TH1F("h5","Z",100,-10,10) |
Definition at line 31 of file runPULL1.C.
| TH1F* h6 =new TH1F("h6","Px",100, -10,10) |
Definition at line 32 of file runPULL1.C.
Referenced by HypHitAnasigBg_AR(), and TrackHits().
| TH1F* h7 =new TH1F("h7","Py",100,-10,10) |
Definition at line 33 of file runPULL1.C.
Referenced by HypHitAnasigBg_AR(), and TrackHits().
| TH1F* h8 =new TH1F("h8","Pz",100,-10,10) |
Definition at line 34 of file runPULL1.C.
Referenced by HypHitAnasigBg_AR(), and TrackHits().
| TH1F* h9 =new TH1F("h9","Ysc",100,-10,10) |
Definition at line 35 of file runPULL1.C.
Referenced by HypHitAnasigBg_AR().
| Int_t Nevents = simtree->GetEntriesFast() |
Definition at line 42 of file runPULL1.C.
Definition at line 21 of file runPULL1.C.
Referenced by AnalyseSimFile(), histos_ca(), plot_pid(), and QA_histos().
1.8.5