Skip to content
Snippets Groups Projects

Npdet info

Merged Whitney Armstrong requested to merge npdet_info into master
4 files
+ 259
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -26,7 +26,7 @@ static Ref_t create_detector(Detector& det, xml_h e, SensitiveDetector sens) {
PlacedVolume pv;
int n = 0;
std::cout << " BEAM PIPE \n";
//std::cout << " BEAM PIPE \n";
// Final Focusing Quads (FFQ)
// these are just guesses
@@ -75,10 +75,10 @@ static Ref_t create_detector(Detector& det, xml_h e, SensitiveDetector sens) {
// get the parameters
for(xml_coll_t bp(x_det,"beampipe"); bp; ++bp) {
std::cout << bp << std::endl;
//std::cout << bp << std::endl;
xml_comp_t beampipe_comp = bp;
if(beampipe_comp.nameStr() == std::string("CentralBeamPipe")) {
std::cout << " CentralBeamPipe\n";
//std::cout << " CentralBeamPipe\n";
bp0_pars.inner_radius = getAttrOrDefault<double>(beampipe_comp,_Unicode(inner_raius),bp0_pars.inner_radius);
}
}
@@ -150,7 +150,7 @@ static Ref_t create_detector(Detector& det, xml_h e, SensitiveDetector sens) {
// ------------------------------------------
// ion downstream exit pipe
double ion_sep_flange_pos = bp0_pars.length/2.0 + bp1_pars.length + bp2_pars.length;
std::cout << "ion_sep_flange_pos " << ion_sep_flange_pos/cm << " m\n";
//std::cout << "ion_sep_flange_pos " << ion_sep_flange_pos/cm << " m\n";
double ion_exit_pipe_inner_radius = 1.5*cm;
double ion_exit_pipe_length = 7.0*m;
Loading