Changeset 9 in ZHANGProjects
- Timestamp:
- Apr 24, 2014, 4:51:08 PM (10 years ago)
- Location:
- ICOSIM/CPP/trunk/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ICOSIM/CPP/trunk/source/Collimator.h
r5 r9 107 107 108 108 int C_orient; //crystal orientation (1 for 110, 2 for 111) 109 int IS; //integer that defines the substance (0 for Si, 1 for W, 2 for C, 3 for Ge) 109 int IS; //integer that defines the substance (0 for Si, 1 for W, 2 for C, 3 for Ge 110 double Mirror; // -1 or 1; an integer to define the install location of the crystal. 111 // -1: the crystal is installed inner side of the vacuum chamber 112 // 1: the crystal is installed at the out side of the vacuum chamber 110 113 double C_xmax; //maximum in the x direction (dimension of the crystal) [m] 111 114 double C_ymax; //maximum in the y direction (dimension of the cystal) [m] -
ICOSIM/CPP/trunk/source/CrystalCollimator.cc
r5 r9 91 91 SimCrys sim(Crystal (C_orient, IS, C_xmax, C_ymax, Cry_length, Rcurv), Partcrys (0)); //simulation of the passage through the crystal 92 92 93 sim.general(sim, pas, outputpath, C_rotation, C_aperture, C_offset, C_tilt, Cry_tilt);93 sim.general(sim, pas, outputpath, Mirror, C_rotation, C_aperture, C_offset, C_tilt, Cry_tilt); 94 94 95 95 ifstream enter; -
ICOSIM/CPP/trunk/source/simcrys.cc
r8 r9 409 409 410 410 411 void SimCrys::general(SimCrys& sim, const int& pas, string outputpath, double C_rotation, double C_aperture, double C_offset, double C_tilt, double Crystal_tilt)411 void SimCrys::general(SimCrys& sim, const int& pas, string outputpath, double Mirror, double C_rotation, double C_aperture, double C_offset, double C_tilt, double Crystal_tilt) 412 412 { 413 413 srand ( time(NULL) ); … … 471 471 double totcount(0); 472 472 473 double mirror= 0.0;473 double mirror=Mirror; 474 474 double tiltangle=0.0; 475 475 … … 639 639 //cout<<"PARTICULE NON PERDU>>><<"<<endl; 640 640 641 // ?????????????? Need to define the correct value of the mirror for the install locations641 //To define the correct value of the mirror for the install locations 642 642 // of the crystal in SPS & LHC, inner side or outside of the vacuum chamber???? 643 643 // by Zhang @ CERN, 23/04/2014..... 644 mirror = 1; 644 //mirror = 1; 645 645 646 646 647 x = mirror * x; -
ICOSIM/CPP/trunk/source/simcrys.h
r5 r9 53 53 //THE GENERAL FUNCTION OF THE TEST THAT REGROUP ALL THE PREVIOUS FUNCTIONS!!!! 54 54 55 void general(SimCrys& sim, const int& pas, string outputpath, double C_rotation, double C_aperture, double C_offset, double C_tilt, double Crystal_tilt);55 void general(SimCrys& sim, const int& pas, string outputpath, double Mirror, double C_rotation, double C_aperture, double C_offset, double C_tilt, double Crystal_tilt); 56 56 57 57 -
ICOSIM/CPP/trunk/source/simulation.cc
r8 r9 460 460 getline(readinfocrystal, temp1, ','); 461 461 lat.resColli[j]->IS = atoi(temp1.c_str()); 462 //added feature, to define the install location of the crystal, then 463 //get the correct transformation between the beam frame & crystal frame. 464 getline(readinfocrystal, temp1, ','); 465 lat.resColli[j]->Mirror = atoi(temp1.c_str()); 466 462 467 getline(readinfocrystal, temp1, ','); 463 468 lat.resColli[j]->C_xmax = atof(temp1.c_str());
Note: See TracChangeset
for help on using the changeset viewer.