- Timestamp:
- Feb 8, 2009, 2:33:33 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SmearUtil.cc
r252 r254 161 161 RP_offsetEl_s = 120; 162 162 RP_offsetEl_x = 0.097; 163 RP_cross_x = -500; 164 RP_cross_y = 0.0; 165 RP_cross_ang = 142.5; 166 163 167 164 168 … … 248 252 RP_offsetEl_s = DET.RP_offsetEl_s; 249 253 RP_offsetEl_x = DET.RP_offsetEl_x; 254 RP_cross_x = DET.RP_cross_x; 255 RP_cross_y = DET.RP_cross_y; 256 RP_cross_ang = DET.RP_cross_ang; 257 250 258 251 259 // In case FROG event display allowed … … 357 365 RP_beam1Card = DET.RP_beam1Card; 358 366 RP_beam2Card = DET.RP_beam2Card; 367 RP_cross_x = DET.RP_cross_x; 368 RP_cross_y = DET.RP_cross_y; 369 RP_cross_ang = DET.RP_cross_ang; 370 359 371 360 372 … … 421 433 else if(strstr(temp_string.c_str(),"RP_420_s")) {curstring >> varname >> value; RP_420_s = value;} 422 434 else if(strstr(temp_string.c_str(),"RP_420_x")) {curstring >> varname >> value; RP_420_x = value;} 423 //else if(strstr(temp_string.c_str(),"Beam1Card")) {curstring >> varname >> svalue;Beam1Card = svalue;}424 //else if(strstr(temp_string.c_str(),"Beam2Card")) {curstring >> varname >> svalue;Beam2Card = svalue;}435 else if(strstr(temp_string.c_str(),"Beam1Card")) {curstring >> varname >> svalue;RP_beam1Card = svalue;} 436 else if(strstr(temp_string.c_str(),"Beam2Card")) {curstring >> varname >> svalue;RP_beam2Card = svalue;} 425 437 426 438 else if(strstr(temp_string.c_str(),"ELG_Scen")) {curstring >> varname >> value; ELG_Scen = value;} … … 567 579 f_out << left << setw(35) <<"* Datacard for beam 2: "<<"" 568 580 << left << setw(25) <<RP_beam2Card <<""<< right << setw(10)<<"*"<<"\n"; 569 f_out << left << setw(4 0) <<"* Beam separation, in meters: "<<""570 << left << setw( 10) << RP_offsetEl_x <<""<< right << setw(20)<<"! not in datacard *"<<"\n";581 f_out << left << setw(44) <<"* Beam separation, in meters: "<<"" 582 << left << setw(6) << RP_offsetEl_x <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 571 583 f_out << left << setw(44) <<"* Distance from IP for Beam separation (m):"<<"" 572 584 << left << setw(6) <<RP_offsetEl_s <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 573 574 585 f_out << left << setw(44) <<"* X offset of beam crossing in micrometers:"<<"" 586 << left << setw(6) <<RP_cross_x <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 587 f_out << left << setw(44) <<"* Y offset of beam crossing in micrometers:"<<"" 588 << left << setw(6) <<RP_cross_y <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 589 f_out << left << setw(44) <<"* Angle of beam crossing:"<<"" 590 << left << setw(6) <<RP_cross_ang <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 575 591 576 592 f_out<<"* *"<<"\n"; -
trunk/src/VeryForward.cc
r252 r254 77 77 beamline1->fill(DET->RP_beam1Card,1,"IP5"); 78 78 beamline1->offsetElements(DET->RP_offsetEl_s,-DET->RP_offsetEl_x); 79 H_RomanPot * rp220_1 = new H_RomanPot("rp220_1",DET->RP_220_s,DET->RP_220_x* 1E6); // RP 220m, 2mm, beam 180 H_RomanPot * rp420_1 = new H_RomanPot("rp420_1",DET->RP_420_s,DET->RP_420_x* 1E6); // RP 420m, 4mm, beam 179 H_RomanPot * rp220_1 = new H_RomanPot("rp220_1",DET->RP_220_s,DET->RP_220_x*(1E6)); // RP 220m, 2mm, beam 1 80 H_RomanPot * rp420_1 = new H_RomanPot("rp420_1",DET->RP_420_s,DET->RP_420_x*(1E6)); // RP 420m, 4mm, beam 1 81 81 beamline1->add(rp220_1); 82 82 beamline1->add(rp420_1); … … 84 84 beamline2->fill(DET->RP_beam2Card,-1,"IP5"); 85 85 beamline2->offsetElements(DET->RP_offsetEl_s,+DET->RP_offsetEl_x); 86 H_RomanPot * rp220_2 = new H_RomanPot("rp220_2",DET->RP_220_s,DET->RP_220_x* 1E6);// RP 220m, 2mm, beam 287 H_RomanPot * rp420_2 = new H_RomanPot("rp420_2",DET->RP_420_s,DET->RP_420_x* 1E6);// RP 420m, 4mm, beam 286 H_RomanPot * rp220_2 = new H_RomanPot("rp220_2",DET->RP_220_s,DET->RP_220_x*(1E6));// RP 220m, 2mm, beam 2 87 H_RomanPot * rp420_2 = new H_RomanPot("rp420_2",DET->RP_420_s,DET->RP_420_x*(1E6));// RP 420m, 4mm, beam 2 88 88 beamline2->add(rp220_2); 89 89 beamline2->add(rp420_2); … … 141 141 p1.smearAng(); 142 142 p1.smearPos(); 143 p1.setPosition(p1.getX() -500.,p1.getY(),p1.getTX()-1*kickers_on*CRANG,p1.getTY(),0);143 p1.setPosition(p1.getX()+DET->RP_cross_x,p1.getY()+DET->RP_cross_y,p1.getTX()-1*kickers_on*DET->RP_cross_ang,p1.getTY(),0); 144 144 p1.set4Momentum(particle->Px,particle->Py,particle->Pz,particle->E); 145 145
Note:
See TracChangeset
for help on using the changeset viewer.