PandaRoot
PndGeoOtPar.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 
14 // PndGeoOtPar header file
15 //
16 // Class for geometry parameters of OT
17 //
18 // authors: Radoslaw Karabowicz, GSI, 2024
19 //
20 // modified from PndGeoFtsPar by Nafija Ibrišimović in 2023
22 
23 #ifndef PNDGEOOTPAR_H
24 #define PNDGEOOTPAR_H
25 // from FairRoot
26 #include <FairParGenericSet.h>
27 // from ROOT
28 #include <TH1F.h>
29 #include <TObjArray.h>
30 
31 class PndGeoOtPar : public FairParGenericSet {
32  private:
33  TObjArray *fGeoSensNodes;
34  TObjArray *fGeoPassNodes;
35  Int_t fGeoType; // modif
36  Double_t fTubeInRad, fTubeOutRad; // modif
37 
38  PndGeoOtPar(const PndGeoOtPar &L);
39  PndGeoOtPar &operator=(const PndGeoOtPar &) { return *this; }
40 
41  public:
42  PndGeoOtPar(const char *name = "PndGeoOtPar", const char *title = "Ot Geometry Parameters", const char *context = "TestDefaultContext");
43  ~PndGeoOtPar(void);
44  void clear(void);
45  void putParams(FairParamList *);
46  Bool_t getParams(FairParamList *);
47  TObjArray *GetGeoSensitiveNodes() { return fGeoSensNodes; }
48  TObjArray *GetGeoPassiveNodes() { return fGeoPassNodes; }
49 
50  // Additional function
51  void SetGeometryType(Int_t geoType) { fGeoType = geoType; }
52  void SetTubeInRad(Double_t inrad) { fTubeInRad = inrad; }
53  void SetTubeOutRad(Double_t outrad) { fTubeOutRad = outrad; }
54  Int_t GetGeometryType() { return (Int_t)fGeoType; };
55  Double_t GetTubeInRad() { return (Double_t)fTubeInRad; };
56  Double_t GetTubeOutRad() { return (Double_t)fTubeOutRad; };
57 
58  ClassDef(PndGeoOtPar, 1)
59 };
60 
61 #endif /* !PNDGEOOTPAR_H */
void SetGeometryType(Int_t geoType)
Definition: PndGeoOtPar.h:51
void SetTubeOutRad(Double_t outrad)
Definition: PndGeoOtPar.h:53
~PndGeoOtPar(void)
void SetTubeInRad(Double_t inrad)
Definition: PndGeoOtPar.h:52
Double_t GetTubeOutRad()
Definition: PndGeoOtPar.h:56
Int_t GetGeometryType()
Definition: PndGeoOtPar.h:54
void clear(void)
Double_t GetTubeInRad()
Definition: PndGeoOtPar.h:55
TObjArray * GetGeoPassiveNodes()
Definition: PndGeoOtPar.h:48
TObjArray * GetGeoSensitiveNodes()
Definition: PndGeoOtPar.h:47
Bool_t getParams(FairParamList *)
void putParams(FairParamList *)