TH1I with two sub-ranges

Hello

I have a list of (detector) IDs that I would like to fill in a TH1I. The problem is that the IDs are not in consecutive order, but in different ranges, e.g. r1=[1,20],r2=[10340,10380]
Is it possible to create a TH1I with two (and more) subranges in x?

thanks
Ignacio

see below a possible solution

void h1l() {
   //create histogram with undefined bin size
   TH1I *h = new TH1I("h","test",2,0,0);
   TRandom r;
   Int_t hn;
   for (Int_t i=0;i<10000;i++) {
      if(r.Rndm() <0.3) hn = (Int_t)r.Gaus(10,1.5);
      else              hn = 4*(Int_t)r.Gaus(10360./4,1);
      const char *s = Form("%5d",hn);
      //fill histogram with a string
      h->Fill(s,1);
   }
   //keep only active bins
   h->LabelsDeflate("x");
   //show histogram in alphabetic order
   h->GetXaxis()->LabelsOption("ad");
   h->Draw();
}   

Rene