Subways Els and Tolleys

Are rapid transit subways and el trains considered part of traditional railroad equipment? In other words are they real trains? Are trolleys and light rails considered too?