Skip to content
Snippets Groups Projects
Commit bf2859a6 authored by Paul Seyfert's avatar Paul Seyfert
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #1272265 passed
build:
tags:
- docker-image-build
script: "echo 'building image'" # unused but this line is required by GitLab CI
.vimrc 0 → 100644
syntax on
filetype plugin on
function FormatFile()
let l:lines="all"
py3f /usr/share/clang/clang-format-9/clang-format.py
endfunction
autocmd FileType c,cpp,proto,javascript,objc,java,typescript,arduino nmap <C-I> :call FormatFile()<cr>
/*
* Copyright (C) 2019 CERN for the benefit of the LHCb collaboration
* Author: Paul Seyfert <pseyfert@cern.ch>
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3), copied verbatim in the file "LICENSE".
*
* In applying this licence, CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
#pragma once
#include "LHCbMath/SIMDWrapper.h"
namespace LHCb::Rec {
template <typename dType = SIMDWrapper::scalar::types> struct Chi2PerDoF {
typename dType::float_v chi2PerDoF;
typename dType::int_v nDoF;
[[nodiscard]] typename dType::float_v chi2() const {
using float_v = typename dType::float_v;
return chi2PerDoF * (float_v)nDoF;
}
};
} // namespace LHCb::Rec
FROM debian:testing
RUN apt update && apt -y upgrade && apt install -y vim-nox clang-format-9
ADD Chi2PerDoF.h /
ADD .vimrc /root/.vimrc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment