75 magneticField_(iConfig.getUntrackedParameter<int>(
"magneticField")),
76 magneticFieldCurrentRun_(-10000) {
115 desc.
setComment(
"Filters events with a magnetic field of 'magneticField'.");
117 ->setComment(
"In units of kGauss (= 0.1 Tesla).");
118 descriptions.
add(
"magneticFieldFilter", desc);
static float constantTermCurrentToField_
see: https://hypernews.cern.ch/HyperNews/CMS/get/magnetic-field/63/1/1/1.html
static float linearCoeffCurrentToField_
see: https://hypernews.cern.ch/HyperNews/CMS/get/magnetic-field/63/1/1/1.html
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
int magneticFieldCurrentRun_
magnetic field that is filtered
void setComment(std::string const &value)
float currentToField(const float ¤t) const
convert Ampere (A) to Tesla (T)
~MagneticFieldFilter()=default
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual bool filter(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &)
MagneticFieldFilter(const edm::ParameterSet &)