FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndGeoSttPar Class Reference

#include <PndGeoSttPar.h>

Inheritance diagram for PndGeoSttPar:

Public Member Functions

 PndGeoSttPar (const char *name="PndGeoSttPar", const char *title="Stt Geometry Parameters", const char *context="TestDefaultContext")
 
 ~PndGeoSttPar (void)
 
void clear (void)
 
void putParams (FairParamList *)
 
Bool_t getParams (FairParamList *)
 
TObjArray * GetTubeParameters ()
 
void SetGeometryType (Int_t geoType)
 
void SetTubeInRad (Double_t inrad)
 
void SetTubeOutRad (Double_t outrad)
 
Int_t GetGeometryType ()
 
Double_t GetTubeInRad ()
 
Double_t GetTubeOutRad ()
 
 PndGeoSttPar (PndGeoSttPar &par)
 
PndGeoSttParoperator= (const PndGeoSttPar &)
 

Public Attributes

TObjArray * fTubeParams
 
Int_t fGeoType
 
Double_t fTubeInRad
 
Double_t fTubeOutRad
 

Detailed Description

Definition at line 8 of file PndGeoSttPar.h.

Constructor & Destructor Documentation

PndGeoSttPar::PndGeoSttPar ( const char *  name = "PndGeoSttPar",
const char *  title = "Stt Geometry Parameters",
const char *  context = "TestDefaultContext" 
)
PndGeoSttPar::~PndGeoSttPar ( void  )

Definition at line 20 of file PndGeoSttPar.cxx.

21 {
22 }
PndGeoSttPar::PndGeoSttPar ( PndGeoSttPar par)

Definition at line 24 of file PndGeoSttPar.cxx.

24  :
25  FairParGenericSet(par),
28  fTubeInRad(par.GetTubeInRad()),
30 {
31 }
Double_t fTubeOutRad
Definition: PndGeoSttPar.h:13
TObjArray * fTubeParams
Definition: PndGeoSttPar.h:11
Int_t GetGeometryType()
Definition: PndGeoSttPar.h:28
Int_t fGeoType
Definition: PndGeoSttPar.h:12
Double_t fTubeInRad
Definition: PndGeoSttPar.h:13
Double_t GetTubeOutRad()
Definition: PndGeoSttPar.h:30
TObjArray * GetTubeParameters()
Definition: PndGeoSttPar.h:22
Double_t GetTubeInRad()
Definition: PndGeoSttPar.h:29

Member Function Documentation

void PndGeoSttPar::clear ( void  )

Definition at line 33 of file PndGeoSttPar.cxx.

References fTubeParams.

34 {
35  if(fTubeParams) delete fTubeParams;
36 }
TObjArray * fTubeParams
Definition: PndGeoSttPar.h:11
Int_t PndGeoSttPar::GetGeometryType ( )
inline
Bool_t PndGeoSttPar::getParams ( FairParamList *  l)

Definition at line 48 of file PndGeoSttPar.cxx.

References fGeoType, fTubeInRad, fTubeOutRad, and fTubeParams.

49 {
50  if (!l) return kFALSE;
51  if (!l->fillObject("PndSttTubs Listt", fTubeParams)) return kFALSE;
52  if (!l->fill("Tube_Inner_Radius", &fTubeInRad) ) return kFALSE;
53  if (!l->fill("Tube_Outer_Radius", &fTubeOutRad)) return kFALSE;
54  if (!l->fill("Geometry_Type", &fGeoType)) return kFALSE;
55 
56  return kTRUE;
57 }
Double_t fTubeOutRad
Definition: PndGeoSttPar.h:13
TObjArray * fTubeParams
Definition: PndGeoSttPar.h:11
Int_t fGeoType
Definition: PndGeoSttPar.h:12
Double_t fTubeInRad
Definition: PndGeoSttPar.h:13
Double_t PndGeoSttPar::GetTubeInRad ( )
inline
Double_t PndGeoSttPar::GetTubeOutRad ( )
inline
TObjArray* PndGeoSttPar::GetTubeParameters ( )
inline
PndGeoSttPar& PndGeoSttPar::operator= ( const PndGeoSttPar )
inline

Definition at line 33 of file PndGeoSttPar.h.

33 {return *this;};
void PndGeoSttPar::putParams ( FairParamList *  l)

Definition at line 39 of file PndGeoSttPar.cxx.

References fGeoType, fTubeInRad, fTubeOutRad, and fTubeParams.

40 {
41  if (!l) return;
42  l->addObject("PndSttTubs List", fTubeParams);
43  l->add("Tube_Inner_Radius", fTubeInRad);
44  l->add("Tube_Outer_Radius", fTubeOutRad);
45  l->add("Geometry_Type", fGeoType);
46 }
Double_t fTubeOutRad
Definition: PndGeoSttPar.h:13
TObjArray * fTubeParams
Definition: PndGeoSttPar.h:11
Int_t fGeoType
Definition: PndGeoSttPar.h:12
Double_t fTubeInRad
Definition: PndGeoSttPar.h:13
void PndGeoSttPar::SetGeometryType ( Int_t  geoType)
inline
void PndGeoSttPar::SetTubeInRad ( Double_t  inrad)
inline
void PndGeoSttPar::SetTubeOutRad ( Double_t  outrad)
inline

Member Data Documentation

Int_t PndGeoSttPar::fGeoType

Definition at line 12 of file PndGeoSttPar.h.

Referenced by GetGeometryType(), getParams(), and putParams().

Double_t PndGeoSttPar::fTubeInRad

Definition at line 13 of file PndGeoSttPar.h.

Referenced by getParams(), GetTubeInRad(), and putParams().

Double_t PndGeoSttPar::fTubeOutRad

Definition at line 13 of file PndGeoSttPar.h.

Referenced by getParams(), GetTubeOutRad(), and putParams().

TObjArray* PndGeoSttPar::fTubeParams

Definition at line 11 of file PndGeoSttPar.h.

Referenced by clear(), getParams(), GetTubeParameters(), and putParams().


The documentation for this class was generated from the following files: