12#include "TMatrixDSym.h"
22 using namespace JMATH;
27 const int N = A.
size() - 1;
30 for (
int i = 0; i < N+1; i++) {
35 for (
int j = 0; j < N+1; j++) {
39 ret.
at(k,l) = A.at(i,j);
49 if (A.size() != x.size()) {
50 cout <<
"Can not evaluate dot product: dimensions dont match" << endl;
54 for (
unsigned int i = 0; i < A.size(); ++i) {
55 for (
unsigned int j = 0; j < A.size(); ++j) {
56 ret.at(i) += A.at(i,j) * x.at(j);
71int main(
int argc,
char **argv)
89 JParser<> zap(
"Program to calculate time offsets from FitL1dtSlices output");
91 zap[
'f'] =
make_field(inputFile,
"input file") =
"fitslices.root";
104 catch(
const exception &error) {
126 TFile* in = TFile::Open(inputFile.c_str(),
"exist");
128 if (in ==
NULL || !in->IsOpen()) {
129 FATAL(
"File: " << inputFile <<
" not opened." <<
endl);
137 FATAL(
"File does not contain histogram with matrix. Please use FitL1dtSlices script first." <<
endl);
213 if (
fitA.size() <= 1) {
224 for (
unsigned int i = 0; i <
fitA.size(); i++) {
225 for (
unsigned int j = 0; j <
fitA.size(); j++) {
232 for (
int i = 0; i <
fit_A.GetNrows(); ++i) {
275 if (status[
idom] == 0) {
KM3NeT DAQ constants, bit handling, etc.
Data structure for detector geometry and calibration.
int main(int argc, char **argv)
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
JReader & read(JReader &in) override final
Read from input.
Utility class to parse command line options.
vector< double > dotprod(const JMatrixNS &A, const vector< double > &x)
JMatrixNS removeRowColumn(const JMatrixNS &A, int C)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
size_t size() const
Get dimension of matrix.
double at(size_t row, size_t col) const
Get matrix element.