1 |
buchmann |
1.1 |
#include <iostream>
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
samplecollection PhotonSamples("PhotonSamples");
|
5 |
|
|
|
6 |
|
|
namespace GenPhotons {
|
7 |
|
|
void CompareZmassToFinalStateLeptons();
|
8 |
|
|
void GenLevelStudies();
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
}
|
12 |
|
|
|
13 |
|
|
namespace RecoPhotons {
|
14 |
|
|
void RecoLevelStudies();
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
}
|
19 |
|
|
|
20 |
|
|
void RecoPhotons::RecoLevelStudies() {
|
21 |
|
|
cout << "RecoLevelStudies have not been implemented yet" << endl;
|
22 |
|
|
}
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
void GenPhotons::CompareZmassToFinalStateLeptons() {
|
26 |
|
|
|
27 |
|
|
TCanvas *can = new TCanvas("can","can");
|
28 |
|
|
can->SetLogy(1);
|
29 |
|
|
|
30 |
|
|
TH1F *FullZ = PhotonSamples.Draw("FullZ","genFSRmllg",36,20,200,"m_{Z}^{gen} (GeV)", "events","genFSRmllg>20&&genFSRmllg<200",mc,PlottingSetup::luminosity);
|
31 |
|
|
TH1F *GenLL = PhotonSamples.Draw("GenLL","genFSRmll", 36,20,200,"m_{ll}^{gen} (GeV)", "events","genFSRmllg>20&&genFSRmllg<200",mc,PlottingSetup::luminosity);
|
32 |
|
|
|
33 |
|
|
FullZ->SetLineColor(TColor::GetColor("#01DF01"));
|
34 |
|
|
GenLL->SetLineColor(TColor::GetColor("#FF4000"));
|
35 |
|
|
|
36 |
|
|
TLegend *leg = new TLegend(0.7,0.7,0.89,0.89);
|
37 |
|
|
leg->AddEntry(FullZ,"gen Z mass","l");
|
38 |
|
|
leg->AddEntry(GenLL,"Mass from final state gen leptons","l");
|
39 |
|
|
|
40 |
|
|
FullZ->Draw();
|
41 |
|
|
GenLL->Draw("same");
|
42 |
|
|
leg->Draw("same");
|
43 |
|
|
|
44 |
|
|
CompleteSave(can,"PhotonStudies/CompareZmassToFinalStateLeptons");
|
45 |
|
|
|
46 |
|
|
}
|
47 |
|
|
|
48 |
|
|
void GenPhotons::GenLevelStudies() {
|
49 |
|
|
CompareZmassToFinalStateLeptons();
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
void InitializePhotonSamples() {
|
55 |
|
|
float ZJetsCrossSection = 3532.8;
|
56 |
|
|
float LowZJetsCrossSection = 11050*0.069*1.15; // LO xs * filter eff * k-factor (same as ZJets)
|
57 |
|
|
|
58 |
|
|
PhotonSamples.AddSample("/shome/buchmann/ntuples/MC8tev/PhotonStudies/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12_DR53X-PU_S10_START53_V7A-v1.root","Z+Jets",-30346766,ZJetsCrossSection,false,false,1,kYellow);
|
59 |
|
|
PhotonSamples.AddSample("//shome/buchmann/ntuples/MC8tev/PhotonStudies/DYJetsToLL_M-10To50filter_8TeV-madgraph-Summer12_DR53X-PU_S10_START53_V7A-v1.root","Z+Jets",-6955271,LowZJetsCrossSection,false,false,1,kYellow);
|
60 |
|
|
|
61 |
|
|
write_info(__FUNCTION__,"Photon samples have been initialized!");
|
62 |
|
|
PhotonSamples.ListSamples();
|
63 |
|
|
|
64 |
|
|
}
|
65 |
|
|
|
66 |
|
|
void FSRstudy() {
|
67 |
|
|
InitializePhotonSamples();
|
68 |
|
|
|
69 |
|
|
GenPhotons::GenLevelStudies();
|
70 |
|
|
RecoPhotons::RecoLevelStudies();
|
71 |
|
|
}
|