PandaRoot
PndPidIdealFwdOnlyAssociatorTask.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_IDEALFWDONLYASSOCIATOR_H
14 #define PID_IDEALFWDONLYASSOCIATOR_H
15 
16 // **************************************************************************
17 // Author: Ralf Kliemt (Uni Bonn)
18 //
19 // pid simple classifier
20 // Warning - will use Monte-Carlo information
21 //
22 // Created: 03 Feb. 2012
23 // Modified:
24 //
25 // **************************************************************************
26 
27 #include "TClonesArray.h"
28 #include "FairTask.h"
29 
30 class PndPidCandidate;
31 class PndPidProbability;
32 
33 class PndPidIdealFwdOnlyAssociatorTask : public FairTask {
34 
35  protected:
38 
39  TClonesArray *fPidChargedCand;
40  TClonesArray *fPidNeutralCand;
41  TClonesArray *fPidChargedProb;
42  TClonesArray *fPidNeutralProb;
43  TClonesArray *fMCTrack;
44 
45  void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob); // cheating for each candidate
46 
47  public:
48  virtual void Exec(Option_t *option);
49  virtual InitStatus Init(); //
50 
51  void Register();
52  void Reset();
53 
54  PndPidIdealFwdOnlyAssociatorTask(const char *name, const char *title = "Pnd Task");
57 
58  void SetToOnlyOne();
59  void SetVerbose(Bool_t verb) { fVerbose = verb; };
60 
62  virtual void SetParContainers();
63  virtual void Finish();
64 
65  Bool_t IsForward(PndPidCandidate *cand);
66 
67  ClassDef(PndPidIdealFwdOnlyAssociatorTask, 1) // PndPidIdealFwdOnlyAssociatorTask
68 };
69 
70 #endif
TClonesArray * fPidChargedProb
PndPidCandidate TCA for neutral particles.
virtual void Exec(Option_t *option)
TClonesArray * fPidNeutralProb
PndPidProbability TCA for charged particles.
Bool_t IsForward(PndPidCandidate *cand)
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
Monte-Carlo Truth track TCA.
TClonesArray * fPidNeutralCand
PndPidCandidate TCA for charged particles.
TClonesArray * fMCTrack
PndPidProbability TCA for neutral particles.