PandaRoot
PndMdtRecoHit2.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 // an xyz reco hit (z being considered as a free parameter)
19 // hitCoord=(x,y)^T
20 // s=z
21 //
22 // Environment:
23 // Software developed for the PANDA Detector at FAIR.
24 //
25 // Author List:
26 // Sebastian Neubert TUM (original author)
27 // Stefano Spataro UNITO (adapted for MDT - 29/01/10)
28 // modified by Elisabetta Prencipe 19/05/2014
29 //
30 //-----------------------------------------------------------
31 
32 #ifndef MDTRECOHIT2_HH
33 #define MDTRECOHIT2_HH
34 
35 // Base Class Headers ----------------
36 #include "SpacepointMeasurement.h"
37 #include "TrackCandHit.h"
38 // Collaborating Class Headers -------
39 #include <ostream> // remove if you do not need streaming op
40 
41 #include "TRandom.h"
42 
43 // Collaborating Class Declarations --
44 class PndMdtHit;
45 class PndMdtPoint;
46 
48 
49  public:
50  // Constructors/Destructors ---------
52  PndMdtRecoHit2(double x, double y, double z, double sigx, double sigy, double sigz);
53  PndMdtRecoHit2(const TVector3 &pos, const TVector3 &sig, bool smear = false);
55  PndMdtRecoHit2(PndMdtHit *hit, const genfit::TrackCandHit *candHit);
56 
57  virtual ~PndMdtRecoHit2();
58 
59  virtual genfit::AbsMeasurement *clone() { return new PndMdtRecoHit2(*this); }
60 
61  PndMdtHit *GetHit() { return fHit; }
62 
63  private:
64  // Private Data Members ------------
65  static const int NparHitRep = 3;
66 
67  PndMdtHit *fHit;
68  // Private Methods -----------------
69 
70  public:
71  ClassDef(PndMdtRecoHit2, 1)
72 };
73 
74 #endif
PndMdtHit * GetHit()
Class for measurements implementing a space point hit geometry.
Hit object for use in TrackCand. Provides IDs and sorting parameters.
Definition: TrackCandHit.h:45
virtual genfit::AbsMeasurement * clone()
Contains the measurement and covariance in raw detector coordinates.
virtual ~PndMdtRecoHit2()