16 #ifndef EMFIELD_OSCILLATING_FIELD_H 17 #define EMFIELD_OSCILLATING_FIELD_H 1 62 virtual void initialize(const ::datatools::properties &,
106 virtual void tree_dump (std::ostream & out_ = std::clog,
107 const std::string & title_ =
"",
108 const std::string & indent_ =
"",
109 bool inherit_ =
false)
const;
133 #endif // EMFIELD_OSCILLATING_FIELD_H virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
double get_frequency() const
#define EMFIELD_REGISTRATION_INTERFACE(EMFIELD_CLASS_NAME)
Definition: electromagnetic_field_macros.h:157
void set_field(base_electromagnetic_field::handle_type &)
double get_period() const
void set_frequency(double)
oscillating_field(uint32_t=0)
Default constructor.
void set_sine_cosine_mode(mode_sin_cos_type)
virtual ~oscillating_field()
Destructor.
Class representing a weighted electric/magnetic field with some oscillating coefficient.
Definition: oscillating_field.h:44
Sine mode.
Definition: oscillating_field.h:51
double get_pedestal() const
std::map< std::string, handle_type > field_dict_type
Definition: base_electromagnetic_field.h:49
virtual int compute_magnetic_field(const ::geomtools::vector_3d &position_, double time_, geomtools::vector_3d &magnetic_field_) const
Compute magnetic field.
Abstract base class for all electromagnetic field.
Definition: base_electromagnetic_field.h:43
void set_pedestal(double)
Cosine mode.
Definition: oscillating_field.h:50
Top-level namespace of the Bayeux/emfield module library.
Definition: base_electromagnetic_field.h:40
virtual int compute_electric_field(const ::geomtools::vector_3d &position_, double time_, ::geomtools::vector_3d &electric_field_) const
Compute electric field.
bool is_sine_mode() const
Invalid sine/cosine mode.
Definition: oscillating_field.h:49
double _get_coefficient(double time_) const
bool is_cosine_mode() const
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::emfield::base_electromagnetic_field::field_dict_type &)
Initialization.
Default mode.
Definition: oscillating_field.h:52
mode_sin_cos_type
Definition: oscillating_field.h:48
virtual void reset()
Reset.