FairRoot/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 
33  // Constructors/Destructors ---------
35  fssdhits(0),
36  fdE(),
37  fdx(),
38  fmomentum(),
39  flikelihood()
40  { }
41 
42  // CopyConstructor
43  PndSdsPidCand(PndSdsPidCand& point) : TObject(point),
44  fssdhits(point.fssdhits),
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 AddSsdHit(double dE, double dx, double p);
56 
57  // Getting -----------------------
58  double GetSsdHitdE(int ssdhit) const;
59  double GetSsdHitdx(int ssdhit) const;
60  double GetSsdHitMomentum(int ssdhit) const;
61  int GetSsdHits() const;
62  double GetLikelihood(int lundId);
63 
64 private:
65 
66  // Private Data Members ------------
67  int fssdhits;
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::vector< double > fdE
Definition: PndSdsPidCand.h:68
std::vector< double > fdx
Definition: PndSdsPidCand.h:69
void SetLikelihood(int lundId, double likelihood)
double GetSsdHitdE(int ssdhit) const
double GetSsdHitdx(int ssdhit) const
Double_t p
Definition: anasim.C:58
PndSdsPidCand(PndSdsPidCand &point)
Definition: PndSdsPidCand.h:43
ClassDef(PndSdsPidCand, 1)
Double_t dE
Definition: anasim.C:58
TClonesArray * point
Definition: anaLmdDigi.C:29
double GetSsdHitMomentum(int ssdhit) const
std::vector< double > fmomentum
Definition: PndSdsPidCand.h:70
double dx
int GetSsdHits() const
double GetLikelihood(int lundId)
std::map< int, double > flikelihood
Definition: PndSdsPidCand.h:71
void AddSsdHit(double dE, double dx, double p)