PandaRoot
PndTutPar.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 // C++ Interface: PndTutPar
15 //
16 #ifndef PNDTUTPAR_H
17 #define PNDTUTPAR_H
18 
19 #include <TVector3.h>
20 #include <TObjString.h>
21 
22 #include "FairParGenericSet.h"
23 #include "FairParamList.h"
24 
25 class PndTutPar : public FairParGenericSet {
26  public:
27  PndTutPar(const char *name = "PndTutParTest", const char *title = "Tutorial parameter", const char *context = "TestDefaultContext");
28  ~PndTutPar(void){};
29  void clear(void){};
30  void putParams(FairParamList *list);
31  Bool_t getParams(FairParamList *list);
32 
33  void Print();
35  Double_t GetTopPitch() const { return fTopPitch; }
36  TVector3 GetTopAnchor() const { return fTopAnchor; }
37  Int_t GetNrTopFE() const { return fTopNrFE; }
38  const char *GetFeType() const { return fFeType.Data(); }
39 
40  void SetTopPitch(Double_t x) { fTopPitch = x; }
41  void SetTopAnchor(TVector3 x) { fTopAnchor = x; }
42  void SetNrTopFE(Int_t x) { fTopNrFE = x; }
43  void SetFeType(TString x) { fFeType = x; }
44 
45  private:
46  // Strip Parameters
47  Double_t fTopPitch; // Strip pitch on top wafer side
48  TVector3 fTopAnchor; // Anchor point of top strip#0
49  Int_t fTopNrFE; // Number of FE attached to top wafer side
50  TString fFeType; // Frontend type name
51 
52  ClassDef(PndTutPar, 1); // don't set this to 0, the container would not be stored then!
53 };
54 
55 #endif /* !PNDTUTPAR_H*/
Int_t GetNrTopFE() const
Definition: PndTutPar.h:37
TVector3 GetTopAnchor() const
Definition: PndTutPar.h:36
void putParams(FairParamList *list)
Bool_t getParams(FairParamList *list)
void clear(void)
Definition: PndTutPar.h:29
~PndTutPar(void)
Definition: PndTutPar.h:28
void SetTopAnchor(TVector3 x)
Definition: PndTutPar.h:41
void SetFeType(TString x)
Definition: PndTutPar.h:43
Double_t GetTopPitch() const
Definition: PndTutPar.h:35
void SetTopPitch(Double_t x)
Definition: PndTutPar.h:40
const char * GetFeType() const
Definition: PndTutPar.h:38
void SetNrTopFE(Int_t x)
Definition: PndTutPar.h:42
PndTutPar(const char *name="PndTutParTest", const char *title="Tutorial parameter", const char *context="TestDefaultContext")
void Print()