32 #ifndef FALAISE_SNEMO_GEOMETRY_MAPPED_MAGNETIC_FIELD_H 33 #define FALAISE_SNEMO_GEOMETRY_MAPPED_MAGNETIC_FIELD_H 77 virtual void tree_dump(std::ostream &out_ = std::clog,
const std::string &title_ =
"",
78 const std::string &indent_ =
"",
bool inherit_ =
false)
const;
104 std::string _map_filename_;
105 bool _zero_field_outside_map_;
109 boost::scoped_ptr<_work_type> _work_;
119 #endif // FALAISE_SNEMO_GEOMETRY_MAPPED_MAGNETIC_FIELD_H bool is_zero_field_outside_map() const
Return the flag to force a zero B-field outside the mapped domain.
#define EMFIELD_REGISTRATION_INTERFACE(EMFIELD_CLASS_NAME)
mapped_magnetic_field(uint32_t=0)
Default constructor.
void set_mapping_mode(mapping_mode_type)
Set the mapping mode.
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::emfield::base_electromagnetic_field::field_dict_type &)
Initialization.
void _set_defaults()
Set default attributes values.
mapping_mode_type
Mapping mode.
Definition: mapped_magnetic_field.h:50
Invalid mapping mode.
Definition: mapped_magnetic_field.h:51
std::map< std::string, handle_type > field_dict_type
virtual void reset()
Reset.
virtual int compute_electric_field(const ::geomtools::vector_3d &position_, double time_, ::geomtools::vector_3d &electric_field_) const
Compute electric field.
Class representing a contant mapped magnetic field.
Definition: mapped_magnetic_field.h:47
virtual ~mapped_magnetic_field()
Destructor.
void set_z_inverted(bool)
Set the Z component inversion flag.
Definition: calo_tapered_scin_box_model.h:54
Build from imported CSV file.
Definition: mapped_magnetic_field.h:52
void set_map_filename(const std::string &)
Set the map source filename.
bool is_z_inverted() const
Return the Z component inversion flag.
virtual int compute_magnetic_field(const ::geomtools::vector_3d &position_, double time_, geomtools::vector_3d &magnetic_field_) const
Compute magnetic field.
void set_zero_field_outside_map(bool)
Set the flag to force a zero B-field outside the mapped domain.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.