Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
momentumindex.h
Go to the documentation of this file.
1 // This file is part of MARTY.
2 //
3 // MARTY is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // MARTY is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with MARTY. If not, see <https://www.gnu.org/licenses/>.
15 
23 #pragma once
24 
25 #include "generalizedindex.h"
26 
27 namespace sgl {
28 
29  class IndexChain;
30 
32 
33  public:
34 
36  csl::Tensor const &p,
37  csl::Index const &mu
38  );
39 
40  csl::Tensor getP() const {
41  return p;
42  }
43 
44  csl::Expr square() const {
45  auto p_cpy = p;
46  return p_cpy(m_indices[0])*p_cpy(m_indices[0].getFlipped());
47  }
48  csl::Expr mass() const {
49  return csl::sqrt_s(square());
50  }
51 
52  bool isZero() const override;
53 
54  GExpr copy() const override;
55  GExpr refresh() const override;
56 
57  csl::Expr toCSL(TensorSet const&) const override;
58 
59  csl::Expr getFactor() const override;
60  GExpr getTerm() const override;
61 
62  bool hasPropertyWith(GExpr const &other) const override;
63  GExpr propertyWith(GExpr const &other) const override;
64 
65  void print(std::ostream &out = std::cout) const override;
66 
67  protected:
68 
69  bool hasEOMWith(IndexChain const &chain) const;
70 
71  protected:
72 
73  csl::Tensor p;
74  };
75 
76  GExpr momentumindex_s(
77  csl::Tensor const &p,
78  csl::Index const &mu
79  );
80 }
Definition: tensorset.h:30
Definition: momentumindex.h:31
Definition: indexchain.h:35
csl::Expr mu
mu parameter.
Definition: MSSM.h:83
Definition: abstractgammasym.h:87
Definition: generalizedindex.h:29
Definition: abstractgammasym.h:32
Base class for indexed obejcts in SGL.