|
26 | 26 |
|
27 | 27 | #include "LEAF.hh"
|
28 | 28 | #include "HKManager.hh"
|
| 29 | +#ifdef WITH_BONSAI |
29 | 30 | #include "WCSimBonsai.hh"
|
| 31 | +#endif |
30 | 32 |
|
31 | 33 | #define OLD_WCSIM // To be used if WCSim version is older than 1.8 (i.e. without multi vertex)
|
32 | 34 | #define mPMT // To be used if you are using mPMT
|
@@ -256,10 +258,11 @@ int main(int argc, char** argv){
|
256 | 258 | HKAstroAnalysis::GetME()->Initialize(HKManager::GetME()->GetGeometry());
|
257 | 259 | #endif
|
258 | 260 |
|
| 261 | +#ifdef WITH_BONSAI |
259 | 262 | // Initialize Bonsai
|
260 | 263 | WCSimBonsai* fBonsai = new WCSimBonsai();
|
261 | 264 | fBonsai->Init(fGeometry);
|
262 |
| - |
| 265 | +#endif |
263 | 266 | // Read Input Tree
|
264 | 267 | int nPrimaryEvents = fInputTree->GetEntries();
|
265 | 268 | int iWrite = 0;
|
@@ -330,14 +333,15 @@ int main(int argc, char** argv){
|
330 | 333 | Hit_OD_400 = 0;
|
331 | 334 |
|
332 | 335 |
|
| 336 | +#ifdef WITH_BONSAI |
333 | 337 | // re-initialize Bonsai input
|
334 | 338 | for ( int iHit = 0; iHit < 2000; iHit++ ) {
|
335 | 339 | bsCAB[iHit] = 0;
|
336 | 340 | bsT [iHit] = 0.;
|
337 | 341 | bsQ [iHit] = 0.;
|
338 | 342 | }
|
339 | 343 | bsnhit[0] = 0;
|
340 |
| - |
| 344 | +#endif |
341 | 345 | leaf_output.Vtx[0] = 0.;
|
342 | 346 | leaf_output.Vtx[1] = 0.;
|
343 | 347 | leaf_output.Vtx[2] = 0.;
|
@@ -470,6 +474,7 @@ int main(int argc, char** argv){
|
470 | 474 | //std::cout << " n50 " << leaf_output_ana.n50[0] << " " << leaf_output_ana.n50[1] << " " << leaf_output_ana.n50[2] << std::endl;
|
471 | 475 | std::cout << " LEAF took: " << timerLF.RealTime() << " for " << HKManager::GetME()->GetHitCollection()->Size() << " Hits"<< std::endl;
|
472 | 476 |
|
| 477 | +#ifdef WITH_BONSAI |
473 | 478 | /****************************************************************************************/
|
474 | 479 | /* Bonsai */
|
475 | 480 | /****************************************************************************************/
|
@@ -529,7 +534,7 @@ int main(int argc, char** argv){
|
529 | 534 |
|
530 | 535 | fBSTime = timerBS.RealTime();
|
531 | 536 | }
|
532 |
| - |
| 537 | +#endif |
533 | 538 | /****************************************************************************************/
|
534 | 539 | /* Fill output tree */
|
535 | 540 | /****************************************************************************************/
|
|
0 commit comments