\ProvidesPackage{hepunits}[2005/01/11]
\RequirePackage{amsmath}
\RequirePackage[mediumspace,thickqspace,derived,squaren,textstyle]{SIunits}

\DeclareRobustCommand{\@NewUnit}[2]{\addunit{#1}{#2}}

%% Lengths
\@NewUnit{\nm}{\nano\metre}
\@NewUnit{\micron}{\micro\metre}
\@NewUnit{\mm}{\milli\metre}
\@NewUnit{\cm}{\centi\metre}

%% Angles
\@NewUnit{\mrad}{\milli\rad}

%% Times
\@NewUnit{\ps}{\pico\second}
\@NewUnit{\ns}{\nano\second}

%% Rates
\@NewUnit{\Hertz}{\hertz}
\@NewUnit{\Hz}{\hertz}
\@NewUnit{\kHz}{\kilo\hertz}
\@NewUnit{\MHz}{\mega\hertz}

%% Fields
\@NewUnit{\Tesla}{\tesla}

%% Luminosity
\@NewUnit{\invcmsqpersecond}{\rpsquare{\centi\metre}\usk\reciprocal{\second}}
\providecommand{\lumiunits}{\invcmsqpersecond}

%% HEP energy, momentum and mass units
\DeclareRobustCommand{\clight}{\ensuremath{c}}
\@NewUnit{\eV}{{eV}}
\@NewUnit{\keV}{\kilo\eV}
\@NewUnit{\MeV}{\mega\eV}
\@NewUnit{\GeV}{\giga\eV}
\@NewUnit{\TeV}{\tera\eV}
\@NewUnit{\MeVoverc}{\ensuremath{\MeV\!/\clight}}
\@NewUnit{\GeVoverc}{\ensuremath{\GeV\!/\clight}}
\@NewUnit{\TeVoverc}{\ensuremath{\TeV\!/\clight}}
\@NewUnit{\MeVovercsq}{\ensuremath{\MeV\!/\clight^{2}}}
\@NewUnit{\GeVovercsq}{\ensuremath{\GeV\!/\clight^{2}}}
\@NewUnit{\TeVovercsq}{\ensuremath{\TeV\!/\clight^{2}}}
