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

#include <PndTutPar.h>

Inheritance diagram for PndTutPar:

Public Member Functions

 PndTutPar (const char *name="PndTutParTest", const char *title="Tutorial parameter", const char *context="TestDefaultContext")
 
 ~PndTutPar (void)
 
void clear (void)
 
void putParams (FairParamList *list)
 
Bool_t getParams (FairParamList *list)
 
void Print ()
 
Double_t GetTopPitch () const
 
TVector3 GetTopAnchor () const
 
Int_t GetNrTopFE () const
 
const char * GetFeType () const
 
void SetTopPitch (Double_t x)
 
void SetTopAnchor (TVector3 x)
 
void SetNrTopFE (Int_t x)
 
void SetFeType (TString x)
 

Private Member Functions

 ClassDef (PndTutPar, 1)
 

Private Attributes

Double_t fTopPitch
 
TVector3 fTopAnchor
 
Int_t fTopNrFE
 
TString fFeType
 

Detailed Description

Definition at line 13 of file PndTutPar.h.

Constructor & Destructor Documentation

PndTutPar::PndTutPar ( const char *  name = "PndTutParTest",
const char *  title = "Tutorial  parameter",
const char *  context = "TestDefaultContext" 
)

Definition at line 5 of file PndTutPar.cxx.

References clear().

6  : FairParGenericSet(name,title,context)
7 {
8  clear();
9 }
void clear(void)
Definition: PndTutPar.h:20
TString name
PndTutPar::~PndTutPar ( void  )
inline

Definition at line 19 of file PndTutPar.h.

19 {};

Member Function Documentation

PndTutPar::ClassDef ( PndTutPar  ,
 
)
private
void PndTutPar::clear ( void  )
inline

Definition at line 20 of file PndTutPar.h.

Referenced by PndTutPar().

20 {};
const char* PndTutPar::GetFeType ( ) const
inline

Definition at line 29 of file PndTutPar.h.

References fFeType.

29 {return fFeType.Data();}
TString fFeType
Definition: PndTutPar.h:41
Int_t PndTutPar::GetNrTopFE ( ) const
inline

Definition at line 28 of file PndTutPar.h.

References fTopNrFE.

28 {return fTopNrFE;}
Int_t fTopNrFE
Definition: PndTutPar.h:40
Bool_t PndTutPar::getParams ( FairParamList *  list)

Definition at line 23 of file PndTutPar.cxx.

References Double_t, fFeType, fTopAnchor, fTopNrFE, fTopPitch, x, y, and z.

24 {
25  std::cout<<"-I- PndTutPar::getParams() called"<<std::endl;
26  if (!list) return kFALSE;
27  std::cout<<"-I- PndTutPar::getParams() 1 ";
28 
29  if (!list->fill("top_pitch", &fTopPitch)) return kFALSE;
30  std::cout<<"2 ";
31  Double_t x,y,z;
32  if (!list->fill("top_anchor_x", &x)) return kFALSE;
33  if (!list->fill("top_anchor_y", &y)) return kFALSE;
34  if (!list->fill("top_anchor_z", &z)) return kFALSE;
35  fTopAnchor.SetXYZ(x,y,z);
36  std::cout<<"3 ";
37  if (!list->fill("nr_fe_top", &fTopNrFE)) return kFALSE;
38  Text_t feName[80];
39  std::cout<<"4 "<<std::endl;
40  if (!list->fill("fe_Type",feName,80)) return kFALSE;
41  fFeType = feName;
42  return kTRUE;
43 }
TString fFeType
Definition: PndTutPar.h:41
Int_t fTopNrFE
Definition: PndTutPar.h:40
TVector3 fTopAnchor
Definition: PndTutPar.h:39
Double_t
Double_t z
Double_t x
Double_t fTopPitch
Definition: PndTutPar.h:38
Double_t y
TVector3 PndTutPar::GetTopAnchor ( ) const
inline

Definition at line 27 of file PndTutPar.h.

References fTopAnchor.

27 {return fTopAnchor;}
TVector3 fTopAnchor
Definition: PndTutPar.h:39
Double_t PndTutPar::GetTopPitch ( ) const
inline

Accessor functions

Definition at line 26 of file PndTutPar.h.

References fTopPitch.

26 {return fTopPitch;}
Double_t fTopPitch
Definition: PndTutPar.h:38
void PndTutPar::Print ( )

Definition at line 47 of file PndTutPar.cxx.

References fFeType, fTopAnchor, fTopNrFE, and fTopPitch.

Referenced by PndTutAccessRTDBTask::Finish().

48 {
49  std::cout<<"Tutorial Parameters:"<<std::endl;
50  std::cout<<" Top Pitch = "<<fTopPitch<<std::endl;
51  std::cout<<" Top Anchor = ("<<fTopAnchor.X()<<","<<fTopAnchor.Y()<<","<<fTopAnchor.Z()<<")"<<std::endl;
52  std::cout<<" Nr of Frontends (Top Side) = "<<fTopNrFE<<std::endl;
53  std::cout<<" Frontend type name is = "<<fFeType.Data()<<std::endl;
54 }
TString fFeType
Definition: PndTutPar.h:41
Int_t fTopNrFE
Definition: PndTutPar.h:40
TVector3 fTopAnchor
Definition: PndTutPar.h:39
Double_t fTopPitch
Definition: PndTutPar.h:38
void PndTutPar::putParams ( FairParamList *  list)

Definition at line 11 of file PndTutPar.cxx.

References Double_t, fFeType, fTopAnchor, fTopNrFE, and fTopPitch.

12 {
13  std::cout<<"-I- PndTutPar::putParams() called"<<std::endl;
14  if(!list) return;
15  list->add("top_pitch", fTopPitch);
16  list->add("top_anchor_x", (Double_t)fTopAnchor.X());
17  list->add("top_anchor_y", (Double_t)fTopAnchor.Y());
18  list->add("top_anchor_z", (Double_t)fTopAnchor.Z());
19  list->add("nr_fe_top", fTopNrFE);
20  list->add("fe_Type", fFeType);
21 }
TString fFeType
Definition: PndTutPar.h:41
Int_t fTopNrFE
Definition: PndTutPar.h:40
TVector3 fTopAnchor
Definition: PndTutPar.h:39
Double_t
Double_t fTopPitch
Definition: PndTutPar.h:38
void PndTutPar::SetFeType ( TString  x)
inline

Definition at line 34 of file PndTutPar.h.

References fFeType, and x.

34 {fFeType = x;}
TString fFeType
Definition: PndTutPar.h:41
Double_t x
void PndTutPar::SetNrTopFE ( Int_t  x)
inline

Definition at line 33 of file PndTutPar.h.

References fTopNrFE, and x.

33 {fTopNrFE = x;}
Int_t fTopNrFE
Definition: PndTutPar.h:40
Double_t x
void PndTutPar::SetTopAnchor ( TVector3  x)
inline

Definition at line 32 of file PndTutPar.h.

References fTopAnchor, and x.

32 {fTopAnchor = x;}
TVector3 fTopAnchor
Definition: PndTutPar.h:39
Double_t x
void PndTutPar::SetTopPitch ( Double_t  x)
inline

Definition at line 31 of file PndTutPar.h.

References fTopPitch, and x.

31 {fTopPitch = x;}
Double_t x
Double_t fTopPitch
Definition: PndTutPar.h:38

Member Data Documentation

TString PndTutPar::fFeType
private

Definition at line 41 of file PndTutPar.h.

Referenced by GetFeType(), getParams(), Print(), putParams(), and SetFeType().

TVector3 PndTutPar::fTopAnchor
private

Definition at line 39 of file PndTutPar.h.

Referenced by getParams(), GetTopAnchor(), Print(), putParams(), and SetTopAnchor().

Int_t PndTutPar::fTopNrFE
private

Definition at line 40 of file PndTutPar.h.

Referenced by GetNrTopFE(), getParams(), Print(), putParams(), and SetNrTopFE().

Double_t PndTutPar::fTopPitch
private

Definition at line 38 of file PndTutPar.h.

Referenced by getParams(), GetTopPitch(), Print(), putParams(), and SetTopPitch().


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