FairRoot/PandaRoot
PndMvdPidCand.cxx
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Implementation of class PndMvdPidCand
7 // see PndMvdPidCand.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 MVD Pid)
15 //
16 //-----------------------------------------------------------
17 
18 // Panda Headers ----------------------
19 
20 // This Class' Header ------------------
21 #include "PndMvdPidCand.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 PndMvdPidCand::SetLikelihood(int lundId, double likelihood) {
38  this->flikelihood[lundId]=likelihood;
39 }
40 
41 double PndMvdPidCand::GetLikelihood(int lundId) {
42  return flikelihood[lundId];
43 }
44 
45 double PndMvdPidCand::GetMvdHitdE(int mvdhit) const {
46  return fdE[mvdhit];
47 }
48 
49 double PndMvdPidCand::GetMvdHitdx(int mvdhit) const {
50  return fdx[mvdhit];
51 }
52 
53 double PndMvdPidCand::GetMvdHitMomentum(int mvdhit) const {
54  return fmomentum[mvdhit];
55 }
56 
58  return fmvdhits;
59 }
60 
61 void PndMvdPidCand::AddMvdHit(double dE, double dx, double p) {
62  fmomentum.push_back(p);
63  fdE.push_back(dE);
64  fdx.push_back(dx);
65  fmvdhits++;
66 }
67 
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
ClassImp(PndMvdPidCand)
Double_t dE
Definition: anasim.C:58
double dx
std::vector< double > fdE
Definition: PndMvdPidCand.h:68
double GetMvdHitdE(int mvdhit) const
void SetLikelihood(int lundId, double likelihood)
int GetMvdHits() const