PandaRoot
PndSdsPidCand.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 SSD Pid)
15 //
16 //-----------------------------------------------------------
17 
18 #ifndef PNDSSDPIDCAND_H
19 #define PNDSSDPIDCAND_H
20 
21 // Base Class Headers ----------------
22 #include "TObject.h"
23 
24 // Collaborating Class Headers -------
25 #include <vector>
26 #include <map>
27 
28 // Collaborating Class Declarations --
29 
30 class PndSdsPidCand : public TObject {
31  public:
32  // Constructors/Destructors ---------
33  PndSdsPidCand() : fssdhits(0), fdE(), fdx(), fmomentum(), flikelihood() {}
34 
35  // CopyConstructor
36  PndSdsPidCand(PndSdsPidCand &point) : TObject(point), fssdhits(point.fssdhits), fdE(point.fdE), fdx(point.fdx), fmomentum(point.fmomentum), flikelihood(point.flikelihood)
37  {
38  *this = point;
39  };
40 
41  // operators
42 
43  // Setting -----------------------
44  void SetLikelihood(int lundId, double likelihood);
45  void AddSsdHit(double dE, double dx, double p);
46 
47  // Getting -----------------------
48  double GetSsdHitdE(int ssdhit) const;
49  double GetSsdHitdx(int ssdhit) const;
50  double GetSsdHitMomentum(int ssdhit) const;
51  int GetSsdHits() const;
52  double GetLikelihood(int lundId);
53 
54  private:
55  // Private Data Members ------------
56  int fssdhits;
57  std::vector<double> fdE;
58  std::vector<double> fdx;
59  std::vector<double> fmomentum;
60  std::map<int, double> flikelihood;
61 
62  // public:
63  ClassDef(PndSdsPidCand, 1);
64 };
65 
66 #endif
67 
68 //--------------------------------------------------------------
69 // $Log$
70 //--------------------------------------------------------------
void SetLikelihood(int lundId, double likelihood)
PndSdsPidCand(PndSdsPidCand &point)
Definition: PndSdsPidCand.h:36
double GetSsdHitdx(int ssdhit) const
int GetSsdHits() const
double GetSsdHitdE(int ssdhit) const
double GetSsdHitMomentum(int ssdhit) const
double GetLikelihood(int lundId)
void AddSsdHit(double dE, double dx, double p)