PandaRoot
PndSdsPidCand.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-----------------------------------------------------------
14 // File and Version Information:
15 // $Id$
16 //
17 // Description:
18 // Track candidate. Basically a list of hit indices.
19 //
20 //
21 // Environment:
22 // Software developed for the PANDA Detector at FAIR.
23 //
24 // Author List:
25 // Sebastian Neubert TUM (original author)
26 // Tobias Baldauf TUD (adapted for SSD Pid)
27 //
28 //-----------------------------------------------------------
29 
30 #ifndef PNDSSDPIDCAND_H
31 #define PNDSSDPIDCAND_H
32 
33 // Base Class Headers ----------------
34 #include "TObject.h"
35 
36 // Collaborating Class Headers -------
37 #include <vector>
38 #include <map>
39 
40 // Collaborating Class Declarations --
41 
42 class PndSdsPidCand : public TObject {
43  public:
44  // Constructors/Destructors ---------
45  PndSdsPidCand() : fssdhits(0), fdE(), fdx(), fmomentum(), flikelihood() {}
46 
47  // CopyConstructor
48  PndSdsPidCand(PndSdsPidCand &point) : TObject(point), fssdhits(point.fssdhits), fdE(point.fdE), fdx(point.fdx), fmomentum(point.fmomentum), flikelihood(point.flikelihood)
49  {
50  *this = point;
51  };
52 
53  // operators
54 
55  // Setting -----------------------
56  void SetLikelihood(int lundId, double likelihood);
57  void AddSsdHit(double dE, double dx, double p);
58 
59  // Getting -----------------------
60  double GetSsdHitdE(int ssdhit) const;
61  double GetSsdHitdx(int ssdhit) const;
62  double GetSsdHitMomentum(int ssdhit) const;
63  int GetSsdHits() const;
64  double GetLikelihood(int lundId);
65 
66  private:
67  // Private Data Members ------------
68  int fssdhits;
69  std::vector<double> fdE;
70  std::vector<double> fdx;
71  std::vector<double> fmomentum;
72  std::map<int, double> flikelihood;
73 
74  // public:
75  ClassDef(PndSdsPidCand, 1);
76 };
77 
78 #endif
79 
80 //--------------------------------------------------------------
81 // $Log$
82 //--------------------------------------------------------------
void SetLikelihood(int lundId, double likelihood)
PndSdsPidCand(PndSdsPidCand &point)
Definition: PndSdsPidCand.h:48
double GetSsdHitdx(int ssdhit) const
int GetSsdHits() const
double GetSsdHitdE(int ssdhit) const
double GetSsdHitMomentum(int ssdhit) const
double GetLikelihood(int lundId)
void AddSsdHit(double dE, double dx, double p)