PandaRoot
PndPidMlAssociatorTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PID_MLASSOCIATOR_H
14 #define PID_MLASSOCIATOR_H
15 
16 // **************************************************************************
17 // Author: Waleed Esmail e-mail: w.esmail@fz-juelich.de
18 //
19 // Output Probability Distributions from Ml Algorithms
20 //
21 // Created: 17-03-18
22 //
23 // **************************************************************************
24 
25 #include "TClonesArray.h"
26 #include "FairTask.h"
27 #include "TTree.h"
28 #include "TFile.h"
29 
30 class PndPidCandidate;
31 class PndPidProbability;
32 
33 class PndPidMlAssociatorTask : public FairTask {
34 
35  protected:
36  TClonesArray *fPidChargedCand;
37  TClonesArray *fPidAlgoMl = new TClonesArray("PndPidProbability");
38  TClonesArray *fPidChargedProb;
39 
40  TTree *inTree;
41  Int_t i;
42 
43  public:
44  virtual void Exec(Option_t *option);
45  virtual InitStatus Init(); //
46 
47  void Register();
48  void Reset();
49 
50  PndPidMlAssociatorTask(const char *name, const char *title = "Pnd Task");
51  PndPidMlAssociatorTask(TFile *inFile = nullptr);
52  virtual ~PndPidMlAssociatorTask();
53 
54  void SetVerbose(Bool_t verb) { fVerbose = verb; };
55 
57  virtual void SetParContainers();
58  virtual void Finish();
59 
60  ClassDef(PndPidMlAssociatorTask, 1) // PndPidMlTask
61 };
62 
63 #endif
virtual ~PndPidMlAssociatorTask()
Int_t i
Input Tree for Ml outputs.
TClonesArray * fPidChargedProb
PndPidProbability TCA for charged particles.
TClonesArray * fPidAlgoMl
PndPidCandidate TCA for charged particles.
virtual void SetParContainers()
PndPidMlAssociatorTask(const char *name, const char *title="Pnd Task")
virtual void Finish()
TTree * inTree
PndPidProbability TCA for charged particles.
virtual InitStatus Init()
virtual void Exec(Option_t *option)
Tree Index.