ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/src/GeneratorMod.cc
Revision: 1.7
Committed: Mon Nov 24 14:13:20 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.6: +47 -44 lines
Log Message:
Reworked. Bosons are now status=3. Taus are hadronic only.

File Contents

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