Public Member Functions | Private Attributes | List of all members
EDepSim::FixedPositionGenerator Class Reference

#include <EDepSimFixedPositionGenerator.hh>

Inheritance diagram for EDepSim::FixedPositionGenerator:
EDepSim::VPositionGenerator

Public Member Functions

 FixedPositionGenerator (const G4String &name, const G4ThreeVector &pos)
 
virtual ~FixedPositionGenerator ()
 
virtual G4LorentzVector GetPosition ()
 Return a candidate vertex. More...
 
virtual void SetPosition (const G4ThreeVector &pos)
 Set the position for the vertex. More...
 
virtual bool ForcePosition ()
 
- Public Member Functions inherited from EDepSim::VPositionGenerator
 VPositionGenerator (const G4String &name)
 
virtual ~VPositionGenerator ()
 
G4String GetName () const
 Return the name of the generator. More...
 

Private Attributes

G4LorentzVector fPosition
 The position for this generator. More...
 

Detailed Description

Definition at line 11 of file EDepSimFixedPositionGenerator.hh.

Constructor & Destructor Documentation

EDepSim::FixedPositionGenerator::FixedPositionGenerator ( const G4String &  name,
const G4ThreeVector &  pos 
)

Definition at line 3 of file EDepSimFixedPositionGenerator.cc.

EDepSim::FixedPositionGenerator::~FixedPositionGenerator ( )
virtual

Definition at line 7 of file EDepSimFixedPositionGenerator.cc.

7 {}

Member Function Documentation

bool EDepSim::FixedPositionGenerator::ForcePosition ( )
virtual

Flag if the vertex should be forced to the candidate vertex returned by GetPosition().

Implements EDepSim::VPositionGenerator.

Definition at line 13 of file EDepSimFixedPositionGenerator.cc.

13  {
14  return true;
15 }
G4LorentzVector EDepSim::FixedPositionGenerator::GetPosition ( )
virtual

Return a candidate vertex.

Implements EDepSim::VPositionGenerator.

Definition at line 9 of file EDepSimFixedPositionGenerator.cc.

9  {
10  return fPosition;
11 }
G4LorentzVector fPosition
The position for this generator.
void EDepSim::FixedPositionGenerator::SetPosition ( const G4ThreeVector &  pos)
virtual

Set the position for the vertex.

Definition at line 17 of file EDepSimFixedPositionGenerator.cc.

17  {
18  fPosition.set(pos.x(),pos.y(),pos.z(),0);
19 }
G4LorentzVector fPosition
The position for this generator.

Member Data Documentation

G4LorentzVector EDepSim::FixedPositionGenerator::fPosition
private

The position for this generator.

Definition at line 29 of file EDepSimFixedPositionGenerator.hh.


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