#include <ConstantStepOdeSolver.h>
Public Member Functions | |
ConstantStepOdeSolver () | |
ConstantStepOdeSolver (const AbsODERHS &rhs) | |
ConstantStepOdeSolver (const ConstantStepOdeSolver &r) | |
double | getCoordinate (const unsigned which, const unsigned idx) const |
double | getIntegrated (unsigned which, unsigned idx) const |
double | getPeakTime (unsigned which) const |
AbsODERHS * | getRHS () |
const AbsODERHS * | getRHS () const |
double | getTime (const unsigned idx) const |
double | interpolateCoordinate (unsigned which, double t, bool cubic=false) const |
double | interpolateIntegrated (unsigned which, double t, bool cubic=false) const |
double | lastDeltaT () const |
unsigned | lastDim () const |
double | lastMaxT () const |
unsigned | lastRunLength () const |
virtual const char * | methodName () const =0 |
ConstantStepOdeSolver & | operator= (const ConstantStepOdeSolver &r) |
void | run (const double *initialConditions, unsigned lenConditions, double dt, unsigned nSteps) |
void | setHistory (double dt, const double *data, unsigned dim, unsigned runLen) |
void | setRHS (const AbsODERHS &rhs) |
void | truncateCoordinate (unsigned which, double minValue, double maxValue) |
void | writeHistory (std::ostream &os, double dt, bool cubic=false) const |
void | writeIntegrated (std::ostream &os, unsigned which, double dt, bool cubic=false) const |
virtual | ~ConstantStepOdeSolver () |
Protected Attributes | |
AbsODERHS * | rhs_ |
Private Member Functions | |
void | integrateCoordinate (const unsigned which) |
virtual void | step (double t, double dt, const double *x, unsigned lenX, double *coordIncrement) const =0 |
Private Attributes | |
std::vector< double > | chargeBuffer_ |
unsigned | dim_ |
double | dt_ |
std::vector< double > | historyBuffer_ |
unsigned | lastIntegrated_ |
unsigned | runLen_ |
Definition at line 14 of file ConstantStepOdeSolver.h.
|
inline |
Definition at line 16 of file ConstantStepOdeSolver.h.
|
inline |
Definition at line 18 of file ConstantStepOdeSolver.h.
References AbsODERHS::clone(), and rhs_.
ConstantStepOdeSolver::ConstantStepOdeSolver | ( | const ConstantStepOdeSolver & | r | ) |
|
inlinevirtual |
|
inline |
Definition at line 49 of file ConstantStepOdeSolver.h.
References dim_, Exception, historyBuffer_, training_settings::idx, runLen_, and eostools::which().
Referenced by writeHistory().
double ConstantStepOdeSolver::getIntegrated | ( | unsigned | which, |
unsigned | idx | ||
) | const |
Definition at line 35 of file ConstantStepOdeSolver.cc.
References chargeBuffer_, dim_, Exception, training_settings::idx, integrateCoordinate(), lastIntegrated_, runLen_, and eostools::which().
Referenced by writeIntegrated().
double ConstantStepOdeSolver::getPeakTime | ( | unsigned | which | ) | const |
Definition at line 9 of file ConstantStepOdeSolver.cc.
References dim_, dt_, Exception, historyBuffer_, mps_fire::i, cmsLHEtoEOSManager::l, alignCSCRings::r, runLen_, mitigatedMETSequence_cff::U, and eostools::which().
Referenced by QIE8Simulator::preampPeakTime().
|
inline |
|
inline |
Definition at line 34 of file ConstantStepOdeSolver.h.
References rhs_.
Referenced by QIE8Simulator::getRHS(), and QIE8Simulator::modifiableRHS().
|
inline |
Definition at line 43 of file ConstantStepOdeSolver.h.
References dt_, Exception, training_settings::idx, and runLen_.
Referenced by writeHistory(), and writeIntegrated().
|
private |
Definition at line 43 of file ConstantStepOdeSolver.cc.
References chargeBuffer_, dim_, dt_, Exception, historyBuffer_, mps_fire::i, lastIntegrated_, runLen_, mitigatedMETSequence_cff::U, and eostools::which().
Referenced by getIntegrated(), and interpolateIntegrated().
double ConstantStepOdeSolver::interpolateCoordinate | ( | unsigned | which, |
double | t, | ||
bool | cubic = false |
||
) | const |
Definition at line 159 of file ConstantStepOdeSolver.cc.
References newFWLiteAna::base, dim_, dt_, Exception, historyBuffer_, interpolateLinear(), runLen_, OrderedSet::t, mitigatedMETSequence_cff::U, eostools::which(), and x.
Referenced by QIE8Simulator::controlOutput(), QIE8Simulator::getCharge(), QIE8Simulator::preampOutput(), and writeHistory().
double ConstantStepOdeSolver::interpolateIntegrated | ( | unsigned | which, |
double | t, | ||
bool | cubic = false |
||
) | const |
Definition at line 198 of file ConstantStepOdeSolver.cc.
References newFWLiteAna::base, visDQMUpload::buf, chargeBuffer_, dim_, dt_, Exception, integrateCoordinate(), interpolateLinear(), lastIntegrated_, runLen_, OrderedSet::t, mitigatedMETSequence_cff::U, eostools::which(), and x.
Referenced by QIE8Simulator::getCharge(), and writeIntegrated().
|
inline |
|
inline |
|
inline |
Definition at line 41 of file ConstantStepOdeSolver.h.
References dt_, runLen_, and mitigatedMETSequence_cff::U.
Referenced by QIE8Simulator::lastStopTime(), QIE8Simulator::run(), writeHistory(), and writeIntegrated().
|
inline |
|
pure virtual |
Implemented in RK4, RK2, and EulerOdeSolver.
Referenced by writeHistory(), and writeIntegrated().
ConstantStepOdeSolver & ConstantStepOdeSolver::operator= | ( | const ConstantStepOdeSolver & | r | ) |
Definition at line 128 of file ConstantStepOdeSolver.cc.
References chargeBuffer_, dim_, dt_, historyBuffer_, lastIntegrated_, alignCSCRings::r, rhs_, and runLen_.
void ConstantStepOdeSolver::run | ( | const double * | initialConditions, |
unsigned | lenConditions, | ||
double | dt, | ||
unsigned | nSteps | ||
) |
Definition at line 260 of file ConstantStepOdeSolver.cc.
References cms::cuda::assert(), dim_, dt, dt_, Exception, historyBuffer_, mps_fire::i, lastIntegrated_, GetRecoTauVFromDQM_MC_cff::next, rhs_, runLen_, step(), OrderedSet::t, and mitigatedMETSequence_cff::U.
Referenced by DTWorkflow.DTWorkflow::all(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), o2olib.O2OTool::execute(), and QIE8Simulator::run().
void ConstantStepOdeSolver::setHistory | ( | double | dt, |
const double * | data, | ||
unsigned | dim, | ||
unsigned | runLen | ||
) |
Definition at line 239 of file ConstantStepOdeSolver.cc.
References cms::cuda::assert(), data, dim_, dt, dt_, Exception, historyBuffer_, mps_fire::i, lastIntegrated_, runLen_, and mitigatedMETSequence_cff::U.
Referenced by QIE8Simulator::run().
|
inline |
Definition at line 30 of file ConstantStepOdeSolver.h.
References AbsODERHS::clone(), and rhs_.
Referenced by QIE8Simulator::setRHS().
|
privatepure virtual |
Implemented in RK4, RK2, and EulerOdeSolver.
Referenced by run().
void ConstantStepOdeSolver::truncateCoordinate | ( | unsigned | which, |
double | minValue, | ||
double | maxValue | ||
) |
Definition at line 144 of file ConstantStepOdeSolver.cc.
References visDQMUpload::buf, dim_, Exception, historyBuffer_, mps_fire::i, seedmultiplicitymonitor_newtracking_cfi::maxValue, OnDemandMonitoring_cfi::minValue, runLen_, and eostools::which().
Referenced by QIE8Simulator::run().
void ConstantStepOdeSolver::writeHistory | ( | std::ostream & | os, |
double | dt, | ||
bool | cubic = false |
||
) | const |
Definition at line 70 of file ConstantStepOdeSolver.cc.
References dim_, dt, dt_, getCoordinate(), getTime(), mps_fire::i, interpolateCoordinate(), lastMaxT(), methodName(), runLen_, OrderedSet::t, tmax, and eostools::which().
void ConstantStepOdeSolver::writeIntegrated | ( | std::ostream & | os, |
unsigned | which, | ||
double | dt, | ||
bool | cubic = false |
||
) | const |
Definition at line 95 of file ConstantStepOdeSolver.cc.
References dim_, dt, dt_, getIntegrated(), getTime(), mps_fire::i, interpolateIntegrated(), lastMaxT(), methodName(), runLen_, OrderedSet::t, tmax, and eostools::which().
|
private |
Definition at line 105 of file ConstantStepOdeSolver.h.
Referenced by getIntegrated(), integrateCoordinate(), interpolateIntegrated(), and operator=().
|
private |
Definition at line 100 of file ConstantStepOdeSolver.h.
Referenced by getCoordinate(), getIntegrated(), getPeakTime(), integrateCoordinate(), interpolateCoordinate(), interpolateIntegrated(), lastDim(), operator=(), run(), setHistory(), truncateCoordinate(), writeHistory(), and writeIntegrated().
|
private |
Definition at line 99 of file ConstantStepOdeSolver.h.
Referenced by getPeakTime(), getTime(), integrateCoordinate(), interpolateCoordinate(), interpolateIntegrated(), lastDeltaT(), lastMaxT(), operator=(), run(), setHistory(), writeHistory(), and writeIntegrated().
|
private |
Definition at line 104 of file ConstantStepOdeSolver.h.
Referenced by getCoordinate(), getPeakTime(), integrateCoordinate(), interpolateCoordinate(), operator=(), run(), setHistory(), and truncateCoordinate().
|
private |
Definition at line 102 of file ConstantStepOdeSolver.h.
Referenced by getIntegrated(), integrateCoordinate(), interpolateIntegrated(), operator=(), run(), and setHistory().
|
protected |
Definition at line 89 of file ConstantStepOdeSolver.h.
Referenced by ConstantStepOdeSolver(), getRHS(), operator=(), run(), setRHS(), EulerOdeSolver::step(), RK2::step(), RK4::step(), and ~ConstantStepOdeSolver().
|
private |
Definition at line 101 of file ConstantStepOdeSolver.h.
Referenced by getCoordinate(), getIntegrated(), getPeakTime(), getTime(), integrateCoordinate(), interpolateCoordinate(), interpolateIntegrated(), lastMaxT(), lastRunLength(), operator=(), run(), setHistory(), truncateCoordinate(), writeHistory(), and writeIntegrated().