CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
hyrec_model.h
Go to the documentation of this file.
1
3#pragma once
4
5#include <string>
6
8
9/* Opaque here: HYREC-2's headers are C and are included only in hyrec_model.cpp,
10 which owns the extern "C" seam. Keeping them out of this header matters -- they
11 define macros such as RECFAST and FULL that would leak into every translation
12 unit that touches a recombination model. */
13struct HyrecData;
14
37 public:
54 HyrecModel(std::string path,
55 double T_cmb,
56 double obh2,
57 double ocbh2,
58 double okh2,
59 double Neff,
60 double YHe,
61 double fHe,
62 double nH0,
63 double z_initial,
64 bool He_rate_correction);
65 ~HyrecModel() override;
66
67 HyrecModel(const HyrecModel&) = delete;
68 HyrecModel& operator=(const HyrecModel&) = delete;
69
70 IonisationDerivatives Derivatives(const RecombinationState& state,
71 const EnergyDeposition& dep,
72 double energy_rate) const override;
73
74 const char* Name() const override;
75
76 private:
77 HyrecData* data_;
78 std::string path_;
79 double fHe_;
80 bool He_rate_correction_;
81};
Definition hyrec_model.h:36
const char * Name() const override
Definition hyrec_model.cpp:151
Definition recombination_model.h:75
Definition energy_deposition.h:31
Definition recombination_model.h:63
Definition recombination_model.h:45