MatrixElement.h
1 /*
2  * MoMEMta: a modular implementation of the Matrix Element Method
3  * Copyright (C) 2016 Universite catholique de Louvain (UCL), Belgium
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #pragma once
20 
21 #ifndef MOMEMTA_MATRIXELEMENT_H
22 #define MOMEMTA_MATRIXELEMENT_H
23 
24 #include <map>
25 #include <utility>
26 #include <memory>
27 #include <string>
28 #include <vector>
29 
30 #include <momemta/MEParameters.h>
31 #include <momemta/ParameterSet.h>
32 
33 namespace momemta {
34 
35  class MatrixElement {
36  public:
37  using Result = std::map<std::pair<int, int>, double>;
38 
39  MatrixElement() = default;
40  virtual ~MatrixElement() {};
41 
42  virtual void resetHelicities() = 0;
43 
44  virtual Result compute(
45  const std::pair<std::vector<double>, std::vector<double>>& initialMomenta,
46  const std::vector<std::pair<int, std::vector<double>>>& finalState
47  ) = 0;
48 
49  virtual std::shared_ptr<MEParameters> getParameters() = 0;
50  };
51 
52 }
53 
54 #endif
Definition: Graph.h:21