PandaRoot
PndRangeValues Class Reference

#include <PndFixStepParticleGun.h>

Public Member Functions

 PndRangeValues (Double32_t start=0, Double32_t stop=0, Double32_t step=1)
 
virtual ~PndRangeValues ()
 
void SetStart (Double32_t val)
 
void SetStop (Double32_t val)
 
void SetStep (Double32_t val)
 
void SetActualValue (Double32_t val)
 
int GetNSteps ()
 
virtual Double32_t GetStep ()
 
 ClassDef (PndRangeValues, 1)
 

Public Attributes

Double32_t fStart
 
Double32_t fStop
 
Double32_t fStep
 
Double32_t fActualValue
 

Detailed Description

Definition at line 18 of file PndFixStepParticleGun.h.

Constructor & Destructor Documentation

◆ PndRangeValues()

PndRangeValues::PndRangeValues ( Double32_t  start = 0,
Double32_t  stop = 0,
Double32_t  step = 1 
)
inline

Definition at line 20 of file PndFixStepParticleGun.h.

20 : fStart(start), fStop(stop), fStep(step), fActualValue(start) {}

◆ ~PndRangeValues()

virtual PndRangeValues::~PndRangeValues ( )
inlinevirtual

Definition at line 21 of file PndFixStepParticleGun.h.

References fStart.

21 {};

Member Function Documentation

◆ ClassDef()

PndRangeValues::ClassDef ( PndRangeValues  ,
 
)

◆ GetNSteps()

int PndRangeValues::GetNSteps ( )
inline

Definition at line 36 of file PndFixStepParticleGun.h.

37  {
38  if (fStep != 0)
39  return ((fStop - fStart) / fStep) + 1;
40  else
41  return 1;
42  }

◆ GetStep()

virtual Double32_t PndRangeValues::GetStep ( )
inlinevirtual

Definition at line 44 of file PndFixStepParticleGun.h.

References ClassDef(), and fStep.

44 { return fStep; }

◆ SetActualValue()

void PndRangeValues::SetActualValue ( Double32_t  val)
inline

Definition at line 34 of file PndFixStepParticleGun.h.

34 { fActualValue = val; };

◆ SetStart()

void PndRangeValues::SetStart ( Double32_t  val)
inline

Definition at line 27 of file PndFixStepParticleGun.h.

28  {
29  fStart = val;
30  fActualValue = val;
31  };

◆ SetStep()

void PndRangeValues::SetStep ( Double32_t  val)
inline

Definition at line 33 of file PndFixStepParticleGun.h.

33 { fStep = val; };

◆ SetStop()

void PndRangeValues::SetStop ( Double32_t  val)
inline

Definition at line 32 of file PndFixStepParticleGun.h.

32 { fStop = val; };

Member Data Documentation

◆ fActualValue

Double32_t PndRangeValues::fActualValue

Definition at line 25 of file PndFixStepParticleGun.h.

◆ fStart

Double32_t PndRangeValues::fStart

Definition at line 21 of file PndFixStepParticleGun.h.

Referenced by ~PndRangeValues().

◆ fStep

Double32_t PndRangeValues::fStep

Definition at line 24 of file PndFixStepParticleGun.h.

Referenced by GetStep().

◆ fStop

Double32_t PndRangeValues::fStop

Definition at line 23 of file PndFixStepParticleGun.h.


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