ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/src/GeneratorMod.cc
Revision: 1.6
Committed: Wed Nov 19 17:26:53 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.5: +20 -22 lines
Log Message:
Removed fNEventsProcessed

File Contents

# User Rev Content
1 loizides 1.6 // $Id: GeneratorMod.cc,v 1.5 2008/11/19 15:44:35 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     MCParticle *p = fParticles->At(i);
53    
54     if (!p->IsGenerated()) continue;
55    
56     // muons/electrons from W/Z decays
57     if ((p->AbsPdgId() == 11 || p->AbsPdgId() == 13) && p->Status() == 1) {
58     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.5 MCParticle *pm = p;
63     while (pm->HasMother() && isGoodLepton == kFALSE) {
64     if (pm->Mother()->AbsPdgId() == 23 || pm->Mother()->AbsPdgId() == 24) {
65     GenLeptons->Add(p);
66     isGoodLepton = kTRUE;
67     }
68     else if(pm->Mother()->AbsPdgId() == 111 || pm->Mother()->AbsPdgId() == 221) {
69     // this is fake, but it is a trick to get rid of these cases
70     isGoodLepton = kTRUE;
71     } else {
72     pm = (MCParticle *)pm->Mother();
73     }
74 loizides 1.1 }
75 loizides 1.5 }
76    
77     // taus
78     else if(p->AbsPdgId() == 16 && p->Status() == 1) {
79 loizides 1.1
80 loizides 1.5 if (p->DistinctMother()) {
81     MCParticle *pm = (mithep::MCParticle*)p->DistinctMother();
82     if(pm->AbsPdgId() == 15) {
83     MCParticle *pm_f = new MCParticle(*pm);
84     pm_f->SetMom(pm->Px()-p->Px(), pm->Py()-p->Py(),
85     pm->Pz()-p->Pz(), pm->E()-p->E());
86     GenTaus->Add(pm_f);
87     }
88 loizides 1.1 }
89 loizides 1.5 }
90 loizides 1.1
91 loizides 1.5 // neutrinos
92     else if (p->Status() == 1 &&
93     (p->AbsPdgId() == 12 || p->AbsPdgId() == 14 || p->AbsPdgId() == 16)) {
94     GenNeutrinos->Add(p);
95     }
96 loizides 1.1
97 loizides 1.5 // quarks from W/Z decays or top particles
98     else if (p->AbsPdgId() >=1 && p->AbsPdgId() <=6 && p->HasMother()) {
99     if(p->Mother()->AbsPdgId() == 23 || p->Mother()->AbsPdgId() == 24 ||
100     p->AbsPdgId() == 6 || p->Mother()->AbsPdgId() == 6) {
101     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     else if(isqqH == kFALSE && p->AbsPdgId() == 25) {
107     isqqH = kTRUE;
108     MCParticle *pq1 = fParticles->At(i-1);
109     MCParticle *pq2 = fParticles->At(i-2);
110    
111     if(pq1->HasMother() && pq2->HasMother() &&
112     pq1->Mother()->PdgId() == p->Mother()->PdgId() &&
113     pq2->Mother()->PdgId() == p->Mother()->PdgId() &&
114     pq1->AbsPdgId() < 7 && pq2->AbsPdgId() < 7 &&
115     pq1->AbsPdgId() > 0 && pq2->AbsPdgId() > 0) {
116     GenqqHs->Add(pq1);
117     GenqqHs->Add(pq2);
118 loizides 1.1 }
119 loizides 1.5 }
120 loizides 1.1
121 loizides 1.5 // information about bosons: W, Z, h, Z', W', H0, A0, H+
122     else if (p->Status() == 2 &&
123     (p->AbsPdgId() == 23 || p->AbsPdgId() == 24 || p->AbsPdgId() == 25 ||
124     p->AbsPdgId() == 32 || p->AbsPdgId() == 34 ||
125     p->AbsPdgId() == 35 || p->AbsPdgId() == 36 || p->AbsPdgId() == 37)) {
126     GenBosons->Add(p);
127 loizides 1.1 }
128 loizides 1.5 }
129 loizides 1.1
130 loizides 1.6 // save objects for other modules to use
131 ceballos 1.3 AddObjThisEvt(GenLeptons, fMCLeptonsName.Data());
132     AddObjThisEvt(GenAllLeptons,fMCAllLeptonsName.Data());
133     AddObjThisEvt(GenTaus, fMCTausName.Data());
134     AddObjThisEvt(GenNeutrinos, fMCNeutrinosName.Data());
135     AddObjThisEvt(GenQuarks, fMCQuarksName.Data());
136     AddObjThisEvt(GenqqHs, fMCqqHsName.Data());
137     AddObjThisEvt(GenBosons, fMCBosonsName.Data());
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     }