from ComponentLoop import ComponentLoop
from ComponentReaderComposite import ComponentReaderComposite
from HeppyResult import HeppyResult, defaultExcludeList, componentHasTheseFiles
from Component import Component
from ReadComponentConfig import ReadComponentConfig
from ReadVersionInfo import ReadVersionInfo
from Analyzer import Analyzer
from ReadCounter import ReadCounter
from TblCounter import TblCounter
from TblCounterLong import TblCounterLong
from TblComponentConfig import TblComponentConfig
from TblBrilCalc import TblBrilCalc

try:
    from EventBuilder import EventBuilder
    from BEventBuilder import BEventBuilder
    from TblBranch import TblBranch
    from TblTree import TblTree
except ImportError:
    pass

from ComponentLoop import ComponentLoop
from ComponentReaderComposite import ComponentReaderComposite
from HeppyResult import HeppyResult, defaultExcludeList, componentHasTheseFiles
from Component import Component
from ReadComponentConfig import ReadComponentConfig
from Chunk import Chunk
from ReadVersionInfo import ReadVersionInfo
from Analyzer import Analyzer
from ReadCounter import ReadCounter
from TblCounter import TblCounter
from TblCounterLong import TblCounterLong
from TblComponentConfig import TblComponentConfig
from TblBrilCalc import TblBrilCalc

hasROOT = False
try:
    import ROOT
    hasROOT = True
except ImportError:
    pass

if hasROOT:
    from ComponentSplitter import ComponentSplitter
    from EventBuilder import EventBuilder
    from BEventBuilder import BEventBuilder
    from TblBranch import TblBranch
    from TblTree import TblTree

update HeppyResult.__init__