#include <FWMagField.h>
Public Types | |
enum | ESource { kNone, kEvent, kUser } |
Public Member Functions | |
void | checkFieldInfo (const edm::EventBase *) |
FWMagField () | |
FWMagField (const FWMagField &)=delete | |
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 |
const FWMagField & | operator= (const FWMagField &)=delete |
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 | |
Float_t | GetFieldMag () const |
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 14 of file FWMagField.h.
enum FWMagField::ESource |
Enumerator | |
---|---|
kNone | |
kEvent | |
kUser |
Definition at line 18 of file FWMagField.h.
FWMagField::FWMagField | ( | ) |
Definition at line 11 of file FWMagField.cc.
References m_guessValHist.
|
override |
|
delete |
void FWMagField::checkFieldInfo | ( | const edm::EventBase * | event | ) |
Definition at line 144 of file FWMagField.cc.
References edm::ConditionsInRunBlock::BAvgCurrent, topElectronID_cff::dcsTag, edmPickEvents::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 34 of file FWMagField.cc.
References GetFieldMag(), m_reverse, m_simpleModel, dttmaxenums::R, mathSSE::sqrt(), x, y, and z.
|
private |
Definition at line 73 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 31 of file FWMagField.h.
References m_source.
Referenced by FWMuonBuilder::calculateField(), CmsShowMainBase::draw(), CmsShowMain::fileChangedSlot(), FWPFTrackUtils::setupLegoTrack(), and FWPFTrackUtils::setupTrack().
|
inline |
void FWMagField::guessField | ( | float | estimate | ) | const |
Definition at line 129 of file FWMagField.cc.
References m_guessValHist, m_updateFieldEstimate, and heppy_batch::val.
Referenced by FWTrackProxyBuilder::build(), FWMuonBuilder::calculateField(), FWPFTrackUtils::setupLegoTrack(), and FWPFTrackUtils::setupTrack().
void FWMagField::guessFieldIsOn | ( | bool | guess | ) | const |
Definition at line 122 of file FWMagField.cc.
References m_numberOfFieldEstimates, m_numberOfFieldIsOnEstimates, and m_updateFieldEstimate.
Referenced by FWMuonBuilder::calculateField().
|
inline |
|
inline |
|
delete |
void FWMagField::resetFieldEstimate | ( | ) | const |
Definition at line 135 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 190 of file FWMagField.cc.
References kEvent, m_eventField, m_source, and mag().
Referenced by FWFFLooper::beginRun().
|
inline |
|
inline |
|
inline |
Definition at line 30 of file FWMagField.h.
|
inline |
|
private |
Definition at line 53 of file FWMagField.h.
Referenced by checkFieldInfo(), GetFieldMag(), and setFFFieldMag().
|
mutableprivate |
Definition at line 63 of file FWMagField.h.
Referenced by GetFieldMag().
|
mutableprivate |
Definition at line 59 of file FWMagField.h.
Referenced by FWMagField(), GetFieldMag(), guessField(), resetFieldEstimate(), and ~FWMagField().
|
mutableprivate |
Definition at line 61 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
mutableprivate |
Definition at line 60 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 55 of file FWMagField.h.
Referenced by GetField(), isReverse(), and setReverseState().
|
private |
Definition at line 56 of file FWMagField.h.
Referenced by GetField(), isSimpleModel(), and setSimpleModel().
|
private |
Definition at line 51 of file FWMagField.h.
Referenced by checkFieldInfo(), GetFieldMag(), getSource(), setFFFieldMag(), and setSource().
|
mutableprivate |
Definition at line 62 of file FWMagField.h.
Referenced by GetFieldMag(), guessField(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 52 of file FWMagField.h.
Referenced by GetFieldMag(), getUserField(), and setUserField().