PandaRoot
PndMvdPidCand.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 //
16 //-----------------------------------------------------------
17 
18 #ifndef PNDMVDPIDCAND_H
19 #define PNDMVDPIDCAND_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 PndMvdPidCand : public TObject {
31  public:
32  // Constructors/Destructors ---------
33  PndMvdPidCand() : fmvdhits(0), fdE(), fdx(), fmomentum(), flikelihood(){};
34 
35  // CopyConstructor
36  PndMvdPidCand(PndMvdPidCand &point) : TObject(point), fmvdhits(point.fmvdhits), 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 AddMvdHit(double dE, double dx, double p);
46 
47  // Getting -----------------------
48  double GetMvdHitdE(int mvdhit) const;
49  double GetMvdHitdx(int mvdhit) const;
50  double GetMvdHitMomentum(int mvdhit) const;
51  int GetMvdHits() const;
52  double GetLikelihood(int lundId);
53 
54  private:
55  // Private Data Members ------------
56  int fmvdhits;
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(PndMvdPidCand, 1);
64 };
65 
66 #endif
67 
68 //--------------------------------------------------------------
69 // $Log$
70 //--------------------------------------------------------------
double GetLikelihood(int lundId)
void AddMvdHit(double dE, double dx, double p)
double GetMvdHitdx(int mvdhit) const
PndMvdPidCand(PndMvdPidCand &point)
Definition: PndMvdPidCand.h:36
double GetMvdHitdE(int mvdhit) const
double GetMvdHitMomentum(int mvdhit) const
void SetLikelihood(int lundId, double likelihood)
int GetMvdHits() const