Module resolution_mod

module resolution_mod

        ! Uses
    use precision_mod
    use det_geom_mod
    use chambers_mod
    use filters_mod
    use hitpos_struct_mod
    use hitpos_mod
    use leftright_mod
    use kalman_mod
    use residuals_mod
    use namelist_mod
    use calibrations_mod
    use hists_mod

        ! Variables
    integer (kind=i4), private :: nEvents
    integer (kind=i4), private :: IterateRes

        ! Subroutines and functions
    public subroutine Resolution (iWindow)
    private subroutine ResolutionInit ()
    private subroutine ResolutionCalculate (iWindow)
    public subroutine ResolutionPrint (Errs, nEntries, Chi2)
    public function ResolutionFromFWHM (idHist)

end module resolution_mod

Description of Variables

nEvents

integer (kind=i4), private :: nEvents

IterateRes

integer (kind=i4), private :: IterateRes

Description of Subroutines and Functions

Resolution

public subroutine Resolution (iWindow)
    integer (kind=i4) :: iWindow
    ! Calls: ResolutionCalculate, ResolutionInit
end subroutine Resolution

ResolutionInit

private subroutine ResolutionInit ()
end subroutine ResolutionInit

ResolutionCalculate

private subroutine ResolutionCalculate (iWindow)
    integer (kind=i4) :: iWindow
    ! Calls: KalFit, Residuals, ResolutionPrint, hfithn, hnoent, hreset, savec
end subroutine ResolutionCalculate

ResolutionPrint

public subroutine ResolutionPrint (Errs, nEntries, Chi2)
    real (kind=r4), dimension(0:max_planes_d,DCDriftBinMax), INTENT(IN) :: Errs
    integer (kind=i4), dimension(0:max_planes_d,DCDriftBinMax), INTENT(IN) :: nEntries
    real (kind=r4), dimension(0:max_planes_d,DCDriftBinMax), INTENT(IN) :: Chi2
end subroutine ResolutionPrint

ResolutionFromFWHM

public function ResolutionFromFWHM (idHist)
    integer (kind=i4), INTENT(IN) :: idHist
    real (kind=r4) :: ResolutionFromFWHM
end function ResolutionFromFWHM