PandaRoot
PndHypPidCand.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 //-----------------------------------------------------------
14 // File and Version Information:
15 // $Id$
16 //
17 // Description:
18 // Track candidate. Basically a list of hit indices.
19 //
20 //
21 // Environment:
22 // Software developed for the PANDA Detector at FAIR.
23 //
24 // Author List:
25 // Sebastian Neubert TUM (original author)
26 // Tobias Baldauf TUD (adapted for MVD Pid)
27 // Alicia Sanchez UniMainz (adapted for HYP Pid)
28 //
29 //-----------------------------------------------------------
30 
31 #ifndef PNDHYPPIDCAND_H
32 #define PNDHYPPIDCAND_H
33 
34 // Base Class Headers ----------------
35 #include "TObject.h"
36 
37 // Collaborating Class Headers -------
38 #include <vector>
39 #include <map>
40 
41 // Collaborating Class Declarations --
42 
43 class PndHypPidCand : public TObject {
44  public:
45  // Constructors/Destructors ---------
46  PndHypPidCand() : fhyphits(0), fdE(), fdx(), fmomentum(), flikelihood() {}
47 
48  // CopyConstructor
49  PndHypPidCand(PndHypPidCand &point) : TObject(point), fhyphits(point.fhyphits), fdE(point.fdE), fdx(point.fdx), fmomentum(point.fmomentum), flikelihood(point.flikelihood)
50  {
51  *this = point;
52  };
53 
54  // operators
55 
56  // Setting -----------------------
57  void SetLikelihood(int lundId, double likelihood);
58  void AddHypHit(double dE, double dx, double p);
59 
60  // Getting -----------------------
61  double GetHypHitdE(int hyphit) const;
62  double GetHypHitdx(int hyphit) const;
63  double GetHypHitMomentum(int hyphit) const;
64  int GetHypHits() const;
65  double GetLikelihood(int lundId);
66 
67  private:
68  // Private Data Members ------------
69  int fhyphits;
70  std::vector<double> fdE;
71  std::vector<double> fdx;
72  std::vector<double> fmomentum;
73  std::map<int, double> flikelihood;
74 
75  // public:
76  ClassDef(PndHypPidCand, 1);
77 };
78 
79 #endif
80 
81 //--------------------------------------------------------------
82 // $Log$
83 //--------------------------------------------------------------
double GetLikelihood(int lundId)
double GetHypHitMomentum(int hyphit) const
int GetHypHits() const
void SetLikelihood(int lundId, double likelihood)
void AddHypHit(double dE, double dx, double p)
double GetHypHitdx(int hyphit) const
double GetHypHitdE(int hyphit) const
PndHypPidCand(PndHypPidCand &point)
Definition: PndHypPidCand.h:49