PandaRoot
PndFieldAdaptor.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 // Adapts a PndField to genfit GFAbsBFieldIfc
19 //
20 //
21 // Environment:
22 // Software developed for the PANDA Detector at FAIR.
23 //
24 // Author List:
25 // Sebastian Neubert TUM (original author)
26 //
27 // adapted by Alicia Sanchez for HYP purpose
28 //-----------------------------------------------------------
29 
30 #ifndef PNDFIELDADAPTOR_HH
31 #define PNDFIELDADAPTOR_HH
32 
33 // Base Class Headers ----------------
34 #include "GFAbsBField.h"
35 #include "TObject.h"
36 
37 // Collaborating Class Headers -------
38 #include <ostream> // remove if you do not need streaming op
39 
40 // Collaborating Class Declarations --
41 class FairField;
42 
43 class PndFieldAdaptor : public GFAbsBField, public TObject {
44  public:
45  // Constructors/Destructors ---------
46  PndFieldAdaptor() { fField = nullptr; }
47  PndFieldAdaptor(FairField *field);
48 
49  // Accessors -----------------------
50  TVector3 get(const TVector3 &) const;
51 
52  private:
53  // Private Data Members ------------
54  FairField *fField;
55 
56  // Private Methods -----------------
57 
58  public:
60 };
61 
62 #endif
63 
64 //--------------------------------------------------------------
65 // $Log$
66 //--------------------------------------------------------------
ClassDef(PndFieldAdaptor, 1)
Generic Interface to magnetic fields in GENFIT.
Definition: GFAbsBField.h:46