FairRoot/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 
34  // Constructors/Destructors ---------
36  fhyphits(0),
37  fdE(),
38  fdx(),
39  fmomentum(),
40  flikelihood()
41  { }
42 
43  // CopyConstructor
44  PndHypPidCand(PndHypPidCand& point) : TObject(point),
45  fhyphits(point.fhyphits),
46  fdE(point.fdE),
47  fdx(point.fdx),
48  fmomentum(point.fmomentum),
50  { *this = point; };
51 
52  // operators
53 
54  // Setting -----------------------
55  void SetLikelihood(int lundId, double likelihood);
56  void AddHypHit(double dE, double dx, double p);
57 
58  // Getting -----------------------
59  double GetHypHitdE(int hyphit) const;
60  double GetHypHitdx(int hyphit) const;
61  double GetHypHitMomentum(int hyphit) const;
62  int GetHypHits() const;
63  double GetLikelihood(int lundId);
64 
65 private:
66 
67  // Private Data Members ------------
68  int fhyphits;
69  std::vector<double> fdE;
70  std::vector<double> fdx;
71  std::vector<double> fmomentum;
72  std::map<int, double> flikelihood;
73 
74 //public:
76 };
77 
78 #endif
79 
80 //--------------------------------------------------------------
81 // $Log$
82 //--------------------------------------------------------------
double GetLikelihood(int lundId)
Double_t p
Definition: anasim.C:58
double GetHypHitdE(int hyphit) const
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72
std::vector< double > fdx
Definition: PndHypPidCand.h:70
void SetLikelihood(int lundId, double likelihood)
std::vector< double > fdE
Definition: PndHypPidCand.h:69
Double_t dE
Definition: anasim.C:58
std::vector< double > fmomentum
Definition: PndHypPidCand.h:71
ClassDef(PndHypPidCand, 1)
double dx
int GetHypHits() const
void AddHypHit(double dE, double dx, double p)
double GetHypHitMomentum(int hyphit) const
double GetHypHitdx(int hyphit) const
PndHypPidCand(PndHypPidCand &point)
Definition: PndHypPidCand.h:44
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72