FairRoot/PandaRoot
Functions | Variables
draw_bands.C File Reference

Go to the source code of this file.

Functions

c Divide (3, 2)
 
TFile infile ("dedx_out.root","READ")
 
gStyle SetPalette (1, 0)
 
c cd (1)
 
h1 Draw ("colz")
 
c cd (2)
 
c cd (3)
 
c cd (4)
 
c cd (5)
 
c cd (6)
 
h1 Draw ()
 
h2 Draw ("SAME")
 
fdedx1 SetParameters (-0.0051344, 0.163231, 7.30319)
 
fsum1 SetParameters (-0.0051344, 0.163231, 7.30319, 0.00428134,-0.00359152, 0.655438)
 
fdedx1 SetLineColor (kOrange)
 
fdedx2 SetParameters (0.0737857, 0.643465, 5.42333)
 
fsum2 SetParameters (0.0737857, 0.643465, 5.42333, 0.0193587,-0.0174329, 0.539616)
 
fdedx2 SetLineColor (kCyan)
 
fdedx3 SetLineColor (kGreen+3)
 
fdedx4 SetParameters (1.71069, 2.21786, 3.82597)
 
fsum4 SetParameters (1.71069, 2.21786, 3.82597, 0.260654, 0.385838, 0.307763)
 
fdedx4 SetLineColor (kViolet+2)
 
fdedx5 SetParameters (4.26561,-0.152697, 4.03156)
 
fsum5 SetParameters (4.26561,-0.152697, 4.03156, 0.338277,-0.664876, 0.656844)
 
fdedx5 SetLineColor (kGray)
 
fsum5 SetLineColor (kYellow)
 

Variables

TString funsig = "([3] * (1./x)**2 + [4] * TMath::Log(x) + [5])"
 
TCanvas * c = new TCanvas("c", "dedx_p")
 
TH2F * h1 = (TH2F*) infile.Get("hdedx_p_e")
 
TH2F * h2 = (TH2F*) infile.Get("hdedx_p_mu")
 
TH2F * h3 = (TH2F*) infile.Get("hdedx_p_pi")
 
TH2F * h4 = (TH2F*) infile.Get("hdedx_p_k")
 
TH2F * h5 = (TH2F*) infile.Get("hdedx_p_p")
 
TString funsum = fundedx + " + " + funsig
 
TString fundiff = fundedx + " - " + funsig
 
TF1 * fdedx1 = new TF1("fdedx1", fundedx, 0., 1.5)
 
TF1 * fsum1 = new TF1("fsum1", funsum, 0., 1.5)
 
TF1 * fdiff1 = new TF1("fdiff1", fundiff, 0., 1.5)
 
TF1 * fdedx2 = new TF1("fdedx2", fundedx, 0., 1.5)
 
TF1 * fsum2 = new TF1("fsum2", funsum, 0., 1.5)
 
TF1 * fdiff2 = new TF1("fdiff2", fundiff, 0., 1.5)
 
TF1 * fdedx3 = new TF1("fdedx3", fundedx, 0., 1.5)
 
TF1 * fsum3 = new TF1("fsum3", funsum, 0., 1.5)
 
TF1 * fdiff3 = new TF1("fdiff3", fundiff, 0., 1.5)
 
TF1 * fdedx4 = new TF1("fdedx4", fundedx, 0., 1.5)
 
TF1 * fsum4 = new TF1("fsum4", funsum, 0., 1.5)
 
TF1 * fdiff4 = new TF1("fdiff4", fundiff, 0., 1.5)
 
TF1 * fdedx5 = new TF1("fdedx5", fundedx, 0., 1.5)
 
TF1 * fsum5 = new TF1("fsum5", funsum, 0., 1.5)
 
TF1 * fdiff5 = new TF1("fdiff5", fundiff, 0., 1.5)
 

Function Documentation

c cd ( )
c cd ( )
c cd ( )
c cd ( )
c cd ( )
c cd ( )
c Divide ( ,
 
)
h1 Draw ( "colz"  )
h1 Draw ( )

Definition at line 64 of file NHitsPerEvent.C.

64  {
65 
66  std::cout << "mvdHitArray: " << mvdHitArray->GetEntries() << " projectedHitArray " << mvdProjectedArray->GetEntries() << std::endl;
67 
68 // gHitPoints->Clear();
71  //if (gHitPoints->GetN() != x.size()) gHitPoints->Expand(x.size());
72 
73  std::cout << "NHits: " << gHitPoints->GetN() << std::endl;
74  gHitPoints->Draw("apl");
75  gProjections->Draw("pl");
76 }
void ExtractData(TClonesArray *array, TGraph *g)
Definition: NHitsPerEvent.C:78
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TClonesArray * mvdProjectedArray
Definition: NHitsPerEvent.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
h2 Draw ( "SAME"  )
TFile infile ( "dedx_out.root"  ,
"READ"   
)
fdedx1 SetLineColor ( kOrange  )
fdedx2 SetLineColor ( kCyan  )
fdedx3 SetLineColor ( kGreen+  3)
fdedx4 SetLineColor ( kViolet+  2)
fdedx5 SetLineColor ( kGray  )
fdiff5 SetLineColor ( kYellow  )
gStyle SetPalette ( ,
 
)
fdedx1 SetParameters ( -0.  0051344,
0.  163231,
7.  30319 
)
fdiff1 SetParameters ( -0.  0051344,
0.  163231,
7.  30319,
0.  00428134,
-0.  00359152,
0.  655438 
)
fdedx3 SetParameters ( 0.  0737857,
0.  643465,
5.  42333 
)
fdiff3 SetParameters ( 0.  0737857,
0.  643465,
5.  42333,
0.  0193587,
-0.  0174329,
0.  539616 
)
fdedx4 SetParameters ( 1.  71069,
2.  21786,
3.  82597 
)
fdiff4 SetParameters ( 1.  71069,
2.  21786,
3.  82597,
0.  260654,
0.  385838,
0.  307763 
)
fdedx5 SetParameters ( 4.  26561,
-0.  152697,
4.  03156 
)
fdiff5 SetParameters ( 4.  26561,
-0.  152697,
4.  03156,
0.  338277,
-0.  664876,
0.  656844 
)

Variable Documentation

TCanvas* c = new TCanvas("c", "dedx_p")

Definition at line 10 of file draw_bands.C.

TF1* fdedx1 = new TF1("fdedx1", fundedx, 0., 1.5)

Definition at line 37 of file draw_bands.C.

TF1* fdedx2 = new TF1("fdedx2", fundedx, 0., 1.5)

Definition at line 49 of file draw_bands.C.

TF1* fdedx3 = new TF1("fdedx3", fundedx, 0., 1.5)

Definition at line 61 of file draw_bands.C.

TF1* fdedx4 = new TF1("fdedx4", fundedx, 0., 1.5)

Definition at line 73 of file draw_bands.C.

TF1* fdedx5 = new TF1("fdedx5", fundedx, 0., 1.5)

Definition at line 85 of file draw_bands.C.

TF1* fdiff1 = new TF1("fdiff1", fundiff, 0., 1.5)

Definition at line 41 of file draw_bands.C.

TF1* fdiff2 = new TF1("fdiff2", fundiff, 0., 1.5)

Definition at line 53 of file draw_bands.C.

TF1* fdiff3 = new TF1("fdiff3", fundiff, 0., 1.5)

Definition at line 65 of file draw_bands.C.

TF1* fdiff4 = new TF1("fdiff4", fundiff, 0., 1.5)

Definition at line 77 of file draw_bands.C.

TF1* fdiff5 = new TF1("fdiff5", fundiff, 0., 1.5)

Definition at line 89 of file draw_bands.C.

TF1* fsum1 = new TF1("fsum1", funsum, 0., 1.5)

Definition at line 39 of file draw_bands.C.

TF1* fsum2 = new TF1("fsum2", funsum, 0., 1.5)

Definition at line 51 of file draw_bands.C.

TF1* fsum3 = new TF1("fsum3", funsum, 0., 1.5)

Definition at line 63 of file draw_bands.C.

TF1* fsum4 = new TF1("fsum4", funsum, 0., 1.5)

Definition at line 75 of file draw_bands.C.

TF1* fsum5 = new TF1("fsum5", funsum, 0., 1.5)

Definition at line 87 of file draw_bands.C.

TString fundiff = fundedx + " - " + funsig

Definition at line 35 of file draw_bands.C.

TString funsig = "([3] * (1./x)**2 + [4] * TMath::Log(x) + [5])"

Definition at line 6 of file draw_bands.C.

TString funsum = fundedx + " + " + funsig

Definition at line 34 of file draw_bands.C.

TH2F* h1 = (TH2F*) infile.Get("hdedx_p_e")

Definition at line 15 of file draw_bands.C.

TH2F* h2 = (TH2F*) infile.Get("hdedx_p_mu")

Definition at line 16 of file draw_bands.C.

TH2F* h3 = (TH2F*) infile.Get("hdedx_p_pi")

Definition at line 17 of file draw_bands.C.

TH2F* h4 = (TH2F*) infile.Get("hdedx_p_k")

Definition at line 18 of file draw_bands.C.

TH2F* h5 = (TH2F*) infile.Get("hdedx_p_p")

Definition at line 19 of file draw_bands.C.

Referenced by HypHitAnasigBg_AR(), and TrackHits().