PandaRoot
PndMvdPidCand.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 MVD Pid)
27 //
28 //-----------------------------------------------------------
29 
30 #ifndef PNDMVDPIDCAND_H
31 #define PNDMVDPIDCAND_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 PndMvdPidCand : public TObject {
43  public:
44  // Constructors/Destructors ---------
45  PndMvdPidCand() : fmvdhits(0), fdE(), fdx(), fmomentum(), flikelihood(){};
46 
47  // CopyConstructor
48  PndMvdPidCand(PndMvdPidCand &point) : TObject(point), fmvdhits(point.fmvdhits), 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 AddMvdHit(double dE, double dx, double p);
58 
59  // Getting -----------------------
60  double GetMvdHitdE(int mvdhit) const;
61  double GetMvdHitdx(int mvdhit) const;
62  double GetMvdHitMomentum(int mvdhit) const;
63  int GetMvdHits() const;
64  double GetLikelihood(int lundId);
65 
66  private:
67  // Private Data Members ------------
68  int fmvdhits;
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(PndMvdPidCand, 1);
76 };
77 
78 #endif
79 
80 //--------------------------------------------------------------
81 // $Log$
82 //--------------------------------------------------------------
double GetLikelihood(int lundId)
void AddMvdHit(double dE, double dx, double p)
double GetMvdHitdx(int mvdhit) const
PndMvdPidCand(PndMvdPidCand &point)
Definition: PndMvdPidCand.h:48
double GetMvdHitdE(int mvdhit) const
double GetMvdHitMomentum(int mvdhit) const
void SetLikelihood(int lundId, double likelihood)
int GetMvdHits() const