22#ifndef CAVITYAUTOPHASER
23#define CAVITYAUTOPHASER
31 std::shared_ptr<Component> cavity);
46 double track(
double t,
49 std::ofstream *out =
nullptr)
const;
double track(double t, const double dt, const double phase, std::ofstream *out=nullptr) const
const PartData & itsReference_m
double guessCavityPhase(double t)
std::pair< double, double > optimizeCavityPhase(double initialGuess, double t, double dt)
double getPhaseAtMaxEnergy(const Vector_t &R, const Vector_t &P, double t, double dt)
std::shared_ptr< Component > itsCavity_m
CavityAutophaser(const PartData &ref, std::shared_ptr< Component > cavity)