#include <FWMagField.h>
Public Types | |
enum | ESource { kNone, kEvent, kUser } |
Public Member Functions | |
void | checkFieldInfo (const edm::EventBase *) |
FWMagField () | |
TEveVector | GetField (Float_t x, Float_t y, Float_t z) const override |
Float_t | GetMaxFieldMag () const override |
ESource | getSource () const |
float | getUserField () const |
void | guessField (float estimate) const |
void | guessFieldIsOn (bool guess) const |
bool | isReverse () const |
bool | isSimpleModel () const |
void | resetFieldEstimate () const |
void | setFFFieldMag (float) |
void | setReverseState (bool state) |
void | setSimpleModel (bool simpleModel) |
void | setSource (ESource x) |
void | setUserField (float b) |
~FWMagField () override | |
Private Member Functions | |
FWMagField (const FWMagField &)=delete | |
Float_t | GetFieldMag () const |
const FWMagField & | operator= (const FWMagField &)=delete |
Private Attributes | |
float | m_eventField |
float | m_guessedField |
TH1F * | m_guessValHist |
int | m_numberOfFieldEstimates |
int | m_numberOfFieldIsOnEstimates |
bool | m_reverse |
bool | m_simpleModel |
ESource | m_source |
bool | m_updateFieldEstimate |
float | m_userField |
Definition at line 15 of file FWMagField.h.
enum FWMagField::ESource |
Enumerator | |
---|---|
kNone | |
kEvent | |
kUser |
Definition at line 20 of file FWMagField.h.
FWMagField::FWMagField | ( | ) |
|
override |
|
privatedelete |
void FWMagField::checkFieldInfo | ( | const edm::EventBase * | event | ) |
Definition at line 172 of file FWMagField.cc.
References edm::ConditionsInRunBlock::BAvgCurrent, event(), fwLog, fwlite::Run::getByLabel(), fwlite::Event::getRun(), mps_fire::i, edm::HandleBase::isValid(), fwlog::kDebug, kEvent, kNone, m_eventField, and m_source.
Referenced by CmsShowMainBase::draw().
|
override |
Definition at line 40 of file FWMagField.cc.
References Abs(), GetFieldMag(), m_reverse, m_simpleModel, dttmaxenums::R, and mathSSE::sqrt().
|
private |
Definition at line 85 of file FWMagField.cc.
References kEvent, kUser, m_eventField, m_guessedField, m_guessValHist, m_numberOfFieldEstimates, m_numberOfFieldIsOnEstimates, m_source, m_updateFieldEstimate, and m_userField.
Referenced by GetField(), and GetMaxFieldMag().
|
override |
|
inline |
Definition at line 33 of file FWMagField.h.
Referenced by FWMuonBuilder::calculateField(), CmsShowMainBase::draw(), and CmsShowMain::fileChangedSlot().
|
inline |
Definition at line 31 of file FWMagField.h.
void FWMagField::guessField | ( | float | estimate | ) | const |
Definition at line 155 of file FWMagField.cc.
References m_guessValHist, and m_updateFieldEstimate.
Referenced by FWTrackProxyBuilder::build(), and FWMuonBuilder::calculateField().
void FWMagField::guessFieldIsOn | ( | bool | guess | ) | const |
Definition at line 148 of file FWMagField.cc.
References m_numberOfFieldEstimates, m_numberOfFieldIsOnEstimates, and m_updateFieldEstimate.
Referenced by FWMuonBuilder::calculateField().
|
inline |
Definition at line 37 of file FWMagField.h.
|
inline |
Definition at line 39 of file FWMagField.h.
|
privatedelete |
void FWMagField::resetFieldEstimate | ( | ) | const |
Definition at line 162 of file FWMagField.cc.
References m_guessValHist, m_numberOfFieldEstimates, m_numberOfFieldIsOnEstimates, and m_updateFieldEstimate.
Referenced by CmsShowMain::fileChangedSlot().
void FWMagField::setFFFieldMag | ( | float | mag | ) |
Definition at line 229 of file FWMagField.cc.
References kEvent, m_eventField, m_source, and mag().
|
inline |
Definition at line 36 of file FWMagField.h.
|
inline |
Definition at line 38 of file FWMagField.h.
|
inline |
Definition at line 32 of file FWMagField.h.
|
inline |
|
private |
Definition at line 55 of file FWMagField.h.
Referenced by checkFieldInfo(), GetFieldMag(), and setFFFieldMag().
|
mutableprivate |
Definition at line 65 of file FWMagField.h.
Referenced by GetFieldMag().
|
mutableprivate |
Definition at line 61 of file FWMagField.h.
Referenced by FWMagField(), GetFieldMag(), guessField(), resetFieldEstimate(), and ~FWMagField().
|
mutableprivate |
Definition at line 63 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
mutableprivate |
Definition at line 62 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 57 of file FWMagField.h.
Referenced by GetField().
|
private |
Definition at line 58 of file FWMagField.h.
Referenced by GetField().
|
private |
Definition at line 53 of file FWMagField.h.
Referenced by checkFieldInfo(), GetFieldMag(), and setFFFieldMag().
|
mutableprivate |
Definition at line 64 of file FWMagField.h.
Referenced by GetFieldMag(), guessField(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 54 of file FWMagField.h.
Referenced by GetFieldMag().