Ensemble and Trajectory Thermodynamics: A Brief Introduction
  We revisit stochastic thermodynamics for a system with discrete energy states in contact with a heat and particle reservoir. 
Christian Van den Broeck and Massimiliano Esposito
cond-mat.stat-mech