FairRoot/PandaRoot
PndHypPidCand.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 // Alicia Sanchez UniMainz (adapted for HYP Pid)
16 //-----------------------------------------------------------
17 
18 // Panda Headers ----------------------
19 
20 // This Class' Header ------------------
21 #include "PndHypPidCand.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 PndHypPidCand::SetLikelihood(int lundId, double likelihood) {
38  this->flikelihood[lundId]=likelihood;
39 }
40 
41 double PndHypPidCand::GetLikelihood(int lundId) {
42  return flikelihood[lundId];
43 }
44 
45 double PndHypPidCand::GetHypHitdE(int hyphit) const {
46  return fdE[hyphit];
47 }
48 
49 double PndHypPidCand::GetHypHitdx(int hyphit) const {
50  return fdx[hyphit];
51 }
52 
53 double PndHypPidCand::GetHypHitMomentum(int hyphit) const {
54  return fmomentum[hyphit];
55 }
56 
58  return fhyphits;
59 }
60 
61 void PndHypPidCand::AddHypHit(double dE, double dx, double p) {
62  fmomentum.push_back(p);
63  fdE.push_back(dE);
64  fdx.push_back(dx);
65  fhyphits++;
66 }
67 
double GetLikelihood(int lundId)
Double_t p
Definition: anasim.C:58
double GetHypHitdE(int hyphit) const
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72
std::vector< double > fdx
Definition: PndHypPidCand.h:70
void SetLikelihood(int lundId, double likelihood)
std::vector< double > fdE
Definition: PndHypPidCand.h:69
Double_t dE
Definition: anasim.C:58
std::vector< double > fmomentum
Definition: PndHypPidCand.h:71
double dx
int GetHypHits() const
void AddHypHit(double dE, double dx, double p)
ClassImp(PndAnaContFact)
double GetHypHitMomentum(int hyphit) const
double GetHypHitdx(int hyphit) const