42 |
|
// when they are accessed |
43 |
|
|
44 |
|
// (re-)set the pointers using the ObjectHandler |
45 |
< |
ObjectHandler* objs = ObjectHandler::Instance(); |
46 |
< |
m_bcc = objs->GetBaseCycleContainer(); |
47 |
< |
m_lumi = objs->GetLumiHandler(); |
45 |
> |
|
46 |
> |
//m_bcc = ? |
47 |
> |
//m_lumi = ? |
48 |
|
|
49 |
|
// reset booleans |
50 |
|
b_HT = false; |
54 |
|
m_TotalWeight = 1.; |
55 |
|
|
56 |
|
m_primlep = NULL; |
57 |
+ |
delete m_ttgen; |
58 |
|
m_ttgen = NULL; |
59 |
|
|
60 |
|
} |
61 |
|
|
62 |
+ |
void EventCalc::SetBaseCycleContainer(BaseCycleContainer* bcc) |
63 |
+ |
{ |
64 |
+ |
// set the internal pointer to the container with all objects |
65 |
+ |
m_bcc = bcc; |
66 |
+ |
m_logger << DEBUG << "Pointer to BaseCycleContainer set." << SLogger::endmsg; |
67 |
+ |
} |
68 |
+ |
|
69 |
+ |
void EventCalc::SetLumiHandler(LuminosityHandler* lh) |
70 |
+ |
{ |
71 |
+ |
// set the internal pointer to the container with all objects |
72 |
+ |
m_lumi = lh; |
73 |
+ |
m_logger << DEBUG << "Pointer to LumiHandler set." << SLogger::endmsg; |
74 |
+ |
} |
75 |
+ |
|
76 |
|
BaseCycleContainer* EventCalc::GetBaseCycleContainer() |
77 |
|
{ |
78 |
|
// return the pointer to the container with all objects |
175 |
|
TTbarGen* EventCalc::GetTTbarGen(){ |
176 |
|
|
177 |
|
if(!m_ttgen){ |
178 |
< |
m_ttgen = new TTbarGen(); |
178 |
> |
m_ttgen = new TTbarGen(m_bcc); |
179 |
|
} |
180 |
|
|
181 |
|
return m_ttgen; |