FairRoot/PandaRoot
PndSdsPidCand.cxx
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Implementation of class PndSdsPidCand
7 // see PndSdsPidCand.hh for details
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 // Panda Headers ----------------------
19 
20 // This Class' Header ------------------
21 #include "PndSdsPidCand.h"
22 #include "TObject.h"
23 #include "TROOT.h"
24 #include <iostream>
25 #include "TString.h"
26 
27 // C/C++ Headers ----------------------
28 #include <algorithm>
29 #include <vector>
30 #include "TMath.h"
31 
32 
33 // Class Member definitions -----------
34 
36 
37 void PndSdsPidCand::SetLikelihood(int lundId, double likelihood) {
38  this->flikelihood[lundId]=likelihood;
39 }
40 
41 double PndSdsPidCand::GetLikelihood(int lundId) {
42  return flikelihood[lundId];
43 }
44 
45 double PndSdsPidCand::GetSsdHitdE(int ssdhit) const {
46  return fdE[ssdhit];
47 }
48 
49 double PndSdsPidCand::GetSsdHitdx(int ssdhit) const {
50  return fdx[ssdhit];
51 }
52 
53 double PndSdsPidCand::GetSsdHitMomentum(int ssdhit) const {
54  return fmomentum[ssdhit];
55 }
56 
58  return fssdhits;
59 }
60 
61 void PndSdsPidCand::AddSsdHit(double dE, double dx, double p) {
62  fmomentum.push_back(p);
63  fdE.push_back(dE);
64  fdx.push_back(dx);
65  fssdhits++;
66 }
67 
std::vector< double > fdE
Definition: PndSdsPidCand.h:68
std::vector< double > fdx
Definition: PndSdsPidCand.h:69
Double_t p
Definition: anasim.C:58
void SetLikelihood(int lundId, double likelihood)
double GetSsdHitdE(int ssdhit) const
double GetSsdHitdx(int ssdhit) const
Double_t dE
Definition: anasim.C:58
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
ClassImp(PndAnaContFact)
void AddSsdHit(double dE, double dx, double p)