Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4BiasingOperator.h
Go to the documentation of this file.
1#ifndef TG4_BIASING_OPERATOR_HH
2#define TG4_BIASING_OPERATOR_HH
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2019 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "G4VBiasingOperator.hh"
19#include <vector>
20
23
25{
26 // When a proton, or neutron, or pion+ or pion- inelastic process occurs
27 // (naturally, without any biasing) in the logical volume(s) where this
28 // biasing operator has been attached to, this class uses the biasing "trick"
29 // of calling FTFP+INCLXX instead of FTFP+BERT for determining the
30 // final-state. Note that the weights of the produced secondaries are left to
31 // their default values, 1.0.
32 public:
35 void AddParticle(G4String particleName);
37 const G4Track* track,
38 const G4BiasingProcessInterface* callingProcess) final;
39 // Not used:
41 const G4Track*, const G4BiasingProcessInterface*)
42 {
43 return 0;
44 }
46 const G4Track*, const G4BiasingProcessInterface*)
47 {
48 return 0;
49 }
50
51 private:
52 std::vector<const G4ParticleDefinition*> fParticlesToBias;
54};
55
56#endif // TG4_BIASING_OPERATOR_HH
virtual G4VBiasingOperation * ProposeFinalStateBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess) final
TG4BiasingOperation * fBiasingOperation
std::vector< const G4ParticleDefinition * > fParticlesToBias
void AddParticle(G4String particleName)
virtual G4VBiasingOperation * ProposeOccurenceBiasingOperation(const G4Track *, const G4BiasingProcessInterface *)
virtual G4VBiasingOperation * ProposeNonPhysicsBiasingOperation(const G4Track *, const G4BiasingProcessInterface *)