Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,40 @@
// This code implementation is the intellectual property of
// the RD44 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: G4FieldManager.cc,v 2.1 1998/07/12 02:55:15 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
#include "G4FieldManager.hh"
G4FieldManager::G4FieldManager()
{
fDetectorField= 0;
fAllocatedChordFinder= false;
}
G4FieldManager::G4FieldManager(G4MagneticField *detectorField)
{
fDetectorField= detectorField;
this->CreateChordFinder(detectorField);
}
G4FieldManager::~G4FieldManager()
{
if( fAllocatedChordFinder ){
delete fChordFinder;
}
}
void
G4FieldManager::CreateChordFinder(G4MagneticField *detectorMagField)
{
fChordFinder= new G4ChordFinder( detectorMagField );
fAllocatedChordFinder= true;
}