Skip to content

Commit

Permalink
changed override to method since "super()" is never used. This fixes …
Browse files Browse the repository at this point in the history
…downporting frmo MXD+MSM to M+MS
  • Loading branch information
jberger committed Sep 6, 2012
1 parent c13450a commit b1cee1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Physics/UEMColumn/Element.pm
Expand Up @@ -40,7 +40,7 @@ package Physics::UEMColumn::DCAccelerator;
use Moose;
use namespace::autoclean;

use Method::Signatures::Modifiers;
use Method::Signatures;

extends 'Physics::UEMColumn::Accelerator';

Expand All @@ -52,11 +52,11 @@ package Physics::UEMColumn::DCAccelerator;
has 'voltage' => ( isa => num_of_unit('V'), is => 'ro', required => 1 );
has 'sharpness' => ( isa => 'Num', is => 'ro', default => 10 );

override field () {
method field () {
$self->voltage / $self->length;
}

override effect () {
method effect () {
my $anode_pos = $self->length;
my $acc_voltage = $self->voltage;
my $force = qe * $acc_voltage / $anode_pos;
Expand Down Expand Up @@ -117,14 +117,14 @@ package Physics::UEMColumn::MagneticLens;
use Moose;
use namespace::autoclean;

use Method::Signatures::Modifiers;
use Method::Signatures;

extends 'Physics::UEMColumn::Element';

has 'strength' => ( isa => 'Num', is => 'rw', required => 0);
has 'order' => ( isa => 'Int', is => 'ro', default => 1);

override effect () {
method effect () {

my $lens_z = $self->location;
my $lens_length = $self->length;
Expand Down Expand Up @@ -156,7 +156,7 @@ package Physics::UEMColumn::RFCavity;
use Moose;
use namespace::autoclean;

use Method::Signatures::Modifiers;
use Method::Signatures;

extends 'Physics::UEMColumn::Element';

Expand All @@ -170,7 +170,7 @@ package Physics::UEMColumn::RFCavity;
has 'phase' => (isa => 'Num', is => 'ro', default => 0);
has 'order' => (isa => 'Int', is => 'ro', default => 2);

override effect () {
method effect () {

my $lens_z = $self->location;
my $length = $self->length;
Expand Down

0 comments on commit b1cee1c

Please sign in to comment.