43 lines
843 B
C++
43 lines
843 B
C++
//
|
|
// katrin_fields.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 03.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef katrin_fields_hpp
|
|
#define katrin_fields_hpp
|
|
|
|
#include "error_types.h"
|
|
#include "katrin_geo.h"
|
|
|
|
|
|
class Katrin_Fields {
|
|
static const double wgtsMagField_T;
|
|
|
|
public:
|
|
Katrin_Fields() {};
|
|
|
|
static vec3 getMagField_T(vec3 loc_m) {
|
|
if (!in_Katrin(loc_m)) {
|
|
std::stringstream ss;
|
|
ss<<"Katrin_Fields::getMagField_T: loc_m outside of Katrin.\n";
|
|
throw MyException(ss.str());
|
|
}
|
|
return vec3(0,0,wgtsMagField_T);
|
|
}
|
|
static vec3 getElField_Vm(vec3 loc_m) {
|
|
if (!in_Katrin(loc_m)) {
|
|
std::stringstream ss;
|
|
ss<<"Katrin_Fields::getElField_Vm: loc_m outside of Katrin.\n";
|
|
throw MyException(ss.str());
|
|
}
|
|
return vec3(0,0,0);
|
|
}
|
|
|
|
};
|
|
|
|
|
|
#endif /* katrin_fields_hpp */
|