Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:27

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /*
0027  * G4ITTimeStepper.hh
0028  *
0029  *  Created on: 4 juin 2014
0030  *      Author: kara
0031  */
0032 
0033 #ifndef G4ITTIMESTEPPER_HH_
0034 #define G4ITTIMESTEPPER_HH_
0035 
0036 #include "globals.hh"
0037 #include "tls.hh"
0038 #include <map>
0039 
0040 class G4VITStepModel;
0041 class G4ITModelHandler;
0042 class G4UserTimeStepAction;
0043 class G4ITGun;
0044 class G4ITTrackingInteractivity;
0045 
0046 class G4VScheduler
0047 {
0048 protected:
0049   G4VScheduler();
0050   virtual ~G4VScheduler();
0051 private:
0052   static G4ThreadLocal G4VScheduler* fpInstance;
0053 
0054 public:
0055   static G4VScheduler* Instance();
0056   virtual void Initialize(){;}
0057   virtual void Reset(){;}
0058 
0059   virtual void SetVerbose(int){;}
0060 
0061   virtual void SetGun(G4ITGun*){;}
0062 
0063   virtual void Process();
0064 
0065   virtual G4bool IsRunning(){ return false; }
0066 
0067   virtual G4ITModelHandler* GetModelHandler(){ return nullptr; }
0068 
0069   virtual void RegisterModel(G4VITStepModel*, double){;}
0070 
0071   virtual void SetEndTime(const double){;}
0072 
0073   virtual void SetTimeTolerance(double){;}
0074   // Two tracks below the time tolerance are supposed to be
0075   // in the same time slice
0076   virtual double GetTimeTolerance() const{ return -1;}
0077 
0078   virtual void SetMaxZeroTimeAllowed(int){;}
0079   virtual int GetMaxZeroTimeAllowed() const{ return -1;}
0080 
0081   virtual void SetTimeSteps(std::map<double, double>*){;}
0082   virtual void AddTimeStep(double /*startingTime*/, double /*timeStep*/){;}
0083   virtual void SetDefaultTimeStep(double){;}
0084   virtual double GetLimitingTimeStep() const {return -1;}
0085   virtual G4int GetNbSteps() const {return -1;}
0086   virtual void SetMaxNbSteps(G4int) {;}
0087   virtual G4int GetMaxNbSteps() const {return 0;}
0088   virtual G4double GetStartTime() const {return -1;}
0089   virtual G4double GetEndTime() const {return -1;}
0090   virtual G4double GetTimeStep() const {return -1;}
0091   virtual G4double GetPreviousTimeStep() const {return -1;}
0092   virtual G4double GetGlobalTime() const {return -1;}
0093 
0094   virtual void SetUserAction(G4UserTimeStepAction*) {;}
0095   virtual G4UserTimeStepAction* GetUserTimeStepAction() const {return nullptr;}
0096 
0097   virtual void SetInteractivity(G4ITTrackingInteractivity*){;}
0098   virtual G4ITTrackingInteractivity* GetInteractivity() {return nullptr;}
0099 };
0100 
0101 #endif /* G4ITTIMESTEPPER_HH_ */