Well, there are a few stages, but which order they’re in depends on the timing of the drumming.
For example, if the drumming is played to a click but loses the click, then listen to the drums without the click and see if it’s OK. If it is then no problem, change the tempo map to match (I usually use time-warp and warp every other bar to the kick, or sometimes every bar if there’s a bit of variation). If it isn’t OK then you’re a bit stuffed, but you could try to move all the drums towards the click so it sounds better - a long job!!
Another stage would be if you’ve got fills which are uneven and messy then you need to tidy them up and make them smooth. This would be done after you’ve matched the tempo map with the drums. You’d then even out the fill so it fits the new tempo map (and having warped the tempo to every other bar or every bar it should be easy by eye to then move the hits to the beats that they’re supposed to be at).
Another stage might be addressing those dodgy snare/kick hits that aren’t together, there you’d use cuts from other places or other takes. Cut and paste is probably the easiest method in for this type of problem.
Probably the final stage is assessing whether the sections and fills are what you want. These could be moved around to fit the song. E.g. you need a bigger fill into the chorus, so put two fills together or take a bigger fill from somewhere else. Or, e.g. the drummer used the ride too early, so duplicate some of the previous section to delay the ride til later.
The final bits are details arrangement really, which ideally the drummer should have detailed before or during the session. But life’s too short, so it doesn’t always happen
If I’m worried about a section being OK during a drum session then I’ll usually ask the drummer for another take with a different feel so at least I’ve got a choice for later.
Mike.