(100,0,45) is the binning specification for the histogram. 100 bins from 0 to 45.
Note that if you need to create more than one histogram, RDataFrame is more efficient although slightly more verbose: it only loops over the data once to create all histograms, while TTree::Draw loops over the data once per histogram.
With RDataFrame you would produce that plot with:
ROOT::RDataFrame df(truthTree);
auto h = df.Filter("mcDecMuMuY_M>15000 && mcDecMuMuY_M<22000")
.Define("x", "mcDecMuMuY_M/1000")
.Histo1D({100, 0, 45}, "x");
h->Draw();