R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandNeutronsKeras.h
Go to the documentation of this file.
1#ifndef R3BROOT_R3BNEULANDNEUTRONSKERAS_H
2#define R3BROOT_R3BNEULANDNEUTRONSKERAS_H
3
4#include "FairTask.h"
5#include "R3BNeulandCluster.h"
7#include "R3BNeulandNeutron.h"
8#include "TCAConnector.h"
9#include "TClonesArray.h"
10
11class R3BNeulandNeutronsKeras : public FairTask
12{
13 public:
14 R3BNeulandNeutronsKeras(TString model,
15 TString scaler,
16 TString inputMult = "NeulandMultiplicity",
17 TString inputCluster = "NeulandClusters",
18 TString output = "NeulandNeutrons");
19 ~R3BNeulandNeutronsKeras() override = default;
20 void Exec(Option_t*) override;
21
22 void SetMinProb(double p) { fMinProb = p; }
23
24 protected:
25 InitStatus Init() override;
26
27 private:
28 const TString fInputMult;
29 const R3BNeulandMultiplicity* fMultiplicity;
30
31 const TString fInputCluster;
32 TClonesArray* fClusters;
33
35 double fMinProb;
36 // const TString fPredictor; //!
37 // const boost::format fFormatter; //!
38 // const char* fFmt; //!
39
40 struct ClusterWithProba
41 {
43 double p;
44
45 bool operator<(const ClusterWithProba& o) const { return this->p < o.p; }
46 bool operator>(const ClusterWithProba& o) const { return this->p > o.p; }
47 };
48
49 ClassDefOverride(R3BNeulandNeutronsKeras, 0)
50};
51
52#endif // R3BROOT_R3BNEULANDNEUTRONSKERAS_H
static const Double_t c
R3BNeulandNeutronsKeras(TString model, TString scaler, TString inputMult="NeulandMultiplicity", TString inputCluster="NeulandClusters", TString output="NeulandNeutrons")
~R3BNeulandNeutronsKeras() override=default
void Exec(Option_t *) override