R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
testNeulandDigitizer.C
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
15{
16 TStopwatch timer;
17 timer.Start();
18
19 FairLogger::GetLogger()->SetLogScreenLevel("debug");
20
21 FairRunAna run;
22 run.SetSource(new FairFileSource("test.simu.root"));
23 run.SetSink(new FairRootFileSink("test.digi.root"));
24
25 auto io = new FairParRootFileIo();
26 io->open("test.para.root");
27 run.GetRuntimeDb()->setFirstInput(io);
28
30 run.AddTask(new R3BNeulandClusterFinder());
31 run.AddTask(new R3BNeulandPrimaryInteractionFinder());
32 run.AddTask(new R3BNeulandPrimaryClusterFinder());
33
34 run.Init();
35 run.Run(0, 0);
36
37 timer.Stop();
38 cout << "Macro finished successfully." << endl;
39 cout << "Real time: " << timer.RealTime() << "s, CPU time: " << timer.CpuTime() << "s" << endl;
40}
NeuLAND digitizing finder task.
void testNeulandDigitizer()