Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:21:59

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // Authors: O. Belov and M. Batmunkh
0027 // January 2017
0028 // last edit: L.T. Anh (2023)
0029 /// \file BelovModel.hh
0030 /// \brief Definition of the BelovModel class
0031 
0032 
0033 #ifndef BelovModel_H
0034 #define BelovModel_H 1
0035 
0036 #include <iostream>
0037 #include <fstream>
0038 #include <vector>
0039 #include <map>
0040 
0041 class Damage;
0042 
0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0044 
0045 class BelovModel 
0046 { 
0047 public:  
0048   BelovModel();
0049   void Initialize();
0050   bool CalculateRepair(double Dz);
0051 
0052   void SetAlpha(double value){falpha=value;};
0053   void SetNirrep(double value){fNirrep=value;};
0054   
0055   virtual     
0056   ~BelovModel() = default;  
0057 
0058  //Computes and sets input damage parameters
0059   void ComputeAndSetDamageInput(std::vector<Damage>);
0060 
0061   std::vector<std::pair<double,double>> GetDNARepair(std::string NameFoci);
0062 
0063   void WriteOutput(std::string pFileName);
0064   
0065   unsigned int GetBpForDSB(){return fBpForDSB;};
0066     void SetBpForDSB(unsigned int pVal){fBpForDSB = pVal;};
0067   void SetDose(double d) {fDose = d;}
0068   void SetDSBandComDSBandDose(double dsby,double cdsby,double d);
0069 private:
0070   double fDz;
0071   double falpha;
0072   double fNirrep; 
0073   double fTime;
0074   double ComplexDSBYield;
0075   double DSBYield;
0076   std::vector<double> Belov_odes_system(double t,std::vector<double> y);
0077   std::vector<std::pair<double,double>> frepairsim[5];
0078   std::map<std::string,std::vector<std::pair<double,double>>> fdnarepair;
0079   // num of bp to consider a DSB for the MakeCluster function
0080     // default value is 10
0081     unsigned int fBpForDSB;
0082   // store dose deposited in nucleus cell
0083     double fDose;
0084 };
0085 #endif