PandaRoot
PndGeoFtsPar.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 
15 
16 #ifndef PNDGEOFTSPAR_H
17 #define PNDGEOFTSPAR_H
18 
19 #include "FairParGenericSet.h"
20 #include "TH1F.h"
21 #include "TObjArray.h"
22 
23 class PndGeoFtsPar : public FairParGenericSet {
24  private:
25  TObjArray *fGeoSensNodes;
26  TObjArray *fGeoPassNodes;
27  Int_t fGeoType; // modif
28  Double_t fTubeInRad, fTubeOutRad; // modif
29 
30  PndGeoFtsPar(const PndGeoFtsPar &L);
31  PndGeoFtsPar &operator=(const PndGeoFtsPar &) { return *this; }
32 
33  public:
34  PndGeoFtsPar(const char *name = "PndGeoFtsPar", const char *title = "Fts Geometry Parameters", const char *context = "TestDefaultContext");
35  ~PndGeoFtsPar(void);
36  void clear(void);
37  void putParams(FairParamList *);
38  Bool_t getParams(FairParamList *);
39  TObjArray *GetGeoSensitiveNodes() { return fGeoSensNodes; }
40  TObjArray *GetGeoPassiveNodes() { return fGeoPassNodes; }
41 
42  // Additional function
43  void SetGeometryType(Int_t geoType) { fGeoType = geoType; }
44  void SetTubeInRad(Double_t inrad) { fTubeInRad = inrad; }
45  void SetTubeOutRad(Double_t outrad) { fTubeOutRad = outrad; }
46  Int_t GetGeometryType() { return (Int_t)fGeoType; };
47  Double_t GetTubeInRad() { return (Double_t)fTubeInRad; };
48  Double_t GetTubeOutRad() { return (Double_t)fTubeOutRad; };
49 
50  ClassDef(PndGeoFtsPar, 1)
51 };
52 
53 #endif /* !PNDGEOFTSPAR_H */
~PndGeoFtsPar(void)
Int_t GetGeometryType()
Definition: PndGeoFtsPar.h:46
Double_t GetTubeOutRad()
Definition: PndGeoFtsPar.h:48
void SetTubeInRad(Double_t inrad)
Definition: PndGeoFtsPar.h:44
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)
void SetTubeOutRad(Double_t outrad)
Definition: PndGeoFtsPar.h:45
TObjArray * GetGeoPassiveNodes()
Definition: PndGeoFtsPar.h:40
void SetGeometryType(Int_t geoType)
Definition: PndGeoFtsPar.h:43
TObjArray * GetGeoSensitiveNodes()
Definition: PndGeoFtsPar.h:39
void clear(void)
Double_t GetTubeInRad()
Definition: PndGeoFtsPar.h:47