`_check_version` is a function to check for the version of the file if it is supported.
"""
function _check_version(filename::String)
match_result=match(r"_v(\d+\.\d+)",filename)
ifmatch_result!==nothing
version=match_result.captures[1]
ifversion=="0.5"
returntrue
else
error("Only version supported now is v 0.5 . Not supported version: $version")
end
else
error("Version not found in filename: $filename")
end
end
"""
`OSCFile` is a structure representing an oscillation open data file. Depending on the trees inside the root file it will have different fields (neutrino, muons, data).