Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
evaluate_cluster_track_matching.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file evaluate_cluster_track_matching.C
1 int
3 {
4  TString fname( "eicana_disreco_test.root" );
5 
6  TFile *fin = new TFile( fname , "OPEN" );
7 
8  TTree *event = (TTree*)fin->Get("event");
9 
10  event->Print();
11 
12  TCanvas *ctemp = new TCanvas();
13  event->Draw("1","em_cluster_e>0");
14  cout << "EM candidates total: " << htemp->GetEntries() << endl;
15  event->Draw("1","em_cluster_e>1 && em_cluster_prob > 0.01");
16  cout << "EM candidates E_cluster > 1 GeV && Prob_EM > 0.01: " << htemp->GetEntries() << endl;
17  event->Draw("1","em_cluster_e>1 && em_cluster_prob > 0.01 && em_track_cluster_dr < 0.01");
18  cout << "EM candidates E_cluster > 1 GeV && Prob_EM > 0.01 && dr_cluster_track < 0.01: " << htemp->GetEntries() << endl;
19 
20  TCanvas *c0 = new TCanvas();
21  event->Draw("em_track_cluster_dr",
22  "em_cluster_e > 1");
23 
24  TCanvas *c1 = new TCanvas();
25  event->Draw("1",//(-1*log( tan( em_cluster_theta / 2. ) ) )",// - em_evtgen_eta",
26  "em_cluster_e>1 && em_cluster_prob > 0.01");
27 
28  TCanvas *c2 = new TCanvas();
29  event->Draw("(-1*log( tan( em_track_theta / 2. ) ) ) - em_evtgen_eta : em_evtgen_eta",
30  "em_cluster_e>1 && em_cluster_prob > 0.01 && em_track_cluster_dr < 0.01");
31 
32 //.x Fun4All_EICAnalysis_DISReco.C
33 //TFile *_file0 = TFile::Open()
34 //event->Scan("-1*log(tan(em_cluster_theta/2.)):em_cluster_e:-1*log(tan(em_track_theta/2.)):em_track_ptotal","em_cluster_e>2")
35 //event->Scan("-1*log(tan(em_cluster_theta/2.)):em_cluster_e:-1*log(tan(em_track_theta/2.)):em_track_ptotal","em_cluster_e>2&&em_evtgen_pid==-11")
36 //event->Scan("-1*log(tan(em_cluster_theta/2.)):em_cluster_e:-1*log(tan(em_track_theta/2.)):em_track_ptotal","em_cluster_e>2&&em_evtgen_pid==11")
37 //event->Draw("-1*log(tan(em_cluster_theta/2.)):-1*log(tan(em_track_theta/2.))","em_cluster_e>2&&em_evtgen_pid==11")
38 //event->Draw("-1*log(tan(em_cluster_theta/2.)):em_evtgen_theta","em_cluster_e>2&&em_evtgen_pid==11")
39 //event->Draw("-1*log(tan(em_cluster_theta/2.)):em_evtgen_eta","em_cluster_e>2&&em_evtgen_pid==11")
40 //event->Draw("-1*log(tan(em_cluster_theta/2.))-em_evtgen_eta","em_cluster_e>2&&em_evtgen_pid==11")
41 //event->Draw("-1*log(tan(em_track_theta/2.))-em_evtgen_eta","em_cluster_e>2&&em_evtgen_pid==11")
42 //event->Draw("-1*log(tan(em_track_theta/2.))-em_evtgen_eta>>h1(100,0,1)","em_cluster_e>2&&em_evtgen_pid==11")
43 //event->Draw("-1*log(tan(em_track_theta/2.))-em_evtgen_eta>>h1(100,-0.2,0.2)","em_cluster_e>2&&em_evtgen_pid==11")
44 //event->Draw("-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))","em_cluster_e>0")
45 //event->Draw("-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))","em_cluster_e>0&& abs(-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))) < 0.1")
46 //event->Draw("-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))","em_cluster_e>0&& abs(-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))) < 0.1")
47 //event->Draw("-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))","em_cluster_e>0&& abs(-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))) < 0.01")
48 //event->Draw("(-1*log(tan(em_track_theta/2.)))-em_evtgen_eta","em_cluster_e>0&& abs(-1*log(tan(em_cluster_theta/2.))-(-1*log(tan(em_track_theta/2.)))) < 0.01")
49 
50 //.q
51 
52  return 0;
53 }