  We study jet mass distributions measured in the single inclusive jet
production in proton-proton collisions $pp\to \text{jet}+X$ at the LHC. We
consider both standard ungroomed jets as well as soft drop groomed jets. Within
the Soft Collinear Effective Theory (SCET), we establish QCD factorization
theorems for both cases and we study their relation. The developed framework
allows for the joint resummation of several classes of logarithmic corrections
to all orders in the strong coupling constant. For the ungroomed case, we resum
logarithms in the jet radius parameter and in the small jet mass. For the
groomed case, we resum in addition the logarithms in the soft threshold
parameter $z_{\text{cut}}$ which is introduced by the soft drop grooming
algorithm. In this way, we are able to reliably determine the absolute
normalization of the groomed jet mass distribution in proton-proton collisions.
All logarithmic corrections are resummed to the next-to-leading logarithmic
accuracy. We present numerical results and compare with the available data from
the LHC. For both the groomed and ungroomed jet mass distributions we find very
good agreement after including non-perturbative corrections.
