22 m_numberOfFieldIsOnEstimates(0),
23 m_numberOfFieldEstimates(0),
24 m_updateFieldEstimate(
true),
27 m_guessValHist =
new TH1F(
"FieldEstimations",
"Field estimations from tracks and muons",
44 Float_t
R =
sqrt(x*x+y*y);
51 if ( R < 300)
return TEveVector(0,0,field);
54 ( R>461.0 && R<490.5 ) ||
55 ( R>534.5 && R<597.5 ) ||
56 ( R>637.0 && R<700.0 ) )
57 return TEveVector(0,0,-field/3.8*1.2);
62 if ( R < 50 )
return TEveVector(0,0,field);
64 return TEveVector(x/R*field/3.8*2.0, y/R*field/3.8*2.0, 0);
66 return TEveVector(-x/R*field/3.8*2.0, -y/R*field/3.8*2.0, 0);
74 return TEveVector(x/R*field/3.8*2.0, y/R*field/3.8*2.0, 0);
76 return TEveVector(-x/R*field/3.8*2.0, -y/R*field/3.8*2.0, 0);
79 return TEveVector(0,0,0);
174 const static float currentToField = 3.8/18160;
175 bool available =
false;
200 event->getByLabel(dcsTag, dcsStatus);
202 if (dcsStatus.
isValid() && dcsStatus->size())
205 for (std::vector<DcsStatus>::const_iterator
i = dcsStatus->begin();
i < dcsStatus->end(); ++
i)
206 sum += (*i).magnetCurrent();
int m_numberOfFieldEstimates
int m_numberOfFieldIsOnEstimates
Float_t GetFieldMag() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
virtual TEveVector GetField(Float_t x, Float_t y, Float_t z) const
fwlite::Run const & getRun() const
bool m_updateFieldEstimate
void setFFFieldMag(float)
void guessField(float estimate) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void checkFieldInfo(const edm::EventBase *)
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const
void guessFieldIsOn(bool guess) const
volatile std::atomic< bool > shutdown_flag false
virtual Float_t GetMaxFieldMag() const
void resetFieldEstimate() const