Megamaser be very different from those that produce galactic water masers. Observations of water megamasers have been used to make accurate measurements of distances to galaxies in order to provide constraints on the Hubble constant. The word maser derives from the acronym MASER, which stands for "Microwave Amplification by Stimulated Emission of Radiation". The maser is a predecessor to lasers, which operate at optical wavelengths, and is named by the replacement of "microwave" with "light". Given a system of atoms or molecules, each with different energy states, an atom or molecule may absorb a photon and move to a higher energy
Stimulated emission the ground state to transition into the excited state, then what is called a population inversion is created. When light of the appropriate frequency passes through the inverted medium, the photons are either absorbed by the atoms that remain in the ground state or the photons stimulate the excited atoms to emit additional photons of the same frequency, phase, and direction. Since more atoms are in the excited state than in the ground state then an amplification of the input intensity results. The population inversion, in units of atoms per cubic meter, is where "g" and "g" are the degeneracies