UEMColumn/Laser.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Physics::UEMColumn::Laser;
2  
3 use Moose;
4 use namespace::autoclean;
5  
6 use MooseX::Types::NumUnit qw/num_of_unit/;
7  
8 has 'energy' => ( isa => num_of_unit('J'), is => 'ro', required => 1 );
9 has 'width' => ( isa => num_of_unit('m'), is => 'rw', required => 1 );
10 has 'duration' => ( isa => num_of_unit('s'), is => 'rw', required => 1 );
11  
12 __PACKAGE__->meta->make_immutable;
13  
14 1;
15  
16 =head1 NAME
17  
18 Physics::UEMColumn::Laser
19  
20 =head1 SYNOPSIS
21  
22 use strict;
23 use warnings;
24  
25 use Physics::UEMColumn alias => ':standard';
26  
27 my $laser = Laser->new(
28 energy => '4.75 eV',
29 width => '500 um',
30 duration => '4 ps',
31 );
32  
33 =head1 DESCRIPTION
34  
35 L<Physics::UEMColumn::Laser> is a class representing a laser object for L<Physics::UEMColumn>. L<Physics::UEMColumn::Column> objects need a laser object in order to be able create a L<Physics::UEMColumn::Pulse> object.
36  
37 =head1 ATTRIBUTES
38  
39 =over
40  
41 =item C<energy>
42  
43 A number representing the photon energy of the laser. Unit: J
44  
45 =item C<width>
46  
47 A number representing the HW1/eM Gaussian beam width of the laser (at the photocathode). Unit: m
48  
49 =item C<duration>
50  
51 A number representing the pulse duration of the laser (at the photocathode). Unit: s
52  
53 =back
54  
55 =head1 SOURCE REPOSITORY
56  
57 L<http://github.com/jberger/Physics-UEMColumn>
58  
59 =head1 AUTHOR
60  
61 Joel Berger, E<lt>joel.a.berger@gmail.comE<gt>
62  
63 =head1 COPYRIGHT AND LICENSE
64  
65 Copyright (C) 2012-2013 by Joel Berger
66  
67 This library is free software; you can redistribute it and/or modify
68 it under the same terms as Perl itself.
69  
70  
71