OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TestConstantEFieldCavity.cpp File Reference

Unit tests for ConstantEFieldCavity component (base layer). More...

#include <gtest/gtest.h>
#include "AbsBeamline/ElementBase.h"
#include "BeamlineCore/ConstantEFieldCavityRep.h"
#include <cmath>
#include <memory>
Include dependency graph for TestConstantEFieldCavity.cpp:

Go to the source code of this file.

Detailed Description

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.