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 30 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 32 of file PndFixStepParticleGun.h.

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

◆ ~PndRangeValues()

virtual PndRangeValues::~PndRangeValues ( )
inlinevirtual

Definition at line 33 of file PndFixStepParticleGun.h.

References fStart.

33 {};

Member Function Documentation

◆ ClassDef()

PndRangeValues::ClassDef ( PndRangeValues  ,
 
)

◆ GetNSteps()

int PndRangeValues::GetNSteps ( )
inline

Definition at line 48 of file PndFixStepParticleGun.h.

49  {
50  if (fStep != 0)
51  return ((fStop - fStart) / fStep) + 1;
52  else
53  return 1;
54  }

◆ GetStep()

virtual Double32_t PndRangeValues::GetStep ( )
inlinevirtual

Definition at line 56 of file PndFixStepParticleGun.h.

References ClassDef(), and fStep.

56 { return fStep; }

◆ SetActualValue()

void PndRangeValues::SetActualValue ( Double32_t  val)
inline

Definition at line 46 of file PndFixStepParticleGun.h.

46 { fActualValue = val; };

◆ SetStart()

void PndRangeValues::SetStart ( Double32_t  val)
inline

Definition at line 39 of file PndFixStepParticleGun.h.

40  {
41  fStart = val;
42  fActualValue = val;
43  };

◆ SetStep()

void PndRangeValues::SetStep ( Double32_t  val)
inline

Definition at line 45 of file PndFixStepParticleGun.h.

45 { fStep = val; };

◆ SetStop()

void PndRangeValues::SetStop ( Double32_t  val)
inline

Definition at line 44 of file PndFixStepParticleGun.h.

44 { fStop = val; };

Member Data Documentation

◆ fActualValue

Double32_t PndRangeValues::fActualValue

Definition at line 37 of file PndFixStepParticleGun.h.

◆ fStart

Double32_t PndRangeValues::fStart

Definition at line 33 of file PndFixStepParticleGun.h.

Referenced by ~PndRangeValues().

◆ fStep

Double32_t PndRangeValues::fStep

Definition at line 36 of file PndFixStepParticleGun.h.

Referenced by GetStep().

◆ fStop

Double32_t PndRangeValues::fStop

Definition at line 35 of file PndFixStepParticleGun.h.


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