File indexing completed on 2024-04-06 11:57:33
0001 #ifndef CALIBCALORIMETRY_CASTORALGOS_CASTORPULSECONTAINMENTCORRECTION_H
0002 #define CALIBCALORIMETRY_CASTORALGOS_CASTORPULSECONTAINMENTCORRECTION_H 1
0003
0004 #include <map>
0005
0006
0007
0008
0009
0010
0011
0012 class CastorPulseContainmentCorrection {
0013 public:
0014 CastorPulseContainmentCorrection(int num_samples, float fixedphase_ns, float max_fracerror);
0015
0016 double getCorrection(double fc_ampl) const;
0017 double fractionContained(double fc_ampl) const { return 1.0 / this->getCorrection(fc_ampl); }
0018
0019 private:
0020 std::map<double, double> mCorFactors_;
0021 };
0022
0023 #endif