ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/src/GeneratorMod.cc
Revision: 1.9
Committed: Fri Nov 28 09:13:50 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.8: +8 -8 lines
Log Message:
Finished refurbishing

File Contents

# User Rev Content
1 loizides 1.9 // $Id: GeneratorMod.cc,v 1.8 2008/11/27 16:30:27 loizides Exp $
2 loizides 1.1
3     #include "MitPhysics/Mods/interface/GeneratorMod.h"
4     #include "MitCommon/MathTools/interface/MathUtils.h"
5 loizides 1.8 #include "MitPhysics/Init/interface/ModNames.h"
6 loizides 1.1 #include <TH1D.h>
7     #include <TH2D.h>
8    
9     using namespace mithep;
10    
11     ClassImp(mithep::GeneratorMod)
12    
13     //--------------------------------------------------------------------------------------------------
14 loizides 1.8 GeneratorMod::GeneratorMod(const char *name, const char *title) :
15 loizides 1.1 BaseMod(name,title),
16 loizides 1.5 fFillHist(kFALSE),
17 loizides 1.1 fMCPartName(Names::gkMCPartBrn),
18 loizides 1.8 fMCLeptonsName(ModNames::gkMCLeptonsName),
19     fMCAllLeptonsName(ModNames::gkMCAllLeptonsName),
20     fMCTausName(ModNames::gkMCTausName),
21     fMCNeutrinosName(ModNames::gkMCNeutrinosName),
22     fMCQuarksName(ModNames::gkMCQuarksName),
23     fMCqqHsName(ModNames::gkMCqqHsName),
24     fMCBosonsName(ModNames::gkMCBosonsName),
25 loizides 1.6 fParticles(0)
26 loizides 1.1 {
27     // Constructor.
28     }
29    
30     //--------------------------------------------------------------------------------------------------
31     void GeneratorMod::Process()
32     {
33 loizides 1.5 // Process entries of the tree.
34 loizides 1.1
35 loizides 1.5 // these arrays will be filled in the loop of particles
36 loizides 1.9 MCParticleOArr *GenLeptons = new MCParticleOArr;
37     MCParticleOArr *GenAllLeptons = new MCParticleOArr;
38     MCParticleOArr *GenTaus = new MCParticleOArr;
39 loizides 1.5 GenTaus->SetOwner(true);
40 loizides 1.9 MCParticleOArr *GenNeutrinos = new MCParticleOArr;
41     MCParticleOArr *GenQuarks = new MCParticleOArr;
42     MCParticleOArr *GenqqHs = new MCParticleOArr;
43     MCParticleOArr *GenBosons = new MCParticleOArr;
44 loizides 1.1
45 loizides 1.5 // load MCParticle branch
46     LoadBranch(fMCPartName);
47    
48 loizides 1.6 Bool_t isqqH = kFALSE;
49 loizides 1.5 for (UInt_t i=0; i<fParticles->GetEntries(); ++i) {
50 loizides 1.7 const MCParticle *p = fParticles->At(i);
51 loizides 1.5
52     if (!p->IsGenerated()) continue;
53    
54     // muons/electrons from W/Z decays
55 loizides 1.7 if ((p->Is(MCParticle::kEl) || p->Is(MCParticle::kMu)) && p->Status() == 1) {
56 loizides 1.5 if (p->Pt() > 3.0 && TMath::Abs(p->Eta()) < 3.0) {
57     GenAllLeptons->Add(p);
58     }
59 loizides 1.6 Bool_t isGoodLepton = kFALSE;
60 loizides 1.7 const MCParticle *pm = p;
61 loizides 1.5 while (pm->HasMother() && isGoodLepton == kFALSE) {
62 loizides 1.7 if (pm->Mother()->Is(MCParticle::kZ) || pm->Mother()->Is(MCParticle::kW)) {
63 loizides 1.5 GenLeptons->Add(p);
64     isGoodLepton = kTRUE;
65 loizides 1.7 break;
66 loizides 1.8 } else if (pm->Mother()->Is(MCParticle::kPi0) || pm->Mother()->Is(MCParticle::kEta)) {
67 loizides 1.7 // this is fake, but it is a trick to get rid of these cases and abort the loop
68 loizides 1.5 isGoodLepton = kTRUE;
69 loizides 1.7 break;
70     }
71     pm = pm->Mother();
72 loizides 1.1 }
73 loizides 1.5 }
74    
75 loizides 1.7 // hadronic taus
76     else if (p->Is(MCParticle::kTau) && p->Status() == 2) {
77     if (!p->HasDaughter(MCParticle::kEl) && !p->HasDaughter(MCParticle::kMu)) {
78     const MCParticle *tv = p->FindDaughter(MCParticle::kTauNu);
79     if (tv) {
80     MCParticle *pm_f = new MCParticle(*p);
81     pm_f->SetMom(p->Px()-tv->Px(), p->Py()-tv->Py(),
82     p->Pz()-tv->Pz(), p->E()-tv->E());
83     GenTaus->AddOwned(pm_f);
84     } else {
85     SendError(kWarning, "Process", "Could not find tau neutrino!");
86 loizides 1.5 }
87 loizides 1.1 }
88 loizides 1.5 }
89 loizides 1.1
90 loizides 1.5 // neutrinos
91 loizides 1.7 else if (p->Status() == 1 && p->IsNeutrino()) {
92 loizides 1.5 GenNeutrinos->Add(p);
93     }
94 loizides 1.1
95 loizides 1.5 // quarks from W/Z decays or top particles
96 loizides 1.7 else if (p->IsQuark() && p->HasMother()) {
97     if (p->Mother()->Is(MCParticle::kZ) || p->Mother()->Is(MCParticle::kW) ||
98     p->Is(MCParticle::kTop) || p->Mother()->Is(MCParticle::kTop)) {
99 loizides 1.5 GenQuarks->Add(p);
100 loizides 1.1 }
101 loizides 1.5 }
102 loizides 1.1
103 loizides 1.5 // qqH, information about the forward jets
104 loizides 1.8 else if (isqqH == kFALSE && p->Is(MCParticle::kH)) {
105 loizides 1.5 isqqH = kTRUE;
106     MCParticle *pq1 = fParticles->At(i-1);
107     MCParticle *pq2 = fParticles->At(i-2);
108 loizides 1.7 if (!pq1 || !pq2) {
109     SendError(kWarning, "Process", "Could not find quark pair!");
110 loizides 1.8 } else if (pq1->IsQuark() && pq2->IsQuark() &&
111     pq1->HasMother() && pq2->HasMother() &&
112     pq1->Mother()->PdgId() == p->Mother()->PdgId() &&
113     pq2->Mother()->PdgId() == p->Mother()->PdgId()) {
114 loizides 1.5 GenqqHs->Add(pq1);
115     GenqqHs->Add(pq2);
116 loizides 1.1 }
117 loizides 1.7 if (p->Status() == 3)
118     GenBosons->Add(p); // take higgs boson in account here rather in next else if
119 loizides 1.5 }
120 loizides 1.1
121 loizides 1.5 // information about bosons: W, Z, h, Z', W', H0, A0, H+
122 loizides 1.7 else if (p->Status() == 3 &&
123     (p->Is(MCParticle::kZ) || p->Is(MCParticle::kW) || p->Is(MCParticle::kH) ||
124     p->Is(MCParticle::kZp) || p->Is(MCParticle::kZpp) ||
125     p->Is(MCParticle::kH0) || p->Is(MCParticle::kA0) || p->Is(MCParticle::kHp))) {
126 loizides 1.5 GenBosons->Add(p);
127 loizides 1.1 }
128 loizides 1.5 }
129 loizides 1.1
130 loizides 1.8 // add objects to this event for other modules to use
131 loizides 1.7 AddObjThisEvt(GenLeptons, fMCLeptonsName);
132     AddObjThisEvt(GenAllLeptons,fMCAllLeptonsName);
133     AddObjThisEvt(GenTaus, fMCTausName);
134     AddObjThisEvt(GenNeutrinos, fMCNeutrinosName);
135     AddObjThisEvt(GenQuarks, fMCQuarksName);
136     AddObjThisEvt(GenqqHs, fMCqqHsName);
137     AddObjThisEvt(GenBosons, fMCBosonsName);
138 loizides 1.1
139 loizides 1.5 // fill histograms if requested
140     if (fFillHist) {
141    
142 loizides 1.6 // leptons
143 loizides 1.1 hDGenLeptons[0]->Fill(GenLeptons->GetEntries());
144 loizides 1.5 Int_t idxMaxLep[2] = {-1, -1};
145     Double_t ptMaxLep[2] = {-1, -1};
146     for(UInt_t i=0; i<GenLeptons->GetEntries(); i++) {
147 loizides 1.1 hDGenLeptons[1]->Fill(GenLeptons->At(i)->Pt());
148 loizides 1.5 hDGenLeptons[2]->Fill(TMath::Abs(GenLeptons->At(i)->Eta()));
149     hDGenLeptons[3]->Fill(GenLeptons->At(i)->PhiDeg());
150     for(UInt_t j=i+1; j<GenLeptons->GetEntries(); j++) {
151 loizides 1.1 CompositeParticle *dilepton = new CompositeParticle();
152     dilepton->AddDaughter(GenLeptons->At(i));
153     dilepton->AddDaughter(GenLeptons->At(j));
154     hDGenLeptons[4]->Fill(dilepton->Mass());
155     delete dilepton;
156     }
157 loizides 1.6 // selecting the two highest pt leptons
158 loizides 1.5 if (GenLeptons->At(i)->Pt() > ptMaxLep[0]) {
159 loizides 1.1 ptMaxLep[1] = ptMaxLep[0];
160     idxMaxLep[1] = idxMaxLep[0];
161     ptMaxLep[0] = GenLeptons->At(i)->Pt();
162     idxMaxLep[0] = i;
163     }
164 loizides 1.5 else if (GenLeptons->At(i)->Pt() > ptMaxLep[1]) {
165 loizides 1.1 ptMaxLep[1] = GenLeptons->At(i)->Pt();
166     idxMaxLep[1] = i;
167     }
168     }
169 loizides 1.6 // looking at events with at least two leptons
170 loizides 1.5 if (ptMaxLep[0] > 0 && ptMaxLep[1] > 0) {
171     hDGenLeptons[5]->Fill(TMath::Min(TMath::Max(TMath::Abs(GenLeptons->At(idxMaxLep[0])->Eta()),
172     TMath::Abs(GenLeptons->At(idxMaxLep[1])->Eta())),
173     4.999));
174     hDGenLeptons[6]->Fill(TMath::Min(TMath::Min(TMath::Abs(GenLeptons->At(idxMaxLep[0])->Eta()),
175     TMath::Abs(GenLeptons->At(idxMaxLep[1])->Eta())),
176     4.999));
177     if (TMath::Abs(GenLeptons->At(idxMaxLep[0])->Eta()) < 2.5 &&
178     TMath::Abs(GenLeptons->At(idxMaxLep[1])->Eta()) < 2.5) {
179 loizides 1.1 hDGenLeptons[7]->Fill(TMath::Min(GenLeptons->At(idxMaxLep[0])->Pt(),199.999));
180 loizides 1.5 if (GenLeptons->At(idxMaxLep[0])->Pt() > 20.0) {
181 loizides 1.1 hDGenLeptons[8]->Fill(TMath::Min(GenLeptons->At(idxMaxLep[1])->Pt(),199.999));
182 loizides 1.5 if (GenLeptons->At(idxMaxLep[1])->Pt() > 10.0) {
183 loizides 1.1 CompositeParticle *dilepton = new CompositeParticle();
184     dilepton->AddDaughter(GenLeptons->At(idxMaxLep[0]));
185     dilepton->AddDaughter(GenLeptons->At(idxMaxLep[1]));
186     hDGenLeptons[9]->Fill(TMath::Min(dilepton->Mass(),999.999));
187     hDGenLeptons[10]->Fill(MathUtils::DeltaPhi(GenLeptons->At(idxMaxLep[0])->Phi(),
188     GenLeptons->At(idxMaxLep[1])->Phi())
189     * 180./ TMath::Pi());
190     delete dilepton;
191     }
192     }
193     }
194     }
195    
196 loizides 1.6 // all leptons
197 ceballos 1.3 hDGenAllLeptons[0]->Fill(GenAllLeptons->GetEntries());
198 loizides 1.5 for(UInt_t i=0; i<GenAllLeptons->GetEntries(); i++) {
199 ceballos 1.3 hDGenAllLeptons[1]->Fill(GenAllLeptons->At(i)->Pt());
200     hDGenAllLeptons[2]->Fill(GenAllLeptons->At(i)->Eta());
201 loizides 1.5 hDGenAllLeptons[3]->Fill(GenAllLeptons->At(i)->PhiDeg());
202 ceballos 1.3 }
203    
204 loizides 1.6 // taus
205 loizides 1.1 hDGenTaus[0]->Fill(GenTaus->GetEntries());
206 loizides 1.5 for(UInt_t i=0; i<GenTaus->GetEntries(); i++) {
207 loizides 1.1 hDGenTaus[1]->Fill(GenTaus->At(i)->Pt());
208     hDGenTaus[2]->Fill(GenTaus->At(i)->Eta());
209 loizides 1.5 hDGenTaus[3]->Fill(GenTaus->At(i)->PhiDeg());
210 loizides 1.1 }
211    
212 loizides 1.6 // neutrinos
213 loizides 1.1 hDGenNeutrinos[0]->Fill(GenNeutrinos->GetEntries());
214     CompositeParticle *neutrinoTotal = new CompositeParticle();
215 loizides 1.5 for(UInt_t i=0; i<GenNeutrinos->GetEntries(); i++) {
216     if (GenNeutrinos->At(i)->HasMother())
217 loizides 1.1 neutrinoTotal->AddDaughter(GenNeutrinos->At(i));
218     }
219 loizides 1.5 if (GenNeutrinos->GetEntries() > 0) {
220 loizides 1.1 hDGenNeutrinos[1]->Fill(neutrinoTotal->Pt());
221     hDGenNeutrinos[2]->Fill(neutrinoTotal->Eta());
222 loizides 1.5 hDGenNeutrinos[3]->Fill(neutrinoTotal->PhiDeg());
223 loizides 1.1 }
224     delete neutrinoTotal;
225    
226 loizides 1.6 // quarks
227 loizides 1.1 hDGenQuarks[0]->Fill(GenQuarks->GetEntries());
228 loizides 1.5 for(UInt_t i=0; i<GenQuarks->GetEntries(); i++) {
229     for(UInt_t j=i+1; j<GenQuarks->GetEntries(); j++) {
230 loizides 1.1 CompositeParticle *dijet = new CompositeParticle();
231     dijet->AddDaughter(GenQuarks->At(i));
232     dijet->AddDaughter(GenQuarks->At(j));
233     hDGenQuarks[1]->Fill(dijet->Pt());
234     hDGenQuarks[2]->Fill(dijet->Mass());
235 loizides 1.5 if (TMath::Abs(GenQuarks->At(i)->Eta()) < 2.5 &&
236     TMath::Abs(GenQuarks->At(j)->Eta()) < 2.5) {
237 loizides 1.1 hDGenQuarks[3]->Fill(dijet->Pt());
238     hDGenQuarks[4]->Fill(dijet->Mass());
239     }
240     delete dijet;
241     }
242 ceballos 1.2 // b quark info
243 loizides 1.5 if (GenQuarks->At(i)->AbsPdgId() == 5) {
244 ceballos 1.2 hDGenQuarks[5]->Fill(GenQuarks->At(i)->Pt());
245     hDGenQuarks[6]->Fill(GenQuarks->At(i)->Eta());
246     hDGenQuarks[7]->Fill(GenQuarks->At(i)->Phi());
247 loizides 1.5 if (ptMaxLep[0] > 20 && ptMaxLep[1] > 15) {
248     if (TMath::Abs(GenLeptons->At(idxMaxLep[0])->Eta()) < 2.5 &&
249     TMath::Abs(GenLeptons->At(idxMaxLep[1])->Eta()) < 2.5) {
250 ceballos 1.2 hDGenQuarks[8]->Fill(GenQuarks->At(i)->Pt());
251     hDGenQuarks[9]->Fill(GenQuarks->At(i)->Eta());
252     hDGenQuarks[10]->Fill(GenQuarks->At(i)->Phi());
253     }
254     }
255     }
256     // t quark info
257 loizides 1.5 else if (GenQuarks->At(i)->AbsPdgId() == 6) {
258 ceballos 1.2 hDGenQuarks[11]->Fill(GenQuarks->At(i)->Pt());
259     hDGenQuarks[12]->Fill(GenQuarks->At(i)->Eta());
260     hDGenQuarks[13]->Fill(GenQuarks->At(i)->Phi());
261     }
262     // light quark info
263     else {
264     hDGenQuarks[14]->Fill(GenQuarks->At(i)->Pt());
265     hDGenQuarks[15]->Fill(GenQuarks->At(i)->Eta());
266     hDGenQuarks[16]->Fill(GenQuarks->At(i)->Phi());
267     }
268 loizides 1.1 }
269    
270 loizides 1.6 // wbf
271 loizides 1.5 if (GenqqHs->GetEntries() == 2) {
272 loizides 1.1 hDGenWBF[0]->Fill(MathUtils::DeltaPhi(GenqqHs->At(0)->Phi(),
273     GenqqHs->At(1)->Phi()) * 180./ TMath::Pi());
274 loizides 1.5 hDGenWBF[1]->Fill(TMath::Abs(GenqqHs->At(0)->Eta()-GenqqHs->At(1)->Eta()));
275 loizides 1.1 hDGenWBF[2]->Fill(TMath::Max(GenqqHs->At(0)->Pt(),GenqqHs->At(1)->Pt()));
276     hDGenWBF[3]->Fill(TMath::Min(GenqqHs->At(0)->Pt(),GenqqHs->At(1)->Pt()));
277     CompositeParticle *diqq = new CompositeParticle();
278     diqq->AddDaughter(GenqqHs->At(0));
279     diqq->AddDaughter(GenqqHs->At(1));
280     hDGenWBF[4]->Fill(diqq->Mass());
281     delete diqq;
282     }
283    
284 loizides 1.6 // bosons
285 loizides 1.1 hDGenBosons[0]->Fill(GenBosons->GetEntries());
286 loizides 1.5 for(UInt_t i=0; i<GenBosons->GetEntries(); i++) {
287 loizides 1.1 hDGenBosons[1]->Fill(GenBosons->At(i)->Pt());
288     hDGenBosons[2]->Fill(GenBosons->At(i)->Eta());
289     hDGenBosons[3]->Fill(GenBosons->At(i)->Mass());
290     }
291     }
292     }
293    
294     //--------------------------------------------------------------------------------------------------
295     void GeneratorMod::SlaveBegin()
296     {
297 loizides 1.5 // Book branch and histograms if wanted.
298    
299 loizides 1.1 ReqBranch(fMCPartName, fParticles);
300    
301 loizides 1.5 // fill histograms
302     if (fFillHist == kTRUE) {
303     char sb[1024];
304    
305 loizides 1.6 // leptons from W
306 loizides 1.1 sprintf(sb,"hDGenLeptons_%d", 0); hDGenLeptons[0] = new TH1D(sb,sb,10,-0.5,9.5);
307     sprintf(sb,"hDGenLeptons_%d", 1); hDGenLeptons[1] = new TH1D(sb,sb,100,0.0,200.0);
308     sprintf(sb,"hDGenLeptons_%d", 2); hDGenLeptons[2] = new TH1D(sb,sb,50,0.0,5.0);
309     sprintf(sb,"hDGenLeptons_%d", 3); hDGenLeptons[3] = new TH1D(sb,sb,90,0.0,180.0);
310     sprintf(sb,"hDGenLeptons_%d", 4); hDGenLeptons[4] = new TH1D(sb,sb,1000,0.0,1000.0);
311     sprintf(sb,"hDGenLeptons_%d", 5); hDGenLeptons[5] = new TH1D(sb,sb,50,0.0,5.0);
312     sprintf(sb,"hDGenLeptons_%d", 6); hDGenLeptons[6] = new TH1D(sb,sb,50,0.0,5.0);
313     sprintf(sb,"hDGenLeptons_%d", 7); hDGenLeptons[7] = new TH1D(sb,sb,100,0.0,200.0);
314     sprintf(sb,"hDGenLeptons_%d", 8); hDGenLeptons[8] = new TH1D(sb,sb,100,0.0,200.0);
315     sprintf(sb,"hDGenLeptons_%d", 9); hDGenLeptons[9] = new TH1D(sb,sb,1000,0.0,1000.0);
316     sprintf(sb,"hDGenLeptons_%d",10); hDGenLeptons[10] = new TH1D(sb,sb,90,0.0,180.0);
317 loizides 1.5 for(Int_t i=0; i<11; i++) AddOutput(hDGenLeptons[i]);
318 loizides 1.1
319 loizides 1.6 // all leptons
320 ceballos 1.3 sprintf(sb,"hDGenAllLeptons_%d", 0); hDGenAllLeptons[0] = new TH1D(sb,sb,10,-0.5,9.5);
321     sprintf(sb,"hDGenAllLeptons_%d", 1); hDGenAllLeptons[1] = new TH1D(sb,sb,100,0.0,200.0);
322     sprintf(sb,"hDGenAllLeptons_%d", 2); hDGenAllLeptons[2] = new TH1D(sb,sb,60,-3.0,3.0);
323     sprintf(sb,"hDGenAllLeptons_%d", 3); hDGenAllLeptons[3] = new TH1D(sb,sb,90,0.0,180.0);
324 loizides 1.5 for(Int_t i=0; i<4; i++) AddOutput(hDGenAllLeptons[i]);
325 ceballos 1.3
326 loizides 1.6 // taus
327 loizides 1.1 sprintf(sb,"hDGenTaus_%d", 0); hDGenTaus[0] = new TH1D(sb,sb,10,-0.5,9.5);
328     sprintf(sb,"hDGenTaus_%d", 1); hDGenTaus[1] = new TH1D(sb,sb,100,0.0,200.0);
329     sprintf(sb,"hDGenTaus_%d", 2); hDGenTaus[2] = new TH1D(sb,sb,100,-5.0,5.0);
330     sprintf(sb,"hDGenTaus_%d", 3); hDGenTaus[3] = new TH1D(sb,sb,90,0.0,180.0);
331 loizides 1.5 for(Int_t i=0; i<4; i++) AddOutput(hDGenTaus[i]);
332 loizides 1.1
333 loizides 1.6 // neutrinos
334 loizides 1.1 sprintf(sb,"hDGenNeutrinos_%d", 0); hDGenNeutrinos[0] = new TH1D(sb,sb,10,-0.5,9.5);
335     sprintf(sb,"hDGenNeutrinos_%d", 1); hDGenNeutrinos[1] = new TH1D(sb,sb,100,0.0,200.0);
336     sprintf(sb,"hDGenNeutrinos_%d", 2); hDGenNeutrinos[2] = new TH1D(sb,sb,100,-5.0,5.0);
337     sprintf(sb,"hDGenNeutrinos_%d", 3); hDGenNeutrinos[3] = new TH1D(sb,sb,90,0.0,180.0);
338 loizides 1.5 for(Int_t i=0; i<4; i++) AddOutput(hDGenNeutrinos[i]);
339 loizides 1.1
340 loizides 1.6 // quarks
341 loizides 1.1 sprintf(sb,"hDGenQuarks_%d", 0); hDGenQuarks[0] = new TH1D(sb,sb,10,-0.5,9.5);
342     sprintf(sb,"hDGenQuarks_%d", 1); hDGenQuarks[1] = new TH1D(sb,sb,200,0.0,400.);
343     sprintf(sb,"hDGenQuarks_%d", 2); hDGenQuarks[2] = new TH1D(sb,sb,2000,0.0,2000.);
344     sprintf(sb,"hDGenQuarks_%d", 3); hDGenQuarks[3] = new TH1D(sb,sb,200,0.0,400.);
345     sprintf(sb,"hDGenQuarks_%d", 4); hDGenQuarks[4] = new TH1D(sb,sb,2000,0.0,2000.);
346 ceballos 1.2 sprintf(sb,"hDGenQuarks_%d", 5); hDGenQuarks[5] = new TH1D(sb,sb,200,0.0,400.);
347     sprintf(sb,"hDGenQuarks_%d", 6); hDGenQuarks[6] = new TH1D(sb,sb,200,-10.0,10.);
348 loizides 1.5 sprintf(sb,"hDGenQuarks_%d", 7); hDGenQuarks[7] = new TH1D(sb,sb,200,-TMath::Pi(),
349     TMath::Pi());
350 ceballos 1.2 sprintf(sb,"hDGenQuarks_%d", 8); hDGenQuarks[8] = new TH1D(sb,sb,200,0.0,400.);
351     sprintf(sb,"hDGenQuarks_%d", 9); hDGenQuarks[9] = new TH1D(sb,sb,200,-10.0,10.);
352 loizides 1.5 sprintf(sb,"hDGenQuarks_%d",10); hDGenQuarks[10] = new TH1D(sb,sb,200,-TMath::Pi(),
353     TMath::Pi());
354 ceballos 1.2 sprintf(sb,"hDGenQuarks_%d",11); hDGenQuarks[11] = new TH1D(sb,sb,200,0.0,400.);
355     sprintf(sb,"hDGenQuarks_%d",12); hDGenQuarks[12] = new TH1D(sb,sb,200,-10.0,10.);
356 loizides 1.5 sprintf(sb,"hDGenQuarks_%d",13); hDGenQuarks[13] = new TH1D(sb,sb,200,-TMath::Pi(),
357     TMath::Pi());
358 ceballos 1.2 sprintf(sb,"hDGenQuarks_%d",14); hDGenQuarks[14] = new TH1D(sb,sb,200,0.0,400.);
359     sprintf(sb,"hDGenQuarks_%d",15); hDGenQuarks[15] = new TH1D(sb,sb,200,-10.0,10.);
360 loizides 1.5 sprintf(sb,"hDGenQuarks_%d",16); hDGenQuarks[16] = new TH1D(sb,sb,200,-TMath::Pi(),
361     TMath::Pi());
362     for(Int_t i=0; i<17; i++) AddOutput(hDGenQuarks[i]);
363 loizides 1.1
364     // qqH
365     sprintf(sb,"hDGenWBF_%d", 0); hDGenWBF[0] = new TH1D(sb,sb,90,0.0,180.);
366     sprintf(sb,"hDGenWBF_%d", 1); hDGenWBF[1] = new TH1D(sb,sb,100,0.0,10.);
367     sprintf(sb,"hDGenWBF_%d", 2); hDGenWBF[2] = new TH1D(sb,sb,200,0.0,400.);
368     sprintf(sb,"hDGenWBF_%d", 3); hDGenWBF[3] = new TH1D(sb,sb,200,0.0,400.);
369     sprintf(sb,"hDGenWBF_%d", 4); hDGenWBF[4] = new TH1D(sb,sb,200,0.0,4000.);
370 loizides 1.5 for(Int_t i=0; i<5; i++) AddOutput(hDGenWBF[i]);
371 loizides 1.1
372 loizides 1.6 // bosons
373 loizides 1.1 sprintf(sb,"hDGenBosons_%d", 0); hDGenBosons[0] = new TH1D(sb,sb,10,-0.5,9.5);
374     sprintf(sb,"hDGenBosons_%d", 1); hDGenBosons[1] = new TH1D(sb,sb,200,0.0,400.0);
375     sprintf(sb,"hDGenBosons_%d", 2); hDGenBosons[2] = new TH1D(sb,sb,100,-5.0,5.0);
376     sprintf(sb,"hDGenBosons_%d", 3); hDGenBosons[3] = new TH1D(sb,sb,2000,0.0,2000.0);
377 loizides 1.5 for(Int_t i=0; i<4; i++) AddOutput(hDGenBosons[i]);
378 loizides 1.1 }
379     }