PandaRoot
PndPidIdealAssociatorTask.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_IDEALASSOCIATOR_H
14 #define PID_IDEALASSOCIATOR_H
15 
16 // **************************************************************************
17 // Author: Ralf Kliemt e-mail: r.kliemt@physik.tu-dresden.de
18 //
19 // pid simple classifier
20 // Warning - will use Monte-Carlo information
21 //
22 // Created: 01-09-09
23 // Modified:
24 //
25 // **************************************************************************
26 
27 #include "TClonesArray.h"
28 #include "FairTask.h"
29 
30 class PndPidCandidate;
31 class PndPidProbability;
32 
33 class PndPidIdealAssociatorTask : public FairTask {
34 
35  protected:
36  // TString fNeutralBranchName;
38 
40 
41  TClonesArray *fPidChargedCand;
42  // TClonesArray* fPidNeutralCand; //! PndPidCandidate TCA for neutral particles
43  TClonesArray *fPidChargedProb;
44  // TClonesArray* fPidNeutralProb; //! PndPidProbability TCA for neutral particles
45  TClonesArray *fMCTrack;
46 
47  void DoChargedPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob); // cheating for each candidate
48  // void DoNeutralPidMatch(PndPidCandidate* pidcand, PndPidProbability* prob); // cheating for each candidate
49 
50  public:
51  virtual void Exec(Option_t *option);
52  virtual InitStatus Init(); //
53 
54  void Register();
55  void Reset();
56 
57  PndPidIdealAssociatorTask(const char *name, const char *title = "Pnd Task");
60 
61  void SetToOnlyOne();
62  void SetVerbose(Bool_t verb) { fVerbose = verb; };
63 
65  virtual void SetParContainers();
66  virtual void Finish();
67 
68  void SetOutputBranch(TString branch) { fTrackBranchNamePidHypo = branch; };
69 
70  ClassDef(PndPidIdealAssociatorTask, 1) // PndPidIdealAssociatorTask
71 };
72 
73 #endif
void DoChargedPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
Monte-Carlo Truth track TCA.
virtual void Exec(Option_t *option)
void SetOutputBranch(TString branch)
virtual InitStatus Init()
virtual ~PndPidIdealAssociatorTask()
TClonesArray * fPidChargedProb
PndPidCandidate TCA for charged particles.
TClonesArray * fMCTrack
PndPidProbability TCA for charged particles.
virtual void SetParContainers()