CMS 3D CMS Logo

VisG4ExampleField.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "VisExamples/VisG4ExN02/src/VisG4ExampleField.h"
00004 #include <G4FieldManager.hh>
00005 #include <G4TransportationManager.hh>
00006 
00007 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00008 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00009 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00010 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00011 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00012 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00013 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00014 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00015 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00016 
00017 VisG4ExampleField::VisG4ExampleField (G4ThreeVector fieldVector /* = G4ThreeVector () */)
00018     : G4UniformMagField (fieldVector)
00019 {
00020     G4FieldManager *fm = G4TransportationManager::GetTransportationManager ()
00021                          ->GetFieldManager ();
00022     fm->SetDetectorField (this);
00023     fm->CreateChordFinder (this);
00024 }

Generated on Tue Jun 9 17:49:46 2009 for CMSSW by  doxygen 1.5.4