In these notes on statistical thermodynamics (pp. 62), I encountered this [topic: particle in a 1D box]:
We shall adopt the initial condition that the probability distribution function has the form $$\rho(p; q : 0) = \delta(q) B(p)$$ which initially confines all the particles in the ensemble to the center $q = 0$. The momentum distribution function $B(p)$ is evenly distributed over the allowed range: $$B(p)=\frac{1}{2(p_{max}-p_{min})}[\Theta(p-p_{max})-\Theta(p-p_{min})+\Theta(p+p_{max})-\Theta(p+p_{min})]$$
Questions:
How is the function $B(p)$ evenly distributed. It is not clear (one can easily plug in $p=p_{max}$ and $p=p_{min}$ and see they are not equal in general). Is $\Theta$ some well-known function in math/physics?
Why is such a complicated function used? Won't $B(p)=$ constant work (to create an evenly distributed function)?