How to fit two separated sub ranges?

The variable filled in this histogram(see the attached picture) shoud obey an exponential distribution,but only those data in such two separated sub ranges are acquired.
How to fit such a histogram?

see tutorial fitExclude.C


I solved my problem.Thand you very much.