Go to the source code of this file.
|
using | Table = map< int, array< map< int, double >, 2 >> |
|
using | ResultTable = map< int, array< vector< int >, 2 >> |
|
using Table = map<int,array<map<int,double>, 2>> |
TFile f |
( |
"output.root" |
| ) |
|
Definition at line 66 of file plot.C.
References copyN, EnergyDeposit, EventIDp, and flagVolume.
76 bool isLeftStrand = DNAVolumeType::deoxyribose1 ==
flagVolume ||
78 DNAVolumeType::deoxyribose1_water ==
flagVolume ||
81 bool isRightStrand = DNAVolumeType::deoxyribose2 ==
flagVolume ||
83 DNAVolumeType::deoxyribose2_water==
flagVolume ||
91 else if( isRightStrand )
102 bool isDeoxyribode =
flagVolume == DNAVolumeType::deoxyribose1 ||
104 flagVolume == DNAVolumeType::deoxyribose1_water ||
105 flagVolume == DNAVolumeType::deoxyribose2_water;
107 bool isPhosphate =
flagVolume == DNAVolumeType::phosphate1 ||
109 flagVolume == DNAVolumeType::phosphate1_water||
110 flagVolume == DNAVolumeType::phosphate2_water;
112 if(isDeoxyribode || isPhosphate)
135 if (itCopyNumTable->second == strand)
map< int, int > CopyNumTable
ResultTable resultPhysTable
Definition at line 209 of file plot.C.
References e, and util::empty().
212 <<
"SDD version, SDDv1.0;\n" 213 <<
"Software, chromatin fiber Model;\n" 214 <<
"Author contact, Carmen Villagrasa,carmen.villagrasa@irsn.fr, " 215 "02/04/2018, Melyn et al.,Sc. Rep. 7 (2017)11923;\n" 216 <<
"Simulation Details, DNA damages from direct and " 217 "indirect effects;\n" 218 <<
"Source, Monoenergetic cylinder-parallel proton beam uniformly " 219 "in 5 nm radius from left side of the cube" 220 <<
" exposing chromatin fiber. Energy: 5 keV;\n" 221 <<
"Source type, 1;\n" 222 <<
"Incident particles, 200;\n" 223 <<
"Mean particle energy, 5 keV;\n" 224 <<
"Energy distribution, M, 0;\n" 225 <<
"Particle fraction, 1.0;\n" 226 <<
"Dose or fluence, 0, 0;\n" 227 <<
"Dose rate, 0.0;\n" 228 <<
"Irradiation target, Simple spherical chromatin fiber model" 229 " in a voxel 40 nm;\n" 230 <<
"Volumes, 0,20,20,20,-20,-20,-20,2,15,15,20,-15,-15,20;\n" 231 <<
"Chromosome sizes, ;\n" 233 <<
"Cell Cycle Phase, G1/G2;\n" 234 <<
"DNA Structure, 4, 1;\n" 235 <<
"In vitro / in vivo, 0;\n" 236 <<
"Proliferation status, 1;\n" 237 <<
"Microenvironment, 27, 0.0;\n" 238 <<
"Damage definition, 1, 1, 10, -1, 0, 17.5;\n" 240 <<
"Damage and primary count, 638, 200;\n" 241 <<
"Data entries, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0;\n" 242 <<
"Data was generated in minimal output format and used as" 243 " an example. Please modify the primary particle number" 246 <<
"***EndOfHeader***;\n" 251 bool Primaryflag =
true;
252 for (
int i = 0; i < 200; i++)
254 for(
int j = 0; j < 2; j++)
256 const std::string positionAndCopyN =
"; 0, 0, 0; 3, 0, 0, ";
257 const std::string SSBType =
" 0, 1, 0";
264 ofile<<
"2, "<<i<<positionAndCopyN
266 <<
"; 0;"<<SSBType<<
"\n" ;
270 ofile<<
"0, "<<i<<positionAndCopyN
272 <<
"; 0;"<<SSBType<<
"\n" ;
285 ofile<<
"2, "<<i<<positionAndCopyN
287 <<
"; 1;"<<SSBType<<
"\n" ;
291 ofile<<
"0, "<<i<<positionAndCopyN
293 <<
"; 1;"<<SSBType<<
"\n" ;
ResultTable resultChemTable
ResultTable resultPhysTable
ofstream ofile("SDDFormat.txt")
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
ofstream ofile |
( |
"SDDFormat.txt" |
| ) |
|
tPhys SetBranchAddress |
( |
"x" |
, |
|
|
& |
xphy |
|
) |
| |
tPhys SetBranchAddress |
( |
"y" |
, |
|
|
& |
yphy |
|
) |
| |
tPhys SetBranchAddress |
( |
"z" |
, |
|
|
& |
zphy |
|
) |
| |
tPhys SetBranchAddress |
( |
"edep" |
, |
|
|
& |
EnergyDeposit |
|
) |
| |
tPhys SetBranchAddress |
( |
"diffKin" |
, |
|
|
& |
kineticEnergyDifference |
|
) |
| |
tPhys SetBranchAddress |
( |
"volumeName" |
, |
|
|
& |
flagVolume |
|
) |
| |
tPhys SetBranchAddress |
( |
"CopyNumber" |
, |
|
|
& |
copyN |
|
) |
| |
tChem SetBranchAddress |
( |
"EventID" |
, |
|
|
& |
EventIDp |
|
) |
| |
gROOT SetStyle |
( |
"Plain" |
| ) |
|
system |
( |
"rm -rf output.root" |
| ) |
|
system |
( |
"hadd output.root output_*.root" |
| ) |
|
map<int,int> CopyNumTable |
TDirectoryFile* d = dynamic_cast<TDirectoryFile*>(f.Get("ntuple") ) |
double kineticEnergyDifference |
TTree* tChem = dynamic_cast<TTree*> (d->Get("ntuple_2") ) |
TTree* tPhys = dynamic_cast<TTree*> (d->Get("ntuple_1") ) |