R3BROOT
R3B analysis software
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 "R3BNeulandCluster.h"
19#include "R3BNeulandNeutron.h"
20#include "TCAConnector.h"
21#include <TH1.h>
22#include <iostream>
23
25{
26 public:
27 explicit R3BNeulandNeutronReconstructionStatistics(TString primary = "NeulandNeutronClusters",
28 TString secondary = "NeulandPrimaryClusters",
29 TString predicted = "NeulandSecondaryClusters",
30 std::ostream& out = std::cout);
31
32 protected:
33 auto Init() -> InitStatus override;
34 void Finish() override;
35
36 public:
37 void Exec(Option_t*) override;
38
39 private:
41 TCAInputConnector<R3BNeulandCluster> fSecondaryClusters;
42 TCAInputConnector<R3BNeulandNeutron> fPredictedNeutrons;
43 TString fPredictedName;
44 TH1D* fhTP;
45 TH1D* fhFP;
46 TH1D* fhFN;
47 TH1D* fhTN;
48 TH1D* fhF1;
49 int fTP;
50 int fFP;
51 int fFN;
52 int fTN;
53 std::ostream& fOut;
54 std::vector<int> fMult;
55
56 public:
58};
59
60#endif // R3BROOT_R3BNEULANDNEUTRONRECONSTRUCTIONSTATISTICS_H
ClassDefOverride(R3BNeulandNeutronReconstructionStatistics, 0)
R3BNeulandNeutronReconstructionStatistics(TString primary="NeulandNeutronClusters", TString secondary="NeulandPrimaryClusters", TString predicted="NeulandSecondaryClusters", std::ostream &out=std::cout)