PandaRoot
PndPidSciTAssociatorTask.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_SCITASSOCIATOR_H
14 #define PID_SCITASSOCIATOR_H
15 
16 // **************************************************************************
17 // Author: Dominik Steinschaden e-mail:
18 //
19 // Probability density functions from Barrel Time-of-Flight counter
20 //
21 // Created: 18-05-16
22 // Modified:
23 //
24 // **************************************************************************
25 
26 #include "TClonesArray.h"
27 #include "FairTask.h"
28 
29 class PndPidCandidate;
30 class PndPidProbability;
31 
32 class PndPidSciTAssociatorTask : public FairTask {
33 
34  public:
35  PndPidSciTAssociatorTask(const char *name, const char *title = "Pnd Task");
37  virtual ~PndPidSciTAssociatorTask();
38 
39  virtual void Exec(Option_t *option);
40  virtual InitStatus Init(); //
41 
42  void Register();
43  void Reset();
44 
45  void SetVerbose(Bool_t verb) { fVerbose = verb; };
46 
48  virtual void SetParContainers();
49  virtual void Finish();
50 
51  void SetOutputBranch(TString branch) { fTrackBranchNamePidHypo = branch; };
52 
53  protected:
54  void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob);
55 
56  Double_t GetPdf(Double_t mom, Double_t length, Double_t tof, Double_t mass, Double_t sigma);
57 
58  TClonesArray *fPidChargedCand;
59  TClonesArray *fPidChargedProb;
60 
62 
63  ClassDef(PndPidSciTAssociatorTask, 1) // PndPidSciTTask
64 };
65 
66 #endif
virtual void SetParContainers()
void SetOutputBranch(TString branch)
TString fTrackBranchNamePidHypo
PndPidProbability TCA for charged particles.
virtual ~PndPidSciTAssociatorTask()
virtual void Exec(Option_t *option)
void DoPidMatch(PndPidCandidate *pidcand, PndPidProbability *prob)
Double_t GetPdf(Double_t mom, Double_t length, Double_t tof, Double_t mass, Double_t sigma)
TClonesArray * fPidChargedProb
PndPidCandidate TCA for charged particles.
virtual InitStatus Init()