#include <FWMagField.h>
Public Types | |
enum | ESource { kNone, kEvent, kUser } |
Public Member Functions | |
void | checkFieldInfo (const edm::EventBase *) |
FWMagField () | |
virtual TEveVector | GetField (Float_t x, Float_t y, Float_t z) const |
virtual Float_t | GetMaxFieldMag () const |
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 | setReverseState (bool state) |
void | setSimpleModel (bool simpleModel) |
void | setSource (ESource x) |
void | setUserField (float b) |
virtual | ~FWMagField () |
Private Member Functions | |
FWMagField (const FWMagField &) | |
Float_t | GetFieldMag () const |
const FWMagField & | operator= (const FWMagField &) |
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 | ( | ) |
|
virtual |
|
private |
void FWMagField::checkFieldInfo | ( | const edm::EventBase * | event | ) |
Definition at line 172 of file FWMagField.cc.
References event(), fwLog, fwlite::Run::getByLabel(), fwlite::Event::getRun(), i, edm::HandleBase::isValid(), fwlog::kDebug, kNone, m_eventField, and m_source.
Referenced by CmsShowMainBase::draw().
|
virtual |
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().
|
virtual |
|
inline |
Definition at line 33 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 155 of file FWMagField.cc.
References m_guessValHist, and m_updateFieldEstimate.
Referenced by FWTrackProxyBuilder::build(), FWMuonBuilder::calculateField(), FWPFTrackUtils::setupLegoTrack(), and FWPFTrackUtils::setupTrack().
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 |
|
inline |
|
private |
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().
|
inline |
|
inline |
|
inline |
Definition at line 32 of file FWMagField.h.
|
inline |
|
private |
Definition at line 54 of file FWMagField.h.
Referenced by checkFieldInfo(), and GetFieldMag().
|
mutableprivate |
Definition at line 64 of file FWMagField.h.
Referenced by GetFieldMag().
|
mutableprivate |
Definition at line 60 of file FWMagField.h.
Referenced by FWMagField(), GetFieldMag(), guessField(), resetFieldEstimate(), and ~FWMagField().
|
mutableprivate |
Definition at line 62 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
mutableprivate |
Definition at line 61 of file FWMagField.h.
Referenced by GetFieldMag(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 56 of file FWMagField.h.
Referenced by GetField(), isReverse(), and setReverseState().
|
private |
Definition at line 57 of file FWMagField.h.
Referenced by GetField(), isSimpleModel(), and setSimpleModel().
|
private |
Definition at line 52 of file FWMagField.h.
Referenced by checkFieldInfo(), GetFieldMag(), getSource(), and setSource().
|
mutableprivate |
Definition at line 63 of file FWMagField.h.
Referenced by GetFieldMag(), guessField(), guessFieldIsOn(), and resetFieldEstimate().
|
private |
Definition at line 53 of file FWMagField.h.
Referenced by GetFieldMag(), getUserField(), and setUserField().