You can build the groups vector by whatever method you like. It just needs to be of the same length as the number of samples in your DataTrack object. For instance:
plotTracks(dTrack, groups = c("control", "control", "treated", "treated", "treated"), type = c("a", "p", "confint"))
In many cases you will have your sample information available in an annotation table of some sorts, and it could make sense to use that. For instance, if you store the control/treated factor in a data.frame, you could do something like this:
plotTracks(dTrack, groups = yourAnnotationDf$treatment, type = c("a", "p", "confint"))
Obviously there can also be more than just two groups here. A little hard to give more concrete advise without knowing what exactly you are trying to do...
Florian