16 auto timer = TStopwatch{};
19 FairLogger::GetLogger()->SetLogScreenLevel(
"info");
21 auto run = FairRunAna{};
22 run.SetSource(
new FairFileSource(
"test.simu.root"));
23 run.SetSink(
new FairRootFileSink(
"test.digi.root"));
25 auto io =
new FairParRootFileIo();
26 io->open(
"test.para.root");
27 run.GetRuntimeDb()->setFirstInput(io);
30 digi_options.channel =
"tamex";
31 digi_options.paddle =
"neuland";
32 digi_options.enable_sim_cal =
false;
34 run.AddTask(task.release());
35 run.AddTask(std::make_unique<R3BNeulandClusterFinder>().release());
36 run.AddTask(std::make_unique<R3BNeulandPrimaryInteractionFinder>().release());
37 run.AddTask(std::make_unique<R3BNeulandPrimaryClusterFinder>().release());
43 std::cout <<
"Macro finished successfully.\n";
44 std::cout <<
"Real time: " << timer.RealTime() <<
"s, CPU time: " << timer.CpuTime() <<
"s\n";