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