R3BROOT
R3B analysis software
Toggle main menu visibility
Loading...
Searching...
No Matches
R3BNeulandNeutronReconstructionStatistics.h
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
#ifndef R3BROOT_R3BNEULANDNEUTRONRECONSTRUCTIONSTATISTICS_H
15
#define R3BROOT_R3BNEULANDNEUTRONRECONSTRUCTIONSTATISTICS_H
16
17
#include "FairTask.h"
18
#include "
R3BDataMonitor.h
"
19
#include "
R3BIOConnector.h
"
20
#include "
R3BNeulandCluster.h
"
21
#include "
R3BNeulandNeutron.h
"
22
#include <Rtypes.h>
23
#include <RtypesCore.h>
24
#include <TH1.h>
25
#include <string>
26
#include <string_view>
27
#include <vector>
28
29
class
R3BNeulandNeutronReconstructionStatistics
:
public
FairTask
30
{
31
public
:
32
explicit
R3BNeulandNeutronReconstructionStatistics
(std::string_view primary =
"NeulandNeutronClusters"
,
33
std::string_view secondary =
"NeulandPrimaryClusters"
,
34
std::string_view predicted =
"NeulandSecondaryClusters"
);
35
36
protected
:
37
auto
Init
() -> InitStatus
override
;
38
void
Finish
()
override
;
39
40
public
:
41
void
Exec
(Option_t*
/*option*/
)
override
;
42
43
private
:
44
int
true_positive_
= 0;
45
int
false_positive_
= 0;
46
int
false_negative_
= 0;
47
int
true_negative_
= 0;
48
49
R3B::InputVectorConnector<R3BNeulandCluster>
primary_clusters_
;
50
R3B::InputVectorConnector<R3BNeulandCluster>
secondary_clusters_
;
51
R3B::InputVectorConnector<R3BNeulandNeutron>
predicted_neutrons_
;
52
std::string
predicted_name_
;
53
54
TH1D*
hist_true_positive_
=
nullptr
;
55
TH1D*
hist_false_positive_
=
nullptr
;
56
TH1D*
hist_false_negative_
=
nullptr
;
57
TH1D*
hist_true_negative_
=
nullptr
;
58
TH1D*
hist_f1_value_
=
nullptr
;
59
60
std::vector<int>
multiplicities_
;
61
R3B::DataMonitor
data_monitor_
;
62
63
public
:
64
ClassDefOverride
(
R3BNeulandNeutronReconstructionStatistics
, 1);
65
};
66
67
#endif
// R3BROOT_R3BNEULANDNEUTRONRECONSTRUCTIONSTATISTICS_H
R3BDataMonitor.h
R3BIOConnector.h
R3BNeulandCluster.h
R3BNeulandNeutron.h
R3B::DataMonitor
Definition
R3BDataMonitor.h:38
R3BNeulandNeutronReconstructionStatistics::R3BNeulandNeutronReconstructionStatistics
R3BNeulandNeutronReconstructionStatistics(std::string_view primary="NeulandNeutronClusters", std::string_view secondary="NeulandPrimaryClusters", std::string_view predicted="NeulandSecondaryClusters")
Definition
R3BNeulandNeutronReconstructionStatistics.cxx:46
R3BNeulandNeutronReconstructionStatistics::false_negative_
int false_negative_
Definition
R3BNeulandNeutronReconstructionStatistics.h:46
R3BNeulandNeutronReconstructionStatistics::predicted_name_
std::string predicted_name_
Definition
R3BNeulandNeutronReconstructionStatistics.h:52
R3BNeulandNeutronReconstructionStatistics::true_positive_
int true_positive_
Definition
R3BNeulandNeutronReconstructionStatistics.h:44
R3BNeulandNeutronReconstructionStatistics::hist_f1_value_
TH1D * hist_f1_value_
Definition
R3BNeulandNeutronReconstructionStatistics.h:58
R3BNeulandNeutronReconstructionStatistics::secondary_clusters_
R3B::InputVectorConnector< R3BNeulandCluster > secondary_clusters_
Definition
R3BNeulandNeutronReconstructionStatistics.h:50
R3BNeulandNeutronReconstructionStatistics::primary_clusters_
R3B::InputVectorConnector< R3BNeulandCluster > primary_clusters_
Definition
R3BNeulandNeutronReconstructionStatistics.h:49
R3BNeulandNeutronReconstructionStatistics::data_monitor_
R3B::DataMonitor data_monitor_
Definition
R3BNeulandNeutronReconstructionStatistics.h:61
R3BNeulandNeutronReconstructionStatistics::multiplicities_
std::vector< int > multiplicities_
Definition
R3BNeulandNeutronReconstructionStatistics.h:60
R3BNeulandNeutronReconstructionStatistics::false_positive_
int false_positive_
Definition
R3BNeulandNeutronReconstructionStatistics.h:45
R3BNeulandNeutronReconstructionStatistics::ClassDefOverride
ClassDefOverride(R3BNeulandNeutronReconstructionStatistics, 1)
R3BNeulandNeutronReconstructionStatistics::Finish
void Finish() override
Definition
R3BNeulandNeutronReconstructionStatistics.cxx:144
R3BNeulandNeutronReconstructionStatistics::predicted_neutrons_
R3B::InputVectorConnector< R3BNeulandNeutron > predicted_neutrons_
Definition
R3BNeulandNeutronReconstructionStatistics.h:51
R3BNeulandNeutronReconstructionStatistics::hist_true_positive_
TH1D * hist_true_positive_
Definition
R3BNeulandNeutronReconstructionStatistics.h:54
R3BNeulandNeutronReconstructionStatistics::hist_true_negative_
TH1D * hist_true_negative_
Definition
R3BNeulandNeutronReconstructionStatistics.h:57
R3BNeulandNeutronReconstructionStatistics::hist_false_positive_
TH1D * hist_false_positive_
Definition
R3BNeulandNeutronReconstructionStatistics.h:55
R3BNeulandNeutronReconstructionStatistics::Exec
void Exec(Option_t *) override
Definition
R3BNeulandNeutronReconstructionStatistics.cxx:78
R3BNeulandNeutronReconstructionStatistics::hist_false_negative_
TH1D * hist_false_negative_
Definition
R3BNeulandNeutronReconstructionStatistics.h:56
R3BNeulandNeutronReconstructionStatistics::true_negative_
int true_negative_
Definition
R3BNeulandNeutronReconstructionStatistics.h:47
R3BNeulandNeutronReconstructionStatistics::Init
auto Init() -> InitStatus override
Definition
R3BNeulandNeutronReconstructionStatistics.cxx:57
R3B::InputVectorConnector
InputConnector< std::vector< ElementType > > InputVectorConnector
Definition
R3BIOConnector.h:290
neuland
reconstruction
R3BNeulandNeutronReconstructionStatistics.h
Generated by
1.18.0