ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/src/GeneratorMod.cc
Revision: 1.12
Committed: Mon Dec 1 11:44:34 2008 UTC (16 years, 5 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.11: +3 -3 lines
Log Message:
removed eta cut for photons

File Contents

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