FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PndHypPidCand Class Reference

#include <PndHypPidCand.h>

Inheritance diagram for PndHypPidCand:

Public Member Functions

 PndHypPidCand ()
 
 PndHypPidCand (PndHypPidCand &point)
 
void SetLikelihood (int lundId, double likelihood)
 
void AddHypHit (double dE, double dx, double p)
 
double GetHypHitdE (int hyphit) const
 
double GetHypHitdx (int hyphit) const
 
double GetHypHitMomentum (int hyphit) const
 
int GetHypHits () const
 
double GetLikelihood (int lundId)
 

Private Member Functions

 ClassDef (PndHypPidCand, 1)
 

Private Attributes

int fhyphits
 
std::vector< double > fdE
 
std::vector< double > fdx
 
std::vector< double > fmomentum
 
std::map< int, double > flikelihood
 

Detailed Description

Definition at line 31 of file PndHypPidCand.h.

Constructor & Destructor Documentation

PndHypPidCand::PndHypPidCand ( )
inline

Definition at line 35 of file PndHypPidCand.h.

35  :
36  fhyphits(0),
37  fdE(),
38  fdx(),
39  fmomentum(),
40  flikelihood()
41  { }
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72
std::vector< double > fdx
Definition: PndHypPidCand.h:70
std::vector< double > fdE
Definition: PndHypPidCand.h:69
std::vector< double > fmomentum
Definition: PndHypPidCand.h:71
PndHypPidCand::PndHypPidCand ( PndHypPidCand point)
inline

Definition at line 44 of file PndHypPidCand.h.

References point.

44  : TObject(point),
45  fhyphits(point.fhyphits),
46  fdE(point.fdE),
47  fdx(point.fdx),
48  fmomentum(point.fmomentum),
50  { *this = point; };
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72
std::vector< double > fdx
Definition: PndHypPidCand.h:70
std::vector< double > fdE
Definition: PndHypPidCand.h:69
std::vector< double > fmomentum
Definition: PndHypPidCand.h:71
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72

Member Function Documentation

void PndHypPidCand::AddHypHit ( double  dE,
double  dx,
double  p 
)

Definition at line 61 of file PndHypPidCand.cxx.

References fdE, fdx, fhyphits, and fmomentum.

61  {
62  fmomentum.push_back(p);
63  fdE.push_back(dE);
64  fdx.push_back(dx);
65  fhyphits++;
66 }
Double_t p
Definition: anasim.C:58
std::vector< double > fdx
Definition: PndHypPidCand.h:70
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
PndHypPidCand::ClassDef ( PndHypPidCand  ,
 
)
private
double PndHypPidCand::GetHypHitdE ( int  hyphit) const

Definition at line 45 of file PndHypPidCand.cxx.

References fdE.

45  {
46  return fdE[hyphit];
47 }
std::vector< double > fdE
Definition: PndHypPidCand.h:69
double PndHypPidCand::GetHypHitdx ( int  hyphit) const

Definition at line 49 of file PndHypPidCand.cxx.

References fdx.

49  {
50  return fdx[hyphit];
51 }
std::vector< double > fdx
Definition: PndHypPidCand.h:70
double PndHypPidCand::GetHypHitMomentum ( int  hyphit) const

Definition at line 53 of file PndHypPidCand.cxx.

References fmomentum.

53  {
54  return fmomentum[hyphit];
55 }
std::vector< double > fmomentum
Definition: PndHypPidCand.h:71
int PndHypPidCand::GetHypHits ( ) const

Definition at line 57 of file PndHypPidCand.cxx.

References fhyphits.

57  {
58  return fhyphits;
59 }
double PndHypPidCand::GetLikelihood ( int  lundId)

Definition at line 41 of file PndHypPidCand.cxx.

References flikelihood.

41  {
42  return flikelihood[lundId];
43 }
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72
void PndHypPidCand::SetLikelihood ( int  lundId,
double  likelihood 
)

Definition at line 37 of file PndHypPidCand.cxx.

References flikelihood.

Referenced by PndHypAdvancedPidAlgo::CalcLikelihood().

37  {
38  this->flikelihood[lundId]=likelihood;
39 }
std::map< int, double > flikelihood
Definition: PndHypPidCand.h:72

Member Data Documentation

std::vector<double> PndHypPidCand::fdE
private

Definition at line 69 of file PndHypPidCand.h.

Referenced by AddHypHit(), and GetHypHitdE().

std::vector<double> PndHypPidCand::fdx
private

Definition at line 70 of file PndHypPidCand.h.

Referenced by AddHypHit(), and GetHypHitdx().

int PndHypPidCand::fhyphits
private

Definition at line 68 of file PndHypPidCand.h.

Referenced by AddHypHit(), and GetHypHits().

std::map<int, double> PndHypPidCand::flikelihood
private

Definition at line 72 of file PndHypPidCand.h.

Referenced by GetLikelihood(), and SetLikelihood().

std::vector<double> PndHypPidCand::fmomentum
private

Definition at line 71 of file PndHypPidCand.h.

Referenced by AddHypHit(), and GetHypHitMomentum().


The documentation for this class was generated from the following files: