#include <SysHists2D.h>
Public Member Functions | |
| SysHists2D (std::string) | |
| ~SysHists2D () | |
| void | SetRecoBins (int n, double *edges) |
| void | SetPIDBins (int n, double *edges) |
| void | SetTrueBins (int n, double *edges) |
| void | AddPID (std::string pid) |
| void | InitializeHists () |
| int | GetRecoBins () |
| int | GetPIDBins () |
| int | GetTrueBins () |
Public Attributes | |
| TDirectory * | fDirectory |
| TH2D * | ND_TrueVsReco |
| TH2D * | FD_TrueVsReco |
| std::map< std::string, TH2D * > | ND_RecoVsPID |
| std::map< std::string, TH2D * > | FD_RecoVsPID |
Private Attributes | |
| int | nReco |
| int | nTrue |
| int | nPID |
| vector< double > | RecoEdges |
| vector< double > | PIDEdges |
| vector< double > | TrueEdges |
| vector< std::string > | PIDlist |
|
|
Definition at line 3 of file SysHists2D.cxx. References fDirectory, nPID, nReco, nTrue, PIDEdges, RecoEdges, and TrueEdges. 00004 {
00005 fDirectory = new TDirectory(name.c_str(),name.c_str());
00006
00007 int i;
00008
00009 nReco = 100;
00010 for(i=0;i<nReco+1;i++)
00011 {
00012 RecoEdges.push_back(i*1.);
00013 }
00014 nTrue = 1200;
00015 for(i=0;i<nTrue+1;i++)
00016 {
00017 TrueEdges.push_back(i*0.1);
00018 }
00019 nPID = 20;
00020 for(i=0;i<nPID+1;i++)
00021 {
00022 PIDEdges.push_back(i*0.05);
00023 }
00024 }
|
|
|
Definition at line 26 of file SysHists2D.cxx. 00027 {
00028 }
|
|
|
Definition at line 71 of file SysHists2D.cxx. References PIDlist. Referenced by SysFileGen2D::InitializeHistograms(). 00072 {
00073 PIDlist.push_back(pid);
00074
00075 return;
00076 }
|
|
|
Definition at line 37 of file SysHists2D.h. Referenced by SysFileGen2D::FinalizeHistograms(). 00037 { return nPID; };
|
|
|
Definition at line 36 of file SysHists2D.h. Referenced by SysFileGen2D::FinalizeHistograms(). 00036 { return nReco; };
|
|
|
Definition at line 38 of file SysHists2D.h. 00038 { return nTrue; };
|
|
|
Definition at line 77 of file SysHists2D.cxx. References FD_RecoVsPID, FD_TrueVsReco, Form(), ND_RecoVsPID, ND_TrueVsReco, nPID, nReco, nTrue, PIDEdges, PIDlist, RecoEdges, and TrueEdges. Referenced by SysFileGen2D::InitializeHistograms(). 00078 {
00079 double *redges = new double[nReco+1];
00080 double *tedges = new double[nTrue+1];
00081 double *pedges = new double[nPID+1];
00082 int i;
00083 for(i=0;i<nReco+1;i++)
00084 {
00085 redges[i] = RecoEdges.at(i);
00086 }
00087 for(i=0;i<nTrue+1;i++)
00088 {
00089 tedges[i] = TrueEdges.at(i);
00090 }
00091 for(i=0;i<nPID+1;i++)
00092 {
00093 pedges[i] = PIDEdges.at(i);
00094 }
00095
00096 ND_TrueVsReco = new TH2D("ND_TrueVsReco","",nReco,redges,nTrue,tedges);
00097 FD_TrueVsReco = new TH2D("FD_TrueVsReco","",nReco,redges,nTrue,tedges);
00098
00099 ND_RecoVsPID.clear();
00100 FD_RecoVsPID.clear();
00101
00102 TH2D *h;
00103 int np = PIDlist.size();
00104 for(i=0;i<np;i++)
00105 {
00106 h = new TH2D(Form("ND_RecoVs%s",PIDlist[i].c_str()),"",nPID,pedges,nReco,redges);
00107 ND_RecoVsPID[PIDlist[i]] = h;
00108
00109 h = new TH2D(Form("FD_RecoVs%s",PIDlist[i].c_str()),"",nPID,pedges,nReco,redges);
00110 FD_RecoVsPID[PIDlist[i]] = h;
00111 }
00112
00113 ND_TrueVsReco->Sumw2();
00114 FD_TrueVsReco->Sumw2();
00115 for(i=0;i<np;i++)
00116 {
00117 ND_RecoVsPID[PIDlist[i]]->Sumw2();
00118 FD_RecoVsPID[PIDlist[i]]->Sumw2();
00119 }
00120
00121 delete [] redges;
00122 delete [] tedges;
00123 delete [] pedges;
00124
00125 return;
00126 }
|
|
||||||||||||
|
Definition at line 57 of file SysHists2D.cxx. References nPID, and PIDEdges. 00058 {
00059 int i;
00060
00061 nPID = n;
00062
00063 PIDEdges.clear();
00064 for(i=0;i<nPID+1;i++)
00065 {
00066 PIDEdges.push_back(edges[i]);
00067 }
00068
00069 return;
00070 }
|
|
||||||||||||
|
Definition at line 29 of file SysHists2D.cxx. References nReco, and RecoEdges. 00030 {
00031 int i;
00032
00033 nReco = n;
00034
00035 RecoEdges.clear();
00036 for(i=0;i<nReco+1;i++)
00037 {
00038 RecoEdges.push_back(edges[i]);
00039 }
00040
00041 return;
00042 }
|
|
||||||||||||
|
Definition at line 43 of file SysHists2D.cxx. References nTrue, and TrueEdges. 00044 {
00045 int i;
00046
00047 nTrue = n;
00048
00049 TrueEdges.clear();
00050 for(i=0;i<nTrue+1;i++)
00051 {
00052 TrueEdges.push_back(edges[i]);
00053 }
00054
00055 return;
00056 }
|
|
|
Definition at line 27 of file SysHists2D.h. Referenced by SysFileGen2D::FinalizeHistograms(), InitializeHists(), and SysFileGen2D::ResetHistograms(). |
|
|
Definition at line 24 of file SysHists2D.h. Referenced by InitializeHists(), and SysFileGen2D::ResetHistograms(). |
|
|
Definition at line 21 of file SysHists2D.h. Referenced by SysFileGen2D::FinalizeHistograms(), SysFileGen2D::InitializeHistograms(), SysFileGen2D::ResetHistograms(), SysHists2D(), and SysFileGen2D::WriteToFile(). |
|
|
Definition at line 26 of file SysHists2D.h. Referenced by SysFileGen2D::FinalizeHistograms(), InitializeHists(), and SysFileGen2D::ResetHistograms(). |
|
|
Definition at line 23 of file SysHists2D.h. Referenced by InitializeHists(), and SysFileGen2D::ResetHistograms(). |
|
|
Definition at line 44 of file SysHists2D.h. Referenced by InitializeHists(), SetPIDBins(), and SysHists2D(). |
|
|
Definition at line 42 of file SysHists2D.h. Referenced by InitializeHists(), SetRecoBins(), and SysHists2D(). |
|
|
Definition at line 43 of file SysHists2D.h. Referenced by InitializeHists(), SetTrueBins(), and SysHists2D(). |
|
|
Definition at line 47 of file SysHists2D.h. Referenced by InitializeHists(), SetPIDBins(), and SysHists2D(). |
|
|
Definition at line 50 of file SysHists2D.h. Referenced by AddPID(), and InitializeHists(). |
|
|
Definition at line 46 of file SysHists2D.h. Referenced by InitializeHists(), SetRecoBins(), and SysHists2D(). |
|
|
Definition at line 48 of file SysHists2D.h. Referenced by InitializeHists(), SetTrueBins(), and SysHists2D(). |
1.3.9.1