// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4ProcessPlacer.hh,v 1.7 2003/11/26 14:51:48 gcosmo Exp $ // GEANT4 tag $Name: geant4-06-00-patch-01 $ // // ---------------------------------------------------------------------- // Class G4ProcessPlacer // // Class description: // // Used internally by importance sampling and scoring. // See G4VProcessPlacer. // Author: Michael Dressel (Michael.Dressel@cern.ch) // ---------------------------------------------------------------------- #ifndef G4ProcessPlacer_hh #define G4ProcessPlacer_hh G4ProcessPlacer_hh #include "G4Types.hh" #include "G4String.hh" #include "G4VProcessPlacer.hh" class G4ProcessManager; class G4ProcessVector; class G4ProcessPlacer : public G4VProcessPlacer { public: // with description explicit G4ProcessPlacer(const G4String &particlename); // create a process placer for a particle type virtual ~G4ProcessPlacer(); virtual void AddProcessAsLastDoIt(G4VProcess *process); // place a post step do it process such that the // PostStepDoIt function is called last // THE ORDER CHANGES BY SUBSEQUENT CALLS virtual void AddProcessAsSecondDoIt(G4VProcess *process); // place a post step do it process such that the // PostStepDoIt function is called second // THE ORDER CHANGES BY SUBSEQUENT CALLS virtual void RemoveProcess(G4VProcess *process); // removes a given process enum SecondOrLast { eSecond = 1, eLast = 0 }; private: G4ProcessManager *GetProcessManager(); void AddProcessAs(G4VProcess *process, SecondOrLast); void PrintProcVec(G4ProcessVector* processVec); void PrintPostStepGPILVec(); void PrintPostStepDoItVec(); private: G4String fParticleName; }; #endif