MarlinTPC  1.2.0
GEARMagneticField.h
1 #ifndef GEARMAGNETICFIELD_H
2 #define GEARMAGNETICFIELD_H 1
3 
4 // stl
5 #include <string>
6 #include <vector>
7 
8 // CLHEP
9 
10 // MarlinTPC
11 #include "Field.h"
12 
13 namespace EVENT {
14 
15  class LCCollection;
16 }
17 
18 namespace marlintpc {
19 
24 class GEARMagneticField: public Field {
25 
26 public:
30 
33  virtual ~GEARMagneticField();
34 
37  virtual Field *new_field( void );
38 
41  virtual bool construct( EVENT::LCCollection * );
42 
45  CLHEP::Hep3Vector get_field_value( const CLHEP::Hep3Vector & );
46 
49  std::string get_typename();
50 
51 protected:
52 
53 private:
54 
55 };
56 
57 } // namespace marlintpc
58 
59 #endif // GEARMAGNETICFIELD_H
GEARMagneticField : A magnetic field which is basically just a wrapper to accessing the global GEAR f...
Definition: GEARMagneticField.h:24
std::string get_typename()
returns the typename of the field
Field : A base interface to an electric or magnetic field.
Definition: Field.h:22
CLHEP::Hep3Vector get_field_value(const CLHEP::Hep3Vector &)
gets the field value at a specified point
Definition: GEARMagneticField.cc:56
virtual bool construct(EVENT::LCCollection *)
constructs the field from an LCCollection of data objects (could be anything...
Definition: GEARMagneticField.cc:48
virtual Field * new_field(void)
returns a new field...
Definition: GEARMagneticField.cc:43
virtual ~GEARMagneticField()
destructor
Definition: GEARMagneticField.cc:38
GEARMagneticField()
constructor
Definition: GEARMagneticField.cc:31