Fix from Andrei Gaponenko,
Fix from Andrei Gaponenko,

"For the lack of THbookChain, I tried to do an explicit loop over
ntuples.  After processing about 50 files, the program started to
complain about "too many hbook files open".  According to the code
logic, no more than one hbook file should have been opened at a time.
(TFile was an automatic object in a loop of a compiled program.)

I have fixed this by changing the THbookFile(const char*, int)
constructor, so that HROPEN() and HREND() are now called with the
same CHTOP parameter.

It also fixes another problem (PR#1378). There is nothing wrong with
opening an hbook file again if it's been closed."


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@5553 27541ba8-7e3a-0410-8455-c3a389f83636

satyarth934/root,arch1tect0r/root,tc3t/qoot,veprbl/root,beniz/root,karies/root,mhuwiler/rootauto,omazapa/root-old,zzxuanyuan/root,vukasinmilosevic/root,kirbyherm/root-r-tools,nilqed/root,simonpf/root,cxx-hep/root-cern,gganis/root,smarinac/root,omazapa/root,vukasinmilosevic/root,simonpf/root,mhuwiler/rootauto,esakellari/root,vukasinmilosevic/root,sawenzel/root,dfunke/root,Dr15Jones/root,thomaskeck/root,buuck/root,sbinet/cxx-root,nilqed/root,vukasinmilosevic/root,mkret2/root,zzxuanyuan/root,vukasinmilosevic/root,buuck/root,0x0all/ROOT,dfunke/root,arch1tect0r/root,sbinet/cxx-root,evgeny-boger/root,tc3t/qoot,agarciamontoro/root,esakellari/root,Duraznos/root,dfunke/root,evgeny-boger/root,cxx-hep/root-cern,satyarth934/root,evgeny-boger/root,smarinac/root,evgeny-boger/root,beniz/root,perovic/root,sawenzel/root,sawenzel/root,olifre/root,esakellari/root,CristinaCristescu/root,jrtomps/root,BerserkerTroll/root,simonpf/root,evgeny-boger/root,abhinavmoudgil95/root,gganis/root,esakellari/root,mkret2/root,smarinac/root,arch1tect0r/root,Y--/root,zzxuanyuan/root-compressor-dummy,olifre/root,sirinath/root,agarciamontoro/root,olifre/root,thomaskeck/root,vukasinmilosevic/root,sawenzel/root,krafczyk/root,vukasinmilosevic/root,mattkretz/root,jrtomps/root,esakellari/my_root_for_test,jrtomps/root,Y--/root,root-mirror/root,veprbl/root,nilqed/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,smarinac/root,bbockelm/root,mhuwiler/rootauto,mattkretz/root,BerserkerTroll/root,ffurano/root5,gganis/root,satyarth934/root,georgtroska/root,sbinet/cxx-root,beniz/root,zzxuanyuan/root,Duraznos/root,nilqed/root,beniz/root,satyarth934/root,sawenzel/root,evgeny-boger/root,dfunke/root,buuck/root,CristinaCristescu/root,tc3t/qoot,olifre/root,mattkretz/root,arch1tect0r/root,mattkretz/root,olifre/root,cxx-hep/root-cern,jrtomps/root,kirbyherm/root-r-tools,karies/root,georgtroska/root,buuck/root,veprbl/root,strykejern/TTreeReader,Y--/root,olifre/root,pspe/root,perovic/root,jrtomps/root,beniz/root,mkret2/root,root-mirror/root,omazapa/root-old,gbitzes/root,ffurano/root5,georgtroska/root,omazapa/root,bbockelm/root,omazapa/root-old,esakellari/root,lgiommi/root,nilqed/root,davidlt/root,simonpf/root,Duraznos/root,beniz/root,abhinavmoudgil95/root,Duraznos/root,arch1tect0r/root,Duraznos/root,gganis/root,gbitzes/root,0x0all/ROOT,omazapa/root-old,vukasinmilosevic/root,georgtroska/root,buuck/root,esakellari/my_root_for_test,buuck/root,sirinath/root,alexschlueter/cern-root,CristinaCristescu/root,ffurano/root5,zzxuanyuan/root,simonpf/root,lgiommi/root,bbockelm/root,pspe/root,mattkretz/root,karies/root,strykejern/TTreeReader,alexschlueter/cern-root,zzxuanyuan/root,veprbl/root,lgiommi/root,krafczyk/root,Y--/root,davidlt/root,lgiommi/root,perovic/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,omazapa/root-old,Duraznos/root,BerserkerTroll/root,CristinaCristescu/root,abhinavmoudgil95/root,CristinaCristescu/root,BerserkerTroll/root,krafczyk/root,lgiommi/root,thomaskeck/root,pspe/root,abhinavmoudgil95/root,0x0all/ROOT,evgeny-boger/root,nilqed/root,omazapa/root-old,georgtroska/root,gganis/root,mkret2/root,nilqed/root,esakellari/my_root_for_test,alexschlueter/cern-root,tc3t/qoot,gbitzes/root,0x0all/ROOT,mkret2/root,esakellari/my_root_for_test,mhuwiler/rootauto,zzxuanyuan/root,root-mirror/root,CristinaCristescu/root,mhuwiler/rootauto,esakellari/root,krafczyk/root,ffurano/root5,thomaskeck/root,pspe/root,zzxuanyuan/root,mkret2/root,alexschlueter/cern-root,BerserkerTroll/root,mattkretz/root,sbinet/cxx-root,karies/root,perovic/root,zzxuanyuan/root,sirinath/root,kirbyherm/root-r-tools,Dr15Jones/root,perovic/root,gganis/root,dfunke/root,nilqed/root,esakellari/root,gbitzes/root,vukasinmilosevic/root,mhuwiler/rootauto,sirinath/root,bbockelm/root,arch1tect0r/root,zzxuanyuan/root,sirinath/root,esakellari/my_root_for_test,sawenzel/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,smarinac/root,satyarth934/root,karies/root,vukasinmilosevic/root,olifre/root,0x0all/ROOT,gganis/root,pspe/root,CristinaCristescu/root,evgeny-boger/root,sawenzel/root,bbockelm/root,abhinavmoudgil95/root,Y--/root,gbitzes/root,simonpf/root,thomaskeck/root,Duraznos/root,georgtroska/root,0x0all/ROOT,omazapa/root,olifre/root,agarciamontoro/root,BerserkerTroll/root,veprbl/root,veprbl/root,Dr15Jones/root,krafczyk/root,zzxuanyuan/root,Duraznos/root,omazapa/root,sirinath/root,agarciamontoro/root,lgiommi/root,Dr15Jones/root,abhinavmoudgil95/root,mattkretz/root,BerserkerTroll/root,perovic/root,davidlt/root,karies/root,dfunke/root,omazapa/root,georgtroska/root,simonpf/root,perovic/root,alexschlueter/cern-root,root-mirror/root,omazapa/root,buuck/root,beniz/root,zzxuanyuan/root-compressor-dummy,davidlt/root,sawenzel/root,Y--/root,esakellari/my_root_for_test,veprbl/root,buuck/root,bbockelm/root,georgtroska/root,karies/root,omazapa/root,sirinath/root,agarciamontoro/root,veprbl/root,pspe/root,cxx-hep/root-cern,omazapa/root-old,satyarth934/root,zzxuanyuan/root,Dr15Jones/root,esakellari/my_root_for_test,tc3t/qoot,evgeny-boger/root,kirbyherm/root-r-tools,sbinet/cxx-root,omazapa/root,krafczyk/root,dfunke/root,krafczyk/root,Y--/root,satyarth934/root,sirinath/root,mhuwiler/rootauto,jrtomps/root,beniz/root,tc3t/qoot,krafczyk/root,davidlt/root,mattkretz/root,omazapa/root,BerserkerTroll/root,nilqed/root,jrtomps/root,pspe/root,strykejern/TTreeReader,BerserkerTroll/root,davidlt/root,sbinet/cxx-root,bbockelm/root,pspe/root,mkret2/root,alexschlueter/cern-root,esakellari/my_root_for_test,sbinet/cxx-root,BerserkerTroll/root,olifre/root,kirbyherm/root-r-tools,beniz/root,mattkretz/root,karies/root,0x0all/ROOT,Duraznos/root,mhuwiler/rootauto,satyarth934/root,Y--/root,sirinath/root,Y--/root,arch1tect0r/root,smarinac/root,mkret2/root,agarciamontoro/root,gbitzes/root,simonpf/root,arch1tect0r/root,mkret2/root,jrtomps/root,Duraznos/root,satyarth934/root,gbitzes/root,perovic/root,BerserkerTroll/root,gbitzes/root,krafczyk/root,agarciamontoro/root,CristinaCristescu/root,jrtomps/root,veprbl/root,mhuwiler/rootauto,lgiommi/root,zzxuanyuan/root-compressor-dummy,dfunke/root,0x0all/ROOT,CristinaCristescu/root,lgiommi/root,CristinaCristescu/root,cxx-hep/root-cern,tc3t/qoot,omazapa/root-old,omazapa/root-old,davidlt/root,cxx-hep/root-cern,krafczyk/root,sawenzel/root,root-mirror/root,esakellari/root,strykejern/TTreeReader,simonpf/root,lgiommi/root,strykejern/TTreeReader,esakellari/root,satyarth934/root,olifre/root,zzxuanyuan/root,root-mirror/root,olifre/root,esakellari/my_root_for_test,sbinet/cxx-root,strykejern/TTreeReader,sawenzel/root,Y--/root,agarciamontoro/root,beniz/root,sbinet/cxx-root,bbockelm/root,pspe/root,Dr15Jones/root,dfunke/root,buuck/root,tc3t/qoot,jrtomps/root,omazapa/root-old,CristinaCristescu/root,omazapa/root,georgtroska/root,mkret2/root,root-mirror/root,karies/root,thomaskeck/root,lgiommi/root,sawenzel/root,vukasinmilosevic/root,gganis/root,karies/root,smarinac/root,Y--/root,bbockelm/root,agarciamontoro/root,abhinavmoudgil95/root,root-mirror/root,veprbl/root,alexschlueter/cern-root,sbinet/cxx-root,abhinavmoudgil95/root,davidlt/root,jrtomps/root,esakellari/root,beniz/root,ffurano/root5,thomaskeck/root,gbitzes/root,gbitzes/root,bbockelm/root,tc3t/qoot,0x0all/ROOT,nilqed/root,krafczyk/root,root-mirror/root,perovic/root,ffurano/root5,Duraznos/root,perovic/root,gganis/root,sbinet/cxx-root,bbockelm/root,arch1tect0r/root,tc3t/qoot,davidlt/root,simonpf/root,georgtroska/root,gganis/root,pspe/root,karies/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,dfunke/root,abhinavmoudgil95/root,mattkretz/root,arch1tect0r/root,smarinac/root,strykejern/TTreeReader,simonpf/root,thomaskeck/root,thomaskeck/root,nilqed/root,smarinac/root,root-mirror/root,abhinavmoudgil95/root,ffurano/root5,veprbl/root,abhinavmoudgil95/root,gganis/root,dfunke/root,buuck/root,mkret2/root,root-mirror/root,davidlt/root,mhuwiler/rootauto,esakellari/my_root_for_test,buuck/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,Dr15Jones/root,perovic/root,omazapa/root,georgtroska/root,kirbyherm/root-r-tools,satyarth934/root,zzxuanyuan/root-compressor-dummy,kirbyherm/root-r-tools,pspe/root,sirinath/root,lgiommi/root,arch1tect0r/root,agarciamontoro/root,sirinath/root,evgeny-boger/root,smarinac/root,zzxuanyuan/root-compressor-dummy,esakellari/root,evgeny-boger/root,omazapa/root-old,davidlt/root