51 |
|
b_HTlep = false; |
52 |
|
b_Reconstruction = false; |
53 |
|
|
54 |
+ |
m_TotalWeight = 1.; |
55 |
+ |
|
56 |
|
m_primlep = NULL; |
57 |
|
m_ttgen = NULL; |
58 |
+ |
|
59 |
|
} |
60 |
|
|
61 |
|
BaseCycleContainer* EventCalc::GetBaseCycleContainer() |
253 |
|
|
254 |
|
unsigned int n_jets = m_bcc->jets->size(); |
255 |
|
unsigned int max_j = myPow(3, n_jets); |
256 |
+ |
if(max_j>10) max_j=10; //avoid crashes in events with many jets |
257 |
|
for (unsigned int j=0; j < max_j; j++) { |
258 |
|
LorentzVector tophad_v4(0,0,0,0); |
259 |
|
LorentzVector toplep_v4 = wlep_v4; |
353 |
|
} |
354 |
|
} |
355 |
|
} |
356 |
+ |
|
357 |
+ |
|
358 |
+ |
void EventCalc::ProduceWeight(double weight) |
359 |
+ |
{ |
360 |
+ |
m_TotalWeight = m_TotalWeight * weight; |
361 |
+ |
} |
362 |
+ |
|
363 |
+ |
double EventCalc::GetWeight() |
364 |
+ |
{ |
365 |
+ |
|
366 |
+ |
return m_TotalWeight; |
367 |
+ |
} |
368 |
+ |
|