R3BROOT
R3B analysis software
Toggle main menu visibility
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
14
void
testNeulandDigitizer
()
15
{
16
auto
timer = TStopwatch{};
17
timer.Start();
18
19
FairLogger::GetLogger()->SetLogScreenLevel(
"info"
);
20
21
auto
run = FairRunAna{};
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
29
auto
digi_options =
R3B::Neuland::DigiTaskOptions
();
30
digi_options.channel =
"tamex"
;
31
digi_options.paddle =
"neuland"
;
32
digi_options.enable_sim_cal =
false
;
33
auto
task =
R3B::Neuland::Digitizer::Create
(digi_options, &run);
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());
38
39
run.Init();
40
run.Run(0, 0);
41
42
timer.Stop();
43
std::cout <<
"Macro finished successfully.\n"
;
44
std::cout <<
"Real time: "
<< timer.RealTime() <<
"s, CPU time: "
<< timer.CpuTime() <<
"s\n"
;
45
}
R3B::Neuland::Digitizer::Create
static auto Create(const R3B::Neuland::DigiTaskOptions &option, FairRun *run) -> std::unique_ptr< Digitizer >
Generator of the digitizing class.
Definition
R3BNeulandDigitizer.cxx:345
R3B::Neuland::DigiTaskOptions
Configuration struct for R3B::Neuland::Digitizer used in R3B::Neuland::AnalysisApplication.
Definition
R3BNeulandDigitizer.h:69
testNeulandDigitizer
void testNeulandDigitizer()
Definition
testNeulandDigitizer.C:14
neuland
test
testNeulandDigitizer.C
Generated by
1.18.0