EDepSimFixedPositionGenerator.cc
Go to the documentation of this file.
2 
4  const G4String& name, const G4ThreeVector& pos)
5  : EDepSim::VPositionGenerator(name), fPosition(pos) {}
6 
8 
10  return fPosition;
11 }
12 
14  return true;
15 }
16 
18  fPosition.set(pos.x(),pos.y(),pos.z(),0);
19 }
static QCString name
Definition: declinfo.cpp:673
FixedPositionGenerator(const G4String &name, const G4ThreeVector &pos)
Construct a module from components.
Definition: TG4HitSegment.h:10
virtual void SetPosition(const G4ThreeVector &pos)
Set the position for the vertex.
virtual G4LorentzVector GetPosition()
Return a candidate vertex.
G4LorentzVector fPosition
The position for this generator.