67 lines
2.6 KiB
C++
67 lines
2.6 KiB
C++
//
|
|
// ********************************************************************
|
|
// * 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: ExN02MagneticField.hh,v 1.1 2002/03/05 15:21:57 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
|
//
|
|
//
|
|
// A class for control of the Magnetic Field of the detector.
|
|
// The field is assumed to be uniform.
|
|
//
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#ifndef ExN02MagneticField_H
|
|
#define ExN02MagneticField_H
|
|
|
|
#include "G4UniformMagField.hh"
|
|
|
|
class G4FieldManager;
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
|
|
class ExN02MagneticField: public G4UniformMagField
|
|
{
|
|
public:
|
|
|
|
ExN02MagneticField(G4ThreeVector); // The value of the field
|
|
ExN02MagneticField(); // A zero field
|
|
~ExN02MagneticField();
|
|
|
|
//Set the field (fieldValue,0,0)
|
|
void SetFieldValue(G4double fieldValue);
|
|
void SetFieldValue(G4ThreeVector fieldVector);
|
|
|
|
G4ThreeVector GetConstantFieldValue();
|
|
|
|
protected:
|
|
|
|
// Find the global Field Manager
|
|
G4FieldManager* GetGlobalFieldManager(); // static
|
|
};
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|
|
|
#endif
|