Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4BFieldIntegrationDriver.icc was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 // G4BFieldIntegrationDriver inline methods
0027 //
0028 // Author: Dmitry Sorokin (CERN, Google Summer of Code), 12.09.2018
0029 // Supervision: John Apostolakis (CERN)
0030 // --------------------------------------------------------------------
0031 
0032 inline
0033 G4bool G4BFieldIntegrationDriver::AccurateAdvance(G4FieldTrack& track,
0034                                   G4double hstep,
0035                                   G4double eps,
0036                                   G4double hinitial)
0037 {
0038   return fCurrDriver->AccurateAdvance(track, hstep, eps, hinitial);
0039 }
0040 
0041 inline
0042 G4bool G4BFieldIntegrationDriver::DoesReIntegrate() const
0043 {
0044   return fCurrDriver->DoesReIntegrate();
0045 }
0046    
0047 inline
0048 G4EquationOfMotion* G4BFieldIntegrationDriver::GetEquationOfMotion()
0049 {
0050   return fCurrDriver->GetEquationOfMotion();
0051 }
0052 
0053 inline
0054 G4MagIntegratorStepper* G4BFieldIntegrationDriver::GetStepper()
0055 {
0056   return fCurrDriver->GetStepper();
0057 }
0058 
0059 inline
0060 G4double G4BFieldIntegrationDriver::ComputeNewStepSize(G4double errMaxNorm,
0061                                        G4double hstepCurrent)
0062 {
0063   return fCurrDriver->ComputeNewStepSize(errMaxNorm, hstepCurrent);
0064 }
0065 
0066 inline
0067 void G4BFieldIntegrationDriver::SetVerboseLevel(G4int level)
0068 {
0069   fSmallStepDriver->SetVerboseLevel(level);
0070   fLargeStepDriver->SetVerboseLevel(level);
0071 }
0072 
0073 inline
0074 G4int G4BFieldIntegrationDriver::GetVerboseLevel() const
0075 {
0076   return fCurrDriver->GetVerboseLevel();
0077 }
0078 
0079 inline
0080 void G4BFieldIntegrationDriver::OnComputeStep(const G4FieldTrack* track)
0081 {
0082   fSmallStepDriver->OnComputeStep(track);
0083   fLargeStepDriver->OnComputeStep(track);
0084 }
0085 
0086 inline
0087 void G4BFieldIntegrationDriver::OnStartTracking()
0088 {
0089   fSmallStepDriver->OnStartTracking();
0090   fLargeStepDriver->OnStartTracking();
0091 }
0092 
0093 inline
0094 void G4BFieldIntegrationDriver::StreamInfo( std::ostream& os ) const
0095 {
0096   os << "Small Step Driver Info: " << std::endl;
0097   fSmallStepDriver->StreamInfo(os);
0098   os << "Large Step Driver Info: " << std::endl;        
0099   fLargeStepDriver->StreamInfo(os);
0100 }
0101    
0102 /** ----------------- Deprecated methods ----------------------------------- **/
0103 
0104 inline
0105 void G4BFieldIntegrationDriver::GetDerivatives(const G4FieldTrack& track,
0106                                                      G4double dydx[]) const
0107 {
0108   fCurrDriver->GetDerivatives(track, dydx);
0109 }
0110 
0111 inline
0112 void G4BFieldIntegrationDriver::GetDerivatives(const G4FieldTrack& track,
0113                                                      G4double dydx[],
0114                                                      G4double field[]) const
0115 {
0116   fCurrDriver->GetDerivatives(track, dydx, field);
0117 }
0118 
0119 inline
0120 const G4MagIntegratorStepper* G4BFieldIntegrationDriver::GetStepper() const
0121 {
0122   return fCurrDriver->GetStepper();
0123 }
0124 
0125 /** ------------------------------------------------------------------------ **/