00001
00002
00003
00004
00005 #include <TH2.h>
00006 #include <TList.h>
00007 #include <TLine.h>
00008 #include <TMath.h>
00009
00010 #include "St2009WMaker.h"
00011 #include "St2009pubWanaMaker.h"
00012
00013
00014
00015 void
00016 St2009pubWanaMaker::initHistos(){
00017
00018 TString core="pub";
00019
00020
00021
00022 memset(hA,0,sizeof(hA));
00023 TList *Lx; TLine *ln;TH1 *h;
00024 char txt[1000], txt0[100];
00025 int nCase=5;
00026
00027 hA[0]=h=new TH1F(core+"StatEve",core+" event count",nCase,0,nCase);
00028 h->GetXaxis()->SetTitleOffset(0.4); h->GetXaxis()->SetLabelSize(0.06); h->GetXaxis()->SetTitleSize(0.05); h->SetMinimum(0.8);
00029 h->SetLineColor(kBlue);h->SetLineWidth(2);
00030
00031 char key[][200]={"inp","acc","W"};
00032 for(int i=0;i<3;i++) h->Fill(key[i],0.);
00033
00034 hA[1]=new TH2F(core+"CrR","ADC of track pointed tower, per carte; ADC-ped ; crate ID ",250,0.,4100.,30,0.5,30.5);
00035
00036
00037
00038 hA[5]=h=new TH1F(core+"WET"," Final W selection; 2x2 cluster ET (GeV)", 100,0,100);
00039 Lx=h->GetListOfFunctions();
00040 ln=new TLine(par_highET,0,par_highET,1.e6); ln->SetLineColor(kRed); Lx->Add(ln);
00041
00042 sprintf(txt,"TPC GLOB Q/PT ; 2x2 cluster ET (GeV); Q/PT");
00043 hA[6]=h=new TH2F(core+"chRecPNg", txt,100,0.,100.,100,-0.1,0.1);
00044 Lx=h->GetListOfFunctions();
00045 ln=new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
00046
00047 sprintf(txt,"TPC PRIM Q/PT ; 2x2 cluster ET (GeV); Q/PT");
00048 hA[7]=h=new TH2F(core+"chRecPNp", txt,100,0.,100.,100,-0.1,0.1);
00049 Lx=h->GetListOfFunctions();
00050 ln=new TLine(0,0,100,0); ln->SetLineColor(kMagenta); Lx->Add(ln);
00051
00052
00053
00054
00055 char cPM[2]={'P','N'};
00056 for(int ipn=0;ipn<2;ipn++){
00057 sprintf(txt0,"chWET%cg",cPM[ipn]);
00058 sprintf(txt,"Final W glob Q=%c; 2x2 cluster ET ",cPM[ipn]);
00059 hA[10+ipn]=h=new TH1F(core+txt0, txt, 100,0,100);
00060 Lx=h->GetListOfFunctions();
00061 ln=new TLine(par_highET,0,par_highET,1.e6); ln->SetLineColor(kRed); Lx->Add(ln);
00062
00063 sprintf(txt0,"chWET%cp",cPM[ipn]);
00064 sprintf(txt,"Final W prim Q=%c; 2x2 cluster ET ",cPM[ipn]);
00065 hA[12+ipn]=h=new TH1F(core+txt0, txt, 100,0,100);
00066 Lx=h->GetListOfFunctions();
00067 ln=new TLine(par_highET,0,par_highET,1.e6); ln->SetLineColor(kRed); Lx->Add(ln);
00068
00069
00070 sprintf(txt0,"chCF%c0",cPM[ipn]);
00071 sprintf(txt,"prim sign=%c flip after V-refit; 2x2 cluster ET ",cPM[ipn]);
00072 hA[14+ipn]=h=new TH1F(core+txt0, txt, 100,0,100);
00073
00074 sprintf(txt0,"chEtaC%c",cPM[ipn]);
00075 sprintf(txt,"Final W sel. ET>%.1f GeV, prim Q=%c ; lepton eta ,event ref frame ",par_highET, cPM[ipn]);
00076 hA[16+ipn]=h=new TH1F(core+txt0, txt, 40,-2,2);
00077 }
00078
00079
00080
00081 hA[20]=h=new TH1F(core+"Joe1","Final sel, awayET<8, nearRET>0.9; 2x2 cluster ET (GeV)", 100,0,100);
00082 hA[21]=h=new TH1F(core+"Joe2","Final sel, awayET>8, nearRET>0.9; 2x2 cluster ET (GeV)", 100,0,100);
00083
00084 hA[22]=h=new TH1F(core+"Joe3","Final sel, awayET<8, nearRET=[0.8,0.9]; 2x2 cluster ET (GeV)", 100,0,100);
00085 hA[23]=h=new TH1F(core+"Joe4","Final sel, awayET>8, nearRET=[0.8,0.9]; 2x2 cluster ET (GeV)", 100,0,100);
00086
00087 hA[24]=h=new TH1F(core+"Joe5","Final sel, awayET<8, nearRET=[0.,0.8]; 2x2 cluster ET (GeV)", 100,0,100);
00088 hA[25]=h=new TH1F(core+"Joe6","Final sel, awayET>8, nearRET=[0.,0.8]; 2x2 cluster ET (GeV)", 100,0,100);
00089
00090 hA[26]=h=new TH1F(core+"Joe7","Final sel, awayET<8 ; 2x2 ET/ nearET ", 110,0,1.1);
00091 hA[27]=h=new TH2F(core+"Joe8","Final sel, nearR>0.9 ; 2x2 cluster ET (GeV); awayET 9GeV)", 100,0,100,100,0,100);
00092
00093
00094
00095 hA[28]=h=new TH2F(core+"primPT_globPT","global vs primary pT;primary pT;global pT",100,0,100,100,0,100);
00096 hA[29]=h=new TH1F(core+"diffprimPT_globPT","global - primary pT; global-primary pT",100,-50,50);
00097 hA[30]=h=new TH1F(core+"diffGT1_clustET"," 2x2 cluster ET for global-primary > 1 GeV",100,0,100);
00098 hA[31]=h=new TH1F(core+"diffprimPT_globPT_Qflip","global - primary pT when Q flipped; global-primary pT",100,-50,50);
00099
00100
00101
00102 hA[32]=h=new TH1F(core+"etaBin1sig","electron .6 < |#eta| < 1 ; 2x2 cluster ET",100,1,101);
00103 hA[33]=h=new TH1F(core+"etaBin2sig","electron .3 < |#eta| < .6; 2x2 cluster ET",100,1,101);
00104 hA[34]=h=new TH1F(core+"etaBin3sig","electron 0 < |#eta| < .3; 2x2 cluster ET",100,1,101);
00105 hA[35]=h=new TH1F(core+"etaBin1back","electron .6 < |#eta| < 1; 2x2 cluster ET",100,1,101);
00106 hA[36]=h=new TH1F(core+"etaBin2back","electron .3 < |#eta| < .6; 2x2 cluster ET",100,1,101);
00107 hA[37]=h=new TH1F(core+"etaBin3back","electron 0 < |#eta| < .3; 2x2 cluster ET",100,1,101);
00108 hA[38]=h=new TH1F(core+"etaBin1sigNoE","electron .6 < |#eta| < 1; 2x2 cluster ET",100,1,101);
00109 hA[39]=h=new TH1F(core+"etaBin2sigNoE","electron .3 < |#eta| < .6; 2x2 cluster ET",100,1,101);
00110 hA[40]=h=new TH1F(core+"etaBin3sigNoE","electron 0 < |#eta| < .3; 2x2 cluster ET",100,1,101);
00111
00112
00113 hA[41]=h=new TH1F(core+"clustPtBalP",Form("PT Balance > %.1f Q=+; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00114 hA[42]=h=new TH1F(core+"clustPtBal_bckgrdP",Form("PT Balance < %.1f Q=+; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00115 hA[43]=h=new TH1F(core+"clustPtBalnoEP",Form("PT Balance > %.1f (EEMC not included) Q=+; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00116 hA[44]=h=new TH1F(core+"clustPtBalN",Form("PT Balance > %.1f Q=-; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00117 hA[45]=h=new TH1F(core+"clustPtBal_bckgrdN",Form("PT Balance < %.1f Q=-; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00118 hA[46]=h=new TH1F(core+"clustPtBalnoEN",Form("PT Balance > %.1f (EEMC not included) Q=-; 2x2 Cluster ET",wMK->par_ptBalance),100,0,100);
00119
00120
00121
00122
00123 for(int i=0;i<mxHA;i++) {
00124 if( hA[i]==0) continue;
00125 HList->Add( hA[i]);
00126 }
00127
00128 LOG_INFO<<Form("%s::initHistos done1",GetName())<<endm;
00129
00130 }
00131
00132
00133