cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
BreitWigner.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2013-2022 Laurent Forthomme
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 * 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#ifndef CepGen_Physics_BreitWigner_h
20#define CepGen_Physics_BreitWigner_h
21
22namespace cepgen {
25 public:
26 explicit BreitWigner(double mean = 0., double gamma = 0., double emin = -1., double emax = -1.);
27
29 double min() const { return emin_; }
31 double max() const { return emax_; }
33 double operator()(double x) const;
34
35 private:
37 double mean_;
39 double gamma_;
41 double emin_;
43 double emax_;
44 };
45} // namespace cepgen
46
47#endif
A Breit-Wigner/Cauchy distribution generator.
Definition BreitWigner.h:24
double operator()(double x) const
Shoot a value according to parameterisation.
double min() const
Minimal energy to consider.
Definition BreitWigner.h:29
double max() const
Maximal energy to consider.
Definition BreitWigner.h:31
Common namespace for this Monte Carlo generator.