FairRoot/PandaRoot
PndPidMlAssociatorTask.h
Go to the documentation of this file.
1 #ifndef PID_MLASSOCIATOR_H
2 #define PID_MLASSOCIATOR_H
3 
4 // **************************************************************************
5 // Author: Waleed Esmail e-mail: w.esmail@fz-juelich.de
6 //
7 // Output Probability Distributions from Ml Algorithms
8 //
9 // Created: 17-03-18
10 //
11 // **************************************************************************
12 
13 #include "TClonesArray.h"
14 #include "FairTask.h"
15 
16 class PndPidCandidate;
17 class PndPidProbability;
18 
19 class PndPidMlAssociatorTask : public FairTask {
20 
21  protected:
22 
23  TClonesArray* fPidChargedCand;
24  TClonesArray *fPidAlgoMl = new TClonesArray("PndPidProbability");
25  TClonesArray* fPidChargedProb;
26 
27  TTree *inTree;
28  Int_t i;
29 
30  public:
31 
32  virtual void Exec(Option_t * option);
33  virtual InitStatus Init(); //
34 
35  void Register();
36  void Reset();
37 
38  PndPidMlAssociatorTask(const char *name, const char *title="Pnd Task");
39  PndPidMlAssociatorTask(TFile *inFile=nullptr);
40  virtual ~PndPidMlAssociatorTask();
41 
42  void SetVerbose(Bool_t verb) { fVerbose = verb;};
43 
45  virtual void SetParContainers();
46  virtual void Finish();
47 
48  ClassDef(PndPidMlAssociatorTask,1) // PndPidMlTask
49 
50  };
51 
52 #endif
int fVerbose
Definition: poormantracks.C:24
Int_t i
Input Tree for Ml outputs.
TClonesArray * fPidChargedProb
PndPidProbability TCA for charged particles.
TString inFile
Definition: hit_dirc.C:8
TClonesArray * fPidAlgoMl
PndPidCandidate TCA for charged particles.
virtual void Exec(Option_t *option)
Tree Index.
PndPidMlAssociatorTask(const char *name, const char *title="Pnd Task")
TString name
TTree * inTree
PndPidProbability TCA for charged particles.