1 #include <G4PrimaryVertex.hh>    10     : fSource(src), fDestination(dest), 
fRelative(relative) { }
    16     if (fSource < 0 || fSource >= evt->GetNumberOfPrimaryVertex()) {
    20     if (fDestination < 0 || fDestination >= evt->GetNumberOfPrimaryVertex()) {
    24     G4ThreeVector src = evt->GetPrimaryVertex(
fSource)->GetPosition();
    25     double srcTime = evt->GetPrimaryVertex(
fSource)->GetT0();
    29         double destTime = evt->GetPrimaryVertex(
fDestination)->GetT0();
    31         srcTime = srcTime + destTime;
    34     evt->GetPrimaryVertex(
fDestination)->SetPosition(src.x(),src.y(),src.z());
 int fSource
The index of the source vertex to copy from. 
 
int fDestination
The index of the destination vertex to copy to. 
 
virtual void GeneratePrimaryVertex(G4Event *evt)
 
G4String GetName()
Return the name of this generator. 
 
virtual ~CombinationGenerator()
 
static TemplateFilterFactory::AutoRegister< FilterRelative > fRelative("relative")
 
CombinationGenerator(int src, int dest, bool relative)