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