PandaRoot
PndPidMdtHCAssociatorTask.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_MDTHCASSOCIATOR_H
14 #define PID_MDTHCASSOCIATOR_H
15 
16 // **************************************************************************
17 // Author: Yutie LiangStefano Spataro e-mail: spataro@to.infn.it
18 //
19 // Probability density functions from MDT Iron - Hard Cuts
20 //
21 // Created: 26-05-10
22 // Modified:
23 //
24 // **************************************************************************
25 
26 #include "TClonesArray.h"
27 #include "FairTask.h"
28 
29 class PndPidCandidate;
30 class PndPidProbability;
31 
32 class PndPidMdtHCAssociatorTask : public FairTask {
33 
34  protected:
35  TClonesArray *fPidChargedCand;
36  TClonesArray *fPidChargedProb;
37 
39 
40  void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob);
41 
42  public:
43  virtual void Exec(Option_t *option);
44  virtual InitStatus Init(); //
45 
46  void Register();
47  void Reset();
48 
49  PndPidMdtHCAssociatorTask(const char *name, const char *title = "Pnd Task");
52 
53  void SetVerbose(Bool_t verb) { fVerbose = verb; };
54 
56  virtual void SetParContainers();
57  virtual void Finish();
58 
59  void SetOutputBranch(TString branch) { fTrackBranchNamePidHypo = branch; };
60 
61  ClassDef(PndPidMdtHCAssociatorTask, 1) // PndPidMdtHCAssociatorTask
62 };
63 
64 #endif
virtual void SetParContainers()
TString fTrackBranchNamePidHypo
PndPidProbability TCA for charged particles.
void SetOutputBranch(TString branch)
virtual ~PndPidMdtHCAssociatorTask()
virtual void Exec(Option_t *option)
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
TClonesArray * fPidChargedProb
PndPidCandidate TCA for charged particles.
virtual InitStatus Init()