6 #include "St2011WMaker.h"
8 #include "St2011ZMaker.h"
13 St2011ZMaker::initHistos(){
14 const float PI=TMath::Pi();
19 memset(hA,0,
sizeof(hA));
21 TH1 *h;
float yMax=1e3;
25 hA[0]=h=
new TH1F(core+
"EventType",core+
" event type",nCase,0,nCase);
26 h->GetXaxis()->SetTitleOffset(0.4); h->GetXaxis()->SetLabelSize(0.06); h->GetXaxis()->SetTitleSize(0.05); h->SetMinimum(0.8);
27 h->SetLineColor(kBlue);h->SetLineWidth(2);
29 const char *key[]={
"inp",
"vert",
"TT",
"tr1",
"et1",
"con1",
"tr2",
"et2",
"con2",
"phi12",
"m2",
"QQ",
"Zlow",
"Zhigh"};
30 for(
int i=0;i<14;i++) h->Fill(key[i],0.);
35 hA[1]=h=
new TH1F(core+
"Zmass",
" Final Z selection; Invariant Mass (GeV)", 100,0,200);
36 sprintf(txt,
"Reconstructed Charge of each track in candidate ;First Charge;Second Charge");
37 hA[2]=h=
new TH2F(core+
"charge_v_charge", txt,3,-1.5,1.5,3,-1.5,1.5);
38 sprintf(txt,
"Product of Reconstructed Charges of each track in candidate");
39 hA[3]=h=
new TH1F(core+
"charge_product", txt,3,-1.5,1.5);
40 hA[4]=h=
new TH2F(core+
"phi1_v_phi2",
"Comparison of azimuthal position of first and second track;Phi 1;Phi 2",100,-PI,PI,100,-PI,PI);
41 sprintf(txt,
"Relative phi between two tracks in Z candidate");
42 hA[5]=h=
new TH1F(core+
"relative_phi", txt,100,0,PI*2.02);
43 hA[6]=h=
new TH2F(core+
"track_mom_v_mass",
"Q1/pT1*Q2/pT2 versus Invariant Mass;Mass (GeV);Q1/pT1*Q2/pT2",100,0,200,200,-0.1,0.1);
44 sprintf(txt,
"Product of Electron Charges vs Reconstructed Mass;mass (GeV);Q1*Q2");
45 hA[7]=h=
new TH2F(core+
"charge_product_v_mass",txt,50,0,200,3,-1.5,1.5);
46 hA[8]=h=
new TH1F(core+
"et1",
"ET of first cluster (after cuts)",100,0,100);
47 hA[9]=h=
new TH2F(core+
"positron_pos",
"Location of e+ from Z;eta;phi",10,-1,1,10,-PI,PI);
48 hA[10]=h=
new TH2F(core+
"electron_pos",
"Location of e- from Z;eta;phi",10,-1,1,10,-PI,PI);
49 hA[11]=h=
new TH2F(core+
"fmax_v_fmax",
"Final Z Selection, Fmax v Fmax;fmax1;fmax2",100,0,1,100,0,1);
50 hA[12]=h=
new TH2F(core+
"et_v_et",
"Transverse Energies of the two Clusters;Et1;Et2",100,0,100,100,0,100);
51 hA[13]=h=
new TH2F(core+
"rel_phi_v_mass",
"Relative Phi vs Invariant Mass;mass;phi",50,0,200,100,0,PI*2.02);
52 hA[14]=h=
new TH1F(core+
"ZmassLike",
" Final Z selection with Like Charges on both tracks; Invariant Mass (GeV)", 100,0,200);
55 hA[15]=h=
new TH1F(core+
"ZmassUnlike",
" Final Zs, Unlike Charge pairs; Invariant Mass (GeV)", 100,0,200); h->SetFillColor(kYellow);
57 Lx=h->GetListOfFunctions();
58 ln=
new TLine(par_minMassZ,0,par_minMassZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
59 ln=
new TLine(par_maxMassZ,0,par_maxMassZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
60 ln=
new TLine(91.2,-.2,91.2,10.); ln->SetLineColor(kGreen); ln->SetLineWidth(3); ln->SetLineStyle(1); Lx->Add(ln);
62 hA[21]=h=
new TH2F(core+
"fmax_v_fmaxbefore",
"Final Z Selection, Fmax v Fmax;fmax1;fmax2",100,0,1,100,0,1);
63 hA[22]=h=
new TH2F(core+
"et_v_etbefore",
"Transverse Energies of the two Clusters;Et1;Et2",100,0,100,100,0,100);
66 hA[23]=h=
new TH1F(core+
"et1val",
"Track-1 ET before cuts; 2x2ET (GeV)",100,0,100);
67 Lx=h->GetListOfFunctions();
68 ln=
new TLine(par_clusterEtZ,0,par_clusterEtZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
70 hA[24]=h=
new TH1F(core+
"et1frac",
"Track-1 cone ET fraction; 2x2ET/nearET",105,0,1.05);
71 Lx=h->GetListOfFunctions();
72 ln=
new TLine(par_nearTotEtFracZ,0,par_nearTotEtFracZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
74 hA[25]=h=
new TH1F(core+
"et2val",
"Track-2 ET before cuts; 2x2ET (GeV)",100,0,100);
75 Lx=h->GetListOfFunctions();
76 ln=
new TLine(par_clusterEtZ,0,par_clusterEtZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
78 hA[26]=h=
new TH1F(core+
"et2frac",
"Track-2 cone ET fraction; 2x2ET/nearET",105,0,1.05);
79 Lx=h->GetListOfFunctions();
80 ln=
new TLine(par_nearTotEtFracZ,0,par_nearTotEtFracZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
82 hA[27]=h=
new TH1F(core+
"phi12",
"delta phi tr1-tr2; delPhi12(rad)", 100 ,-PI+1.,PI+1.);
83 h->SetFillColor(kBlue);
84 Lx=h->GetListOfFunctions();
85 ln=
new TLine(par_delPhi12,0,par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
86 ln=
new TLine(-par_delPhi12,0,-par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
89 hA[29]=h=
new TH1F(core+
"et1iso",
"Track-1 4x4 ET fract; 2x2ET / 4x4 ET",105,0,1.05);
90 Lx=h->GetListOfFunctions();
91 ln=
new TLine(wMK->par_clustFrac24,0,wMK->par_clustFrac24,yMax); ln->SetLineColor(kMagenta); ln->SetLineStyle(2); Lx->Add(ln);
93 hA[30]=h=
new TH1F(core+
"et2iso",
"Track-2 4x4 ET fract; 2x2ET / 4x4 ET",105,0,1.05);
94 Lx=h->GetListOfFunctions();
95 ln=
new TLine(wMK->par_clustFrac24,0,wMK->par_clustFrac24,yMax); ln->SetLineColor(kMagenta); ln->SetLineStyle(2); Lx->Add(ln);
99 hA[31]=h=
new TH1F(core+
"nVertices",
"Number of vertices per event",10,0,10);
100 hA[32]=h=
new TH1F(core+
"nTracks",
"Number of tracks per vertex",20,0,20);
102 hA[33]=h=
new TH2F(core+
"chRecPNp",
"TPC PRIM Q/PT , black=pairs of unlike charges; 2x2 cluster ET (GeV); Q/PT",100,0.,100.,100,-0.1,0.1);
103 Lx=h->GetListOfFunctions();
104 ln=
new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
106 hA[34]=h=
new TH2F(core+
"Ene_Deta",
"final Z: cluster energy vs. detector eta; barrel eta bin; 2x2 Energy (GeV)",40,0,40,50,0,100);
108 hA[35]=h=
new TH2F(core+
"eta12",
"Final Z selection #eta_{1} vs #eta_{2} with two Barrel tracks; #eta_{1} ; #eta_{2} ", 60,-1.0,2.0,60,-1.0,2.0);
110 hA[36]=h=
new TH1F(core+
"etaZ",
"golden Z boson #eta; #eta_{Z}",100,-5.,5.);
111 hA[37]=h=
new TH1F(core+
"ptZ",
"golden Z boson p_{T}; p_{T}^{Z}",100,0.,20.);
113 hA[38]=h=
new TH1F(core+
"Y2",
"golden Z spin sorted; spin4 ",16,-0.5,15.5);
115 hA[39]=h=
new TH1F(core+
"Y2a",
"golden Z , STAR #eta<0 , spin sorted; spin4 ",16,-0.5,15.5);
117 hA[40]=h=
new TH1F(core+
"Y2b",
"golden Z , STAR #eta>0 , spin sorted; spin4 ",16,-0.5,15.5);
120 hA[42]=h=
new TH2F(core+
"phiCorr12",
"#phi correlation; #phi_{e+} (rad); #phi_{e-} (rad)", 240,-PI,PI,240,-PI,PI);
121 hA[43]=h=
new TH2F(core+
"ChRecHypCorrPNp",
"TPC PRIM Charge Separation Hyperbola Corrected ; 2x2 cluster ET (GeV); Q*ET/PT",100,0.,100.,100,-4,4);
122 ln=
new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
123 hA[44]=h=
new TH2F(core+
"xCorr12",
"reconstructed bjorken-x correlation; x_{1}; x_{2}", 300,0,0.5,300,0,0.5);
124 hA[45]=h=
new TH2F(core+
"xCorr12recoM",
"reconstructed bjorken-x correlation (reco mass); x_{1}; x_{2}", 300,0,0.5,300,0,0.5);
126 hA[46]=h=
new TH2F(core+
"FreeQ",
"reco charges correlation, golden Z; e+ Q *ET/PT; e- Q *ET/PT",100,0.,5.,100,-5.,0);
130 hA[50]=h=
new TH1F(core+
"EndcapNoTrk_EventType",core+
" event type",nCase,0,nCase);
131 h->GetXaxis()->SetTitleOffset(0.4); h->GetXaxis()->SetLabelSize(0.06); h->GetXaxis()->SetTitleSize(0.05); h->SetMinimum(0.8);
132 h->SetLineColor(kBlue);h->SetLineWidth(2);
133 const char *keyE[]={
"inp",
"vert",
"trB",
"etB",
"conB",
"trE",
"etE",
"conE",
"phi12",
"m2"};
134 for(
int i=0;i<10;i++) h->Fill(keyE[i],0.);
136 hA[51]=h=
new TH1F(core+
"Eet1iso",
"Track-1 4x4 ET fract; 2x2ET / 4x4 ET",105,0,1.05);
137 Lx=h->GetListOfFunctions();
138 ln=
new TLine(wMK->par_clustFrac24,0,wMK->par_clustFrac24,yMax); ln->SetLineColor(kMagenta); ln->SetLineStyle(2); Lx->Add(ln);
139 hA[52]=h=
new TH1F(core+
"Eet1val",
"Track-1 ET before cuts; 2x2ET (GeV)",100,0,100);
140 Lx=h->GetListOfFunctions();
141 ln=
new TLine(par_clusterEtZ,0,par_clusterEtZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
142 hA[53]=h=
new TH1F(core+
"Eet1frac",
"Track-1 cone ET fraction; 2x2ET/nearET",105,0,1.05);
143 Lx=h->GetListOfFunctions();
144 ln=
new TLine(par_nearTotEtFracZ,0,par_nearTotEtFracZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
146 hA[54]=h=
new TH1F(core+
"Eet2isoNoTrk",
"Track-2 4x4 ET fract; 2x2ET / 4x4 ET",105,0,1.05);
147 Lx=h->GetListOfFunctions();
148 ln=
new TLine(wMK->parE_clustFrac24,0,wMK->parE_clustFrac24,yMax); ln->SetLineColor(kMagenta); ln->SetLineStyle(2); Lx->Add(ln);
149 hA[55]=h=
new TH1F(core+
"Eet2valNoTrk",
"Cluster-2 ET before cuts; 2x2ET (GeV)",100,0,100);
150 Lx=h->GetListOfFunctions();
151 ln=
new TLine(par_clusterEtZ,0,par_clusterEtZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
152 hA[56]=h=
new TH1F(core+
"Eet2fracNoTrk",
"Cluset-2 cone ET fraction; 2x2ET/nearET",105,0,1.05);
153 Lx=h->GetListOfFunctions();
154 ln=
new TLine(wMK->parE_nearTotEtFrac,0,wMK->parE_nearTotEtFrac,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
156 hA[57]=h=
new TH1F(core+
"Ephi12NoTrk",
"delta phi tr1-tr2; delPhi12(rad)", 100 ,-PI+1.,PI+1.);
157 h->SetFillColor(kBlue);
158 Lx=h->GetListOfFunctions();
159 ln=
new TLine(par_delPhi12,0,par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
160 ln=
new TLine(-par_delPhi12,0,-par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
161 hA[58]=h=
new TH1F(core+
"E_ZmassNoTrk",
" Final Z selection with one varrel track and one Endcap cluster (no track requirement); Invariant Mass (GeV)", 100,0,200);
162 h->SetFillColor(kYellow);
163 ln=
new TLine(91.2,-.2,91.2,10.); ln->SetLineColor(kGreen); ln->SetLineWidth(3); ln->SetLineStyle(1); Lx->Add(ln);
165 hA[59]=h=
new TH2F(core+
"Eeta12NoTrk",
"Final Z selection #eta_{1} vs #eta_{2} with one Barrel track and one Endcap cluster (no track requirement); #eta_{1} ; #eta_{2} ", 60,-1.0,2.0,60,-1.0,2.0);
167 hA[60]=h=
new TH1F(core+
"EetaZNoTrk",
"Z boson #eta with one Barrel track and one Endcap cluster (no track requirement); #eta_{Z}",100,-5.,5.);
168 hA[61]=h=
new TH1F(core+
"EptZNoTrk",
"Z boson p_{T} with one Barrel track and one Endcap cluster (no track requirement); p_{T}^{Z}",100,0.,20.);
171 hA[70]=h=
new TH1F(core+
"Endcap_EventType",core+
" event type",nCase,0,nCase);
172 h->GetXaxis()->SetTitleOffset(0.4); h->GetXaxis()->SetLabelSize(0.06); h->GetXaxis()->SetTitleSize(0.05); h->SetMinimum(0.8);
173 h->SetLineColor(kBlue);h->SetLineWidth(2);
174 const char *keyE2[]={
"inp",
"vert",
"trB",
"etB",
"conB",
"trE",
"etE",
"conE",
"phi12",
"m2",
"QQ"};
175 for(
int i=0;i<11;i++) h->Fill(keyE2[i],0.);
177 hA[71]=h=
new TH1F(core+
"Eet2iso",
"Track-2 4x4 ET fract; 2x2ET / 4x4 ET",105,0,1.05);
178 Lx=h->GetListOfFunctions();
179 ln=
new TLine(wMK->parE_clustFrac24,0,wMK->parE_clustFrac24,yMax); ln->SetLineColor(kMagenta); ln->SetLineStyle(2); Lx->Add(ln);
180 hA[72]=h=
new TH1F(core+
"Eet2val",
"Cluster-2 ET before cuts; 2x2ET (GeV)",100,0,100);
181 Lx=h->GetListOfFunctions();
182 ln=
new TLine(par_clusterEtZ,0,par_clusterEtZ,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
183 hA[73]=h=
new TH1F(core+
"Eet2frac",
"Cluset-2 cone ET fraction; 2x2ET/nearET",105,0,1.05);
184 Lx=h->GetListOfFunctions();
185 ln=
new TLine(wMK->parE_nearTotEtFrac,0,wMK->parE_nearTotEtFrac,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
187 hA[74]=h=
new TH1F(core+
"Ephi12",
"delta phi tr1-tr2; delPhi12(rad)", 100 ,-PI+1.,PI+1.);
188 h->SetFillColor(kBlue);
189 Lx=h->GetListOfFunctions();
190 ln=
new TLine(par_delPhi12,0,par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
191 ln=
new TLine(-par_delPhi12,0,-par_delPhi12,yMax); ln->SetLineColor(kMagenta); Lx->Add(ln);
193 hA[75]=h=
new TH1F(core+
"E_ZmassUnlike",
" Final Z unlike charge selection with one Barrel track and one Endcap track; Invariant Mass (GeV)", 100,0,200);
194 h->SetFillColor(kYellow);
195 ln=
new TLine(91.2,-.2,91.2,10.); ln->SetLineColor(kGreen); ln->SetLineWidth(3); ln->SetLineStyle(1); Lx->Add(ln);
196 hA[76]=h=
new TH1F(core+
"E_ZmassLike",
" Final Z like charge selection with one Barrel track and one Endcap track; Invariant Mass (GeV)", 100,0,200);
197 h->SetFillColor(kYellow);
198 ln=
new TLine(91.2,-.2,91.2,10.); ln->SetLineColor(kGreen); ln->SetLineWidth(3); ln->SetLineStyle(1); Lx->Add(ln);
201 hA[77]=h=
new TH2F(core+
"Eeta12",
"Final Z selection #eta_{1} vs #eta_{2} with one Barrel track and one Endcap track; #eta_{1} ; #eta_{2} ", 60,-1.0,2.0,60,-1.0,2.0);
203 hA[78]=h=
new TH1F(core+
"EetaZ",
"Z boson #eta with one Barrel track and one Endcap track; #eta_{Z}",100,-5.,5.);
204 hA[79]=h=
new TH1F(core+
"EptZ",
"Z boson p_{T} with one Barrel track and one Endcap track; p_{T}^{Z}",100,0.,20.);
206 hA[80]=h=
new TH2F(core+
"ELike_chRecPNp",
"TPC PRIM Q/PT , black=pairs of unlike charges; 2x2 cluster ET (GeV); Q/PT",100,0.,100.,100,-0.1,0.1);
207 Lx=h->GetListOfFunctions();
208 ln=
new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
209 hA[81]=h=
new TH2F(core+
"EUnlike_chRecPNp",
"TPC PRIM Q/PT , black=pairs of unlike charges; 2x2 cluster ET (GeV); Q/PT",100,0.,100.,100,-0.1,0.1);
210 Lx=h->GetListOfFunctions();
211 ln=
new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
214 for(
int i=0;i<mxHA;i++) {
215 if( hA[i]==0)
continue;
219 LOG_INFO<<Form(
"%s::initHistos done1",
GetName())<<endm;
virtual const char * GetName() const
special overload