File indexing completed on 2025-01-31 09:21:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #ifndef LEMIVMODEL_HH
0032 #define LEMIVMODEL_HH
0033
0034 #include <string>
0035 #include <vector>
0036 #include <map>
0037
0038 class Damage;
0039
0040 class LEMIVModel
0041 {
0042 public:
0043
0044
0045
0046 LEMIVModel(double pLoopLength = 2E6,double pNi = 0, double pNc = 0,
0047 double pNDSB = 0,double pFunrej =0,double pTfast =-1,double pTslow =-1);
0048
0049 ~LEMIVModel() = default;
0050
0051 double ComputeUnrej(double pTime);
0052
0053 double GetLoopLength() {return fLoopLength;};
0054 void SetLoopLength(double pVal){fLoopLength=pVal;};
0055 double GetNumDSB() {return fNDSB;};
0056 void SetNumDSB(double pVal){fNDSB=pVal;};
0057 double GetNumDomainIsolated(){return fNi;};
0058 void SetNumDomainIsolated(double pVal){fNi=pVal;};
0059 double GetNumDomainClustered(){return fNc;};
0060 void SetNumDomainClustered(double pVal){fNc=pVal;};
0061
0062 double GetFunrej(){return fFunrej;};
0063 void SetFunrej(double pVal){fFunrej=pVal;};
0064
0065
0066 double GetTfast(){return fTfast;};
0067 void SetTfast(double pVal){fTfast=pVal;};
0068
0069
0070 double GetTslow(){return fTslow;};
0071 void SetTslow(double pVal){fTslow=pVal;};
0072
0073
0074 void ComputeAndSetDamageInput(std::vector<Damage>);
0075
0076
0077
0078 void CalculateRepair(double pTMax, double pDeltaT);
0079
0080
0081 void WriteOutput(std::string pFileName);
0082
0083 unsigned int GetBpForDSB(){return fBpForDSB;};
0084 void SetBpForDSB(unsigned int pVal){fBpForDSB = pVal;};
0085 void SetDose(double d) {fDose = d;}
0086
0087 void SetChromosomeBpSizesMap(std::map<int,unsigned long long int> chroSizes) {fChromosomeBpMap = chroSizes;}
0088 private:
0089
0090 double fLoopLength;
0091
0092
0093 double fNi{0};
0094
0095 double fNc{0};
0096
0097 double fNDSB{0};
0098
0099 double fFunrej{0};
0100
0101
0102 double fTfast{0};
0103 double fTslow{0};
0104
0105
0106 int GetDSBPerLoop(std::vector<Damage> pVecDamage,unsigned int pStartLoop);
0107
0108
0109 std::vector<std::pair<double,double>> fUCurve;
0110
0111
0112 unsigned int fBpForDSB{0};
0113
0114 double fDose{0};
0115 std::vector<double> fDefaultsChromosomeSizes;
0116 std::map<int,unsigned long long int> fChromosomeBpMap;
0117 };
0118
0119 #endif