FairRoot/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 
33  // Constructors/Destructors ---------
35  fmvdhits(0),
36  fdE(),
37  fdx(),
38  fmomentum(),
39  flikelihood()
40  { };
41 
42  // CopyConstructor
43  PndMvdPidCand(PndMvdPidCand& point) : TObject(point),
44  fmvdhits(point.fmvdhits),
45  fdE(point.fdE),
46  fdx(point.fdx),
47  fmomentum(point.fmomentum),
49  { *this = point; };
50 
51  // operators
52 
53  // Setting -----------------------
54  void SetLikelihood(int lundId, double likelihood);
55  void AddMvdHit(double dE, double dx, double p);
56 
57  // Getting -----------------------
58  double GetMvdHitdE(int mvdhit) const;
59  double GetMvdHitdx(int mvdhit) const;
60  double GetMvdHitMomentum(int mvdhit) const;
61  int GetMvdHits() const;
62  double GetLikelihood(int lundId);
63 
64 private:
65 
66  // Private Data Members ------------
67  int fmvdhits;
68  std::vector<double> fdE;
69  std::vector<double> fdx;
70  std::vector<double> fmomentum;
71  std::map<int, double> flikelihood;
72 
73 //public:
75 };
76 
77 #endif
78 
79 //--------------------------------------------------------------
80 // $Log$
81 //--------------------------------------------------------------
std::map< int, double > flikelihood
Definition: PndMvdPidCand.h:71
double GetMvdHitdx(int mvdhit) const
double GetLikelihood(int lundId)
std::vector< double > fmomentum
Definition: PndMvdPidCand.h:70
void AddMvdHit(double dE, double dx, double p)
std::vector< double > fdx
Definition: PndMvdPidCand.h:69
Double_t p
Definition: anasim.C:58
double GetMvdHitMomentum(int mvdhit) const
ClassDef(PndMvdPidCand, 1)
PndMvdPidCand(PndMvdPidCand &point)
Definition: PndMvdPidCand.h:43
Double_t dE
Definition: anasim.C:58
TClonesArray * point
Definition: anaLmdDigi.C:29
double dx
std::vector< double > fdE
Definition: PndMvdPidCand.h:68
double GetMvdHitdE(int mvdhit) const
void SetLikelihood(int lundId, double likelihood)
int GetMvdHits() const