|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for ConstantEFieldCavity component (base layer). More...
#include <gtest/gtest.h>#include "AbsBeamline/ElementBase.h"#include "BeamlineCore/ConstantEFieldCavityRep.h"#include <cmath>#include <memory>
Go to the source code of this file.
Unit tests for ConstantEFieldCavity component (base layer).
Tests the ConstantEFieldCavity API and apply logic via ConstantEFieldCavityRep (concrete type). Covers: getType, bends, getEx/Ey/Ez and setters, getFieldExtend, apply(R,P,t,E,B) for various z-positions, full-vector application, and applyToReferenceParticle (inside/outside).
Definition in file TestConstantEFieldCavity.cpp.