PandaRoot
PndPidFtofAssociatorTask.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_FTOFASSOCIATOR_H
14 #define PID_FTOFASSOCIATOR_H
15 
16 #include "TClonesArray.h"
17 #include "FairTask.h"
18 
19 class PndPidCandidate;
20 class PndPidProbability;
21 class PndPidCorrPar;
22 
23 class PndPidFtofAssociatorTask : public FairTask {
24 
25  protected:
26  TClonesArray *fPidChargedCand;
27  TClonesArray *fPidChargedProb;
28 
30 
31  void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob);
32 
33  Double_t GetPdf(Double_t mass2, Double_t mom, Double_t mass, Double_t sigma);
34 
35  public:
36  virtual void Exec(Option_t *option);
37  virtual InitStatus Init(); //
38 
39  void Register();
40  void Reset();
41 
42  PndPidFtofAssociatorTask(const char *name, const char *title = "Pnd Task");
44  virtual ~PndPidFtofAssociatorTask();
45 
46  void SetVerbose(Bool_t verb) { fVerbose = verb; };
47 
49  virtual void SetParContainers();
50  virtual void Finish();
51 
52  void SetOutputBranch(TString branch) { fTrackBranchNamePidHypo = branch; };
53 
54  private:
55  PndPidCorrPar *fCorrPar;
56 
57  ClassDef(PndPidFtofAssociatorTask, 1) // PndPidftofTask
58 };
59 
60 #endif
virtual void Exec(Option_t *option)
TString fTrackBranchNamePidHypo
PndPidProbability TCA for charged particles.
virtual void SetParContainers()
virtual ~PndPidFtofAssociatorTask()
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
void SetOutputBranch(TString branch)
Double_t GetPdf(Double_t mass2, Double_t mom, Double_t mass, Double_t sigma)
TClonesArray * fPidChargedProb
PndPidCandidate TCA for charged particles.
virtual InitStatus Init()