<pandora>
    <!-- GLOBAL SETTINGS -->
    <IsMonitoringEnabled>true</IsMonitoringEnabled>
    <ShouldDisplayAlgorithmInfo>false</ShouldDisplayAlgorithmInfo>
    <SingleHitTypeClusteringMode>true</SingleHitTypeClusteringMode>

    <!-- ALGORITHM SETTINGS -->
    <algorithm type = "LArPreProcessing">
        <OutputCaloHitListNameU>CaloHitListU</OutputCaloHitListNameU>
        <OutputCaloHitListNameV>CaloHitListV</OutputCaloHitListNameV>
        <OutputCaloHitListNameW>CaloHitListW</OutputCaloHitListNameW>
        <FilteredCaloHitListName>CaloHitList2D</FilteredCaloHitListName>
        <CurrentCaloHitListReplacement>CaloHitList2D</CurrentCaloHitListReplacement>
    </algorithm>

    <!-- TwoDReconstruction -->
    <algorithm type = "LArClusteringParent">
        <algorithm type = "LArTrackClusterCreation" description = "ClusterFormation"/>
        <InputCaloHitListName>CaloHitListU</InputCaloHitListName>
        <ClusterListName>ClustersU</ClusterListName>
        <ReplaceCurrentCaloHitList>true</ReplaceCurrentCaloHitList>
        <ReplaceCurrentClusterList>true</ReplaceCurrentClusterList>
    </algorithm>
    <algorithm type = "LArLayerSplitting"/>
    <algorithm type = "LArLongitudinalAssociation"/>
    <algorithm type = "LArTransverseAssociation"/>
    <algorithm type = "LArLongitudinalExtension"/>
    <algorithm type = "LArTransverseExtension"/>
    <algorithm type = "LArCrossGapsAssociation"/>
    <algorithm type = "LArCrossGapsExtension"/>
    <algorithm type = "LArOvershootSplitting"/>
    <algorithm type = "LArBranchSplitting"/>
    <algorithm type = "LArKinkSplitting"/>
    <algorithm type = "LArTrackConsolidation">
        <algorithm type = "LArSimpleClusterCreation" description = "ClusterRebuilding"/>
    </algorithm>

    <algorithm type = "LArClusteringParent">
        <algorithm type = "LArTrackClusterCreation" description = "ClusterFormation"/>
        <InputCaloHitListName>CaloHitListV</InputCaloHitListName>
        <ClusterListName>ClustersV</ClusterListName>
        <ReplaceCurrentCaloHitList>true</ReplaceCurrentCaloHitList>
        <ReplaceCurrentClusterList>true</ReplaceCurrentClusterList>
    </algorithm>
    <algorithm type = "LArLayerSplitting"/>
    <algorithm type = "LArLongitudinalAssociation"/>
    <algorithm type = "LArTransverseAssociation"/>
    <algorithm type = "LArLongitudinalExtension"/>
    <algorithm type = "LArTransverseExtension"/>
    <algorithm type = "LArCrossGapsAssociation"/>
    <algorithm type = "LArCrossGapsExtension"/>
    <algorithm type = "LArOvershootSplitting"/>
    <algorithm type = "LArBranchSplitting"/>
    <algorithm type = "LArKinkSplitting"/>
    <algorithm type = "LArTrackConsolidation">
        <algorithm type = "LArSimpleClusterCreation" description = "ClusterRebuilding"/>
    </algorithm>

    <algorithm type = "LArClusteringParent">
        <algorithm type = "LArTrackClusterCreation" description = "ClusterFormation"/>
        <InputCaloHitListName>CaloHitListW</InputCaloHitListName>
        <ClusterListName>ClustersW</ClusterListName>
        <ReplaceCurrentCaloHitList>true</ReplaceCurrentCaloHitList>
        <ReplaceCurrentClusterList>true</ReplaceCurrentClusterList>
    </algorithm>
    <algorithm type = "LArLayerSplitting"/>
    <algorithm type = "LArLongitudinalAssociation"/>
    <algorithm type = "LArTransverseAssociation"/>
    <algorithm type = "LArLongitudinalExtension"/>
    <algorithm type = "LArTransverseExtension"/>
    <algorithm type = "LArCrossGapsAssociation"/>
    <algorithm type = "LArCrossGapsExtension"/>
    <algorithm type = "LArOvershootSplitting"/>
    <algorithm type = "LArBranchSplitting"/>
    <algorithm type = "LArKinkSplitting"/>
    <algorithm type = "LArTrackConsolidation">
        <algorithm type = "LArSimpleClusterCreation" description = "ClusterRebuilding"/>
    </algorithm>

    <!-- ThreeDTrackAlgorithms -->
    <algorithm type = "LArThreeDTransverseTracks">
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearTracks"/>
            <tool type = "LArLongTracks"/>
            <tool type = "LArOvershootTracks"><SplitMode>true</SplitMode></tool>
            <tool type = "LArUndershootTracks"><SplitMode>true</SplitMode></tool>
            <tool type = "LArOvershootTracks"><SplitMode>false</SplitMode></tool>
            <tool type = "LArUndershootTracks"><SplitMode>false</SplitMode></tool>
            <tool type = "LArMissingTrackSegment"/>
            <tool type = "LArTrackSplitting"/>
            <tool type = "LArLongTracks"><MinMatchedFraction>0.75</MinMatchedFraction><MinXOverlapFraction>0.75</MinXOverlapFraction></tool>
            <tool type = "LArTracksCrossingGaps"><MinMatchedFraction>0.75</MinMatchedFraction><MinXOverlapFraction>0.75</MinXOverlapFraction></tool>
            <tool type = "LArMissingTrack"/>
        </TrackTools>
    </algorithm>
    <algorithm type = "LArThreeDLongitudinalTracks">
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearLongitudinalTracks"/>
            <tool type = "LArMatchedEndPoints"/>
        </TrackTools>
    </algorithm>
    <algorithm type = "LArThreeDTrackFragments">
        <MinClusterLength>5.</MinClusterLength>
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearTrackFragments"/>
        </TrackTools>
        <algorithm type = "LArSimpleClusterCreation" description = "ClusterRebuilding"/>
    </algorithm>

    <!-- ThreeDShowerAlgorithms -->
    <algorithm type = "LArCutPfoCharacterisation">
        <TrackPfoListName>TrackParticles3D</TrackPfoListName>
        <ShowerPfoListName>ShowerParticles3D</ShowerPfoListName>
        <UseThreeDInformation>false</UseThreeDInformation>
        <MaxShowerLengthCut>500.</MaxShowerLengthCut>
        <VertexDistanceRatioCut>500.</VertexDistanceRatioCut>
    </algorithm>
    <algorithm type = "LArListDeletion">
        <PfoListNames>ShowerParticles3D</PfoListNames>
    </algorithm>
    <algorithm type = "LArCutClusterCharacterisation">
        <InputClusterListNames>ClustersU ClustersV ClustersW</InputClusterListNames>
        <OverwriteExistingId>true</OverwriteExistingId>
        <MaxShowerLengthCut>500.</MaxShowerLengthCut>
        <VertexDistanceRatioCut>500.</VertexDistanceRatioCut>
    </algorithm>
    <algorithm type = "LArShowerGrowing">
        <InputClusterListNames>ClustersU ClustersV ClustersW</InputClusterListNames>
    </algorithm>
    <algorithm type = "LArThreeDShowers">
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>ShowerParticles3D</OutputPfoListName>
        <ShowerTools>
            <tool type = "LArClearShowers"/>
            <tool type = "LArSplitShowers"/>
            <tool type = "LArSimpleShowers"/>
        </ShowerTools>
    </algorithm>

    <!-- Repeat ThreeDTrackAlgorithms -->
    <algorithm type = "LArThreeDTransverseTracks">
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearTracks"/>
            <tool type = "LArLongTracks"/>
            <tool type = "LArOvershootTracks"><SplitMode>true</SplitMode></tool>
            <tool type = "LArUndershootTracks"><SplitMode>true</SplitMode></tool>
            <tool type = "LArOvershootTracks"><SplitMode>false</SplitMode></tool>
            <tool type = "LArUndershootTracks"><SplitMode>false</SplitMode></tool>
            <tool type = "LArMissingTrackSegment"/>
            <tool type = "LArTrackSplitting"/>
            <tool type = "LArLongTracks"><MinMatchedFraction>0.75</MinMatchedFraction><MinXOverlapFraction>0.75</MinXOverlapFraction></tool>
            <tool type = "LArTracksCrossingGaps"><MinMatchedFraction>0.75</MinMatchedFraction><MinXOverlapFraction>0.75</MinXOverlapFraction></tool>
            <tool type = "LArMissingTrack"/>
        </TrackTools>
    </algorithm>
    <algorithm type = "LArThreeDLongitudinalTracks">
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearLongitudinalTracks"/>
            <tool type = "LArMatchedEndPoints"/>
        </TrackTools>
    </algorithm>
    <algorithm type = "LArThreeDTrackFragments">
        <MinClusterLength>5.</MinClusterLength>
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <TrackTools>
            <tool type = "LArClearTrackFragments"/>
        </TrackTools>
        <algorithm type = "LArSimpleClusterCreation" description = "ClusterRebuilding"/>
    </algorithm>

    <!-- ThreeDRecoveryAlgorithms -->
    <algorithm type = "LArVertexBasedPfoRecovery">
        <InputClusterListNames>ClustersU ClustersV ClustersW</InputClusterListNames>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
    </algorithm>
    <algorithm type = "LArParticleRecovery">
        <InputClusterListNames>ClustersU ClustersV ClustersW</InputClusterListNames>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
    </algorithm>
    <algorithm type = "LArParticleRecovery">
        <InputClusterListNames>ClustersU ClustersV ClustersW</InputClusterListNames>
        <OutputPfoListName>TrackParticles3D</OutputPfoListName>
        <VertexClusterMode>true</VertexClusterMode>
        <MinXOverlapFraction>0.5</MinXOverlapFraction>
        <MinClusterCaloHits>5</MinClusterCaloHits>
        <MinClusterLength>1.</MinClusterLength>
    </algorithm>

    <!-- ThreeDHitAlgorithms -->
    <algorithm type = "LArCutPfoCharacterisation">
        <TrackPfoListName>TrackParticles3D</TrackPfoListName>
        <ShowerPfoListName>ShowerParticles3D</ShowerPfoListName>
        <UseThreeDInformation>false</UseThreeDInformation>
        <PostBranchAddition>true</PostBranchAddition>
        <MaxShowerLengthCut>500.</MaxShowerLengthCut>
        <VertexDistanceRatioCut>500.</VertexDistanceRatioCut>
    </algorithm>
    <algorithm type = "LArThreeDHitCreation">
        <InputPfoListName>TrackParticles3D</InputPfoListName>
        <OutputCaloHitListName>TrackCaloHits3D</OutputCaloHitListName>
        <OutputClusterListName>TrackClusters3D</OutputClusterListName>
        <HitCreationTools>
            <tool type = "LArClearTransverseTrackHits"><MinViews>3</MinViews></tool>
            <tool type = "LArClearLongitudinalTrackHits"><MinViews>3</MinViews></tool>
            <tool type = "LArMultiValuedLongitudinalTrackHits"><MinViews>3</MinViews></tool>
            <tool type = "LArMultiValuedTransverseTrackHits"><MinViews>3</MinViews></tool>
            <tool type = "LArClearTransverseTrackHits"><MinViews>2</MinViews></tool>
            <tool type = "LArClearLongitudinalTrackHits"><MinViews>2</MinViews></tool>
            <tool type = "LArMultiValuedLongitudinalTrackHits"><MinViews>2</MinViews></tool>
        </HitCreationTools>
    </algorithm>
    <algorithm type = "LArThreeDHitCreation">
        <InputPfoListName>ShowerParticles3D</InputPfoListName>
        <OutputCaloHitListName>ShowerCaloHits3D</OutputCaloHitListName>
        <OutputClusterListName>ShowerClusters3D</OutputClusterListName>
        <HitCreationTools>
            <tool type = "LArThreeViewShowerHits"/>
            <tool type = "LArTwoViewShowerHits"/>
            <tool type = "LArDeltaRayShowerHits"/>
        </HitCreationTools>
    </algorithm>

    <!-- SliceCreation -->
    <algorithm type = "LArSlicing">
        <InputCaloHitListNameU>CaloHitListU</InputCaloHitListNameU>
        <InputCaloHitListNameV>CaloHitListV</InputCaloHitListNameV>
        <InputCaloHitListNameW>CaloHitListW</InputCaloHitListNameW>
        <InputClusterListNameU>ClustersU</InputClusterListNameU>
        <InputClusterListNameV>ClustersV</InputClusterListNameV>
        <InputClusterListNameW>ClustersW</InputClusterListNameW>
        <OutputClusterListName>SliceClusters</OutputClusterListName>
        <OutputPfoListName>SliceParticles</OutputPfoListName>
        <tool type = "LArEventSlicing" description = "SliceCreation">
            <TrackPfoListName>TrackParticles3D</TrackPfoListName>
            <ShowerPfoListName>ShowerParticles3D</ShowerPfoListName>
        </tool>
        <algorithm type = "LArListDeletion" description = "SlicingListDeletion">
            <PfoListNames>TrackParticles3D ShowerParticles3D</PfoListNames>
            <ClusterListNames>ClustersU ClustersV ClustersW TrackClusters3D ShowerClusters3D</ClusterListNames>
        </algorithm>
    </algorithm>
    <algorithm type = "LArListChanging">
        <PfoListName>SliceParticles</PfoListName>
    </algorithm>
</pandora>
