PandaRoot
PndMapPar.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 
22 #ifndef PNDMAPPAR_H
23 #define PNDMAPPAR_H 1
24 
25 #include "FairField.h"
26 #include "FairParGenericSet.h"
27 
28 class FairParamList;
29 
30 class PndMapPar : public FairParGenericSet {
31 
32  public:
34  PndMapPar(const char *name, const char *title, const char *context);
35 
37  PndMapPar();
38 
40  ~PndMapPar();
41 
43  virtual void putParams(FairParamList *list);
44 
46  virtual Bool_t getParams(FairParamList *list);
47 
49  void SetParameters(FairField *field);
50 
52  Int_t GetType() const { return fType; }
53  Double_t GetXmin() const { return fXmin; }
54  Double_t GetXmax() const { return fXmax; }
55  Double_t GetYmin() const { return fYmin; }
56  Double_t GetYmax() const { return fYmax; }
57  Double_t GetZmin() const { return fZmin; }
58  Double_t GetZmax() const { return fZmax; }
59  void MapName(TString &name) { name = fMapName; }
60  Double_t GetPositionX() const { return fPosX; }
61  Double_t GetPositionY() const { return fPosY; }
62  Double_t GetPositionZ() const { return fPosZ; }
63  Double_t GetScale() const { return fScale; }
64 
65  protected:
72  Int_t fType;
73 
75  Double_t fXmin, fXmax;
76  Double_t fYmin, fYmax;
77  Double_t fZmin, fZmax;
78 
80  TString fMapName;
81 
83  Double_t fPosX, fPosY, fPosZ;
84 
86  Double_t fScale;
87 
88  ClassDef(PndMapPar, 1);
89 };
90 
91 #endif
Double_t fPosZ
Definition: PndMapPar.h:83
Double_t GetZmin() const
Definition: PndMapPar.h:57
Double_t fYmax
Definition: PndMapPar.h:76
Double_t GetScale() const
Definition: PndMapPar.h:63
Double_t GetPositionX() const
Definition: PndMapPar.h:60
Double_t fScale
Definition: PndMapPar.h:86
Double_t GetZmax() const
Definition: PndMapPar.h:58
void MapName(TString &name)
Definition: PndMapPar.h:59
Double_t GetXmax() const
Definition: PndMapPar.h:54
TString fMapName
Definition: PndMapPar.h:80
Double_t fXmin
Definition: PndMapPar.h:75
Double_t fPosY
Definition: PndMapPar.h:83
virtual void putParams(FairParamList *list)
Double_t GetPositionY() const
Definition: PndMapPar.h:61
ClassDef(PndMapPar, 1)
Int_t GetType() const
Definition: PndMapPar.h:52
Double_t GetXmin() const
Definition: PndMapPar.h:53
Double_t fXmax
Definition: PndMapPar.h:75
Double_t fYmin
Definition: PndMapPar.h:76
Double_t GetYmin() const
Definition: PndMapPar.h:55
Double_t fZmin
Definition: PndMapPar.h:77
Int_t fType
Definition: PndMapPar.h:72
Double_t GetPositionZ() const
Definition: PndMapPar.h:62
void SetParameters(FairField *field)
Double_t fPosX
Definition: PndMapPar.h:83
virtual Bool_t getParams(FairParamList *list)
Double_t fZmax
Definition: PndMapPar.h:77
Double_t GetYmax() const
Definition: PndMapPar.h:56