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

Charge Digitization Parameter Class for SDS. More...

#include <PndSdsTotDigiPar.h>

Inheritance diagram for PndSdsTotDigiPar:

Public Member Functions

 PndSdsTotDigiPar (const char *name="PndSdsParCharConv", const char *title="PndSds charge digi parameter", const char *context="TestDefaultContext")
 
 ~PndSdsTotDigiPar (void)
 
void clear (void)
 
void putParams (FairParamList *list)
 
Bool_t getParams (FairParamList *list)
 
virtual void Print (std::ostream &out=std::cout) const
 
Double_t GetChargingTime () const
 
Double_t GetConstCurrent () const
 
Double_t GetClockFrequency () const
 
void SetChargingTime (Double_t x)
 
void SetConstCurrent (Double_t x)
 
void SetClockFrequency (Double_t x)
 

Private Member Functions

 ClassDef (PndSdsTotDigiPar, 1)
 

Private Attributes

Double_t fChargingTime
 
Double_t fConstCurrent
 
Double_t fClockFrequency
 

Friends

std::ostreamoperator<< (std::ostream &out, const PndSdsTotDigiPar &dt)
 

Detailed Description

Charge Digitization Parameter Class for SDS.

Definition at line 15 of file PndSdsTotDigiPar.h.

Constructor & Destructor Documentation

PndSdsTotDigiPar::PndSdsTotDigiPar ( const char *  name = "PndSdsParCharConv",
const char *  title = "PndSds charge digi parameter",
const char *  context = "TestDefaultContext" 
)

Definition at line 4 of file PndSdsTotDigiPar.cxx.

References clear().

5  : FairParGenericSet(name,title,context),
6  fChargingTime(0.),
7  fConstCurrent(0.),
9 {
10  clear();
11 }
Double_t fClockFrequency
TString name
PndSdsTotDigiPar::~PndSdsTotDigiPar ( void  )
inline

Definition at line 21 of file PndSdsTotDigiPar.h.

21 {};

Member Function Documentation

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

Definition at line 22 of file PndSdsTotDigiPar.h.

Referenced by PndSdsTotDigiPar().

22 {};
Double_t PndSdsTotDigiPar::GetChargingTime ( ) const
inline
Double_t PndSdsTotDigiPar::GetClockFrequency ( ) const
inline
Double_t PndSdsTotDigiPar::GetConstCurrent ( ) const
inline
Bool_t PndSdsTotDigiPar::getParams ( FairParamList *  list)

Definition at line 21 of file PndSdsTotDigiPar.cxx.

References fChargingTime, fClockFrequency, and fConstCurrent.

22 {
23  if (!list) return kFALSE;
24  if (!list->fill("charge_time",&fChargingTime)) return kFALSE;
25  if (!list->fill("const_current",&fConstCurrent)) return kFALSE;
26  if (!list->fill("clock_frequency",&fClockFrequency)) return kFALSE;
27  return kTRUE;
28 }
Double_t fClockFrequency
void PndSdsTotDigiPar::Print ( std::ostream out = std::cout) const
virtual

Definition at line 32 of file PndSdsTotDigiPar.cxx.

References fChargingTime, fClockFrequency, and fConstCurrent.

Referenced by PndSdsTimeWalkCorrTask::Init().

33 {
34  out<<"SDS Mvd Tot Digitization Parameters:"<<std::endl;
35  out<<" charge time (ns) = "<<fChargingTime<<std::endl;
36  out<<" constant current (e/ns) = "<<fConstCurrent<<std::endl;
37  out<<" clock frequency (MHz) = "<<fClockFrequency<<std::endl;
38 }
Double_t fClockFrequency
void PndSdsTotDigiPar::putParams ( FairParamList *  list)

Definition at line 13 of file PndSdsTotDigiPar.cxx.

References fChargingTime, fClockFrequency, and fConstCurrent.

14 {
15  if(!list) return;
16  list->add("charge_time", fChargingTime);
17  list->add("const_current", fConstCurrent);
18  list->add("clock_frequency", fClockFrequency);
19 }
Double_t fClockFrequency
void PndSdsTotDigiPar::SetChargingTime ( Double_t  x)
inline

Definition at line 37 of file PndSdsTotDigiPar.h.

References fChargingTime, and x.

37 {fChargingTime = x;}
Double_t x
void PndSdsTotDigiPar::SetClockFrequency ( Double_t  x)
inline

Definition at line 39 of file PndSdsTotDigiPar.h.

References fClockFrequency, and x.

39 {fClockFrequency = x;};
Double_t fClockFrequency
Double_t x
void PndSdsTotDigiPar::SetConstCurrent ( Double_t  x)
inline

Definition at line 38 of file PndSdsTotDigiPar.h.

References fConstCurrent, and x.

38 {fConstCurrent = x;}
Double_t x

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
const PndSdsTotDigiPar dt 
)
friend

Definition at line 28 of file PndSdsTotDigiPar.h.

28  {
29  dt.Print(out);
30  return out;
31  }
TFile * out
Definition: reco_muo.C:20
virtual void Print(std::ostream &out=std::cout) const

Member Data Documentation

Double_t PndSdsTotDigiPar::fChargingTime
private

Definition at line 39 of file PndSdsTotDigiPar.h.

Referenced by GetChargingTime(), getParams(), Print(), putParams(), and SetChargingTime().

Double_t PndSdsTotDigiPar::fClockFrequency
private

Definition at line 46 of file PndSdsTotDigiPar.h.

Referenced by GetClockFrequency(), getParams(), Print(), putParams(), and SetClockFrequency().

Double_t PndSdsTotDigiPar::fConstCurrent
private

Definition at line 45 of file PndSdsTotDigiPar.h.

Referenced by GetConstCurrent(), getParams(), Print(), putParams(), and SetConstCurrent().


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