Changeset 252 in svn
- Timestamp:
- Feb 7, 2009, 6:48:45 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/DataCardDet.dat
r249 r252 88 88 RP_420_s 420 // distance of the RP to the IP, in meters 89 89 RP_420_x 0.004 // distance of the RP to the beam, in meters 90 Beam1Card data/LHCB1IR5_v6.500.tfs 91 Beam2Card data/LHCB2IR5_v6.500.tfs 90 92 91 93 # In case FROG event display allowed -
trunk/interface/SmearUtil.h
r244 r252 72 72 float VFD_s_zdc; // distance of the Zero Degree Calorimeter, from the Interaction poin, in [m] 73 73 74 float RP_220_s; // distance of the RP to the IP, in meters 75 float RP_220_x; // distance of the RP to the beam, in meters 76 float RP_420_s; // distance of the RP to the IP, in meters 77 float RP_420_x; // distance of the RP to the beam, in meters 74 float RP_220_s; // distance of the RP to the IP, in meters 75 float RP_220_x; // distance of the RP to the beam, in meters 76 float RP_420_s; // distance of the RP to the IP, in meters 77 float RP_420_x; // distance of the RP to the beam, in meters 78 string RP_beam1Card; // 79 string RP_beam2Card; // 80 float RP_offsetEl_s; 81 float RP_offsetEl_x; 78 82 79 83 -
trunk/src/SmearUtil.cc
r249 r252 127 127 RP_420_s = 420; // distance of the RP to the IP, in meters 128 128 RP_420_x = 0.004; // distance of the RP to the beam, in meters 129 RP_beam1Card = "data/LHCB1IR5_v6.500.tfs"; 130 RP_beam2Card = "data/LHCB1IR5_v6.500.tfs"; 129 131 130 132 // In case FROG event display allowed … … 155 157 156 158 PT_QUARKS_MIN = 2.0 ; // minimal pt needed by quarks to do b-tag 159 160 //for very forward detectors 161 RP_offsetEl_s = 120; 162 RP_offsetEl_x = 0.097; 163 157 164 158 165 } … … 237 244 RP_420_s = DET.RP_420_s; 238 245 RP_420_x = DET.RP_420_x; 246 RP_beam1Card = DET.RP_beam1Card; 247 RP_beam2Card = DET.RP_beam2Card; 248 RP_offsetEl_s = DET.RP_offsetEl_s; 249 RP_offsetEl_x = DET.RP_offsetEl_x; 239 250 240 251 // In case FROG event display allowed … … 342 353 RP_420_s = DET.RP_420_s; 343 354 RP_420_x = DET.RP_420_x; 355 RP_offsetEl_s = DET.RP_offsetEl_s; 356 RP_offsetEl_x = DET.RP_offsetEl_x; 357 RP_beam1Card = DET.RP_beam1Card; 358 RP_beam2Card = DET.RP_beam2Card; 359 344 360 345 361 // In case FROG event display allowed … … 388 404 curstring.str(temp_string); 389 405 string varname; 390 float value; int ivalue; 406 float value; int ivalue; string svalue; 391 407 392 408 if(strstr(temp_string.c_str(),"#")) { } … … 405 421 else if(strstr(temp_string.c_str(),"RP_420_s")) {curstring >> varname >> value; RP_420_s = value;} 406 422 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;} 407 425 408 426 else if(strstr(temp_string.c_str(),"ELG_Scen")) {curstring >> varname >> value; ELG_Scen = value;} … … 545 563 f_out << left << setw(55) <<"* Distance of the RP to the beam, in meters: "<<"" 546 564 << left << setw(5) <<RP_420_x <<""<< right << setw(10)<<"*"<<"\n"; 565 f_out << left << setw(35) <<"* Datacard for beam 1: "<<"" 566 << left << setw(25) <<RP_beam1Card <<""<< right << setw(10)<<"*"<<"\n"; 567 f_out << left << setw(35) <<"* Datacard for beam 2: "<<"" 568 << left << setw(25) <<RP_beam2Card <<""<< right << setw(10)<<"*"<<"\n"; 569 f_out << left << setw(40) <<"* Beam separation, in meters: "<<"" 570 << left << setw(10) << RP_offsetEl_x <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 571 f_out << left << setw(44) <<"* Distance from IP for Beam separation (m):"<<"" 572 << left << setw(6) <<RP_offsetEl_s <<""<< right << setw(20)<<"! not in datacard *"<<"\n"; 573 574 575 547 576 f_out<<"* *"<<"\n"; 548 577 } -
trunk/src/VeryForward.cc
r242 r252 73 73 relative_energy = true; // should always be true 74 74 kickers_on = 1; // should always be 1 75 76 75 // user should provide : (1) optics file for each beamline, and IPname, 77 76 // and offset data (s,x) for optical elements 78 beamline1->fill( "data/LHCB1IR5_v6.500.tfs",1,"IP5");79 beamline1->offsetElements( 120,-0.097);80 H_RomanPot * rp220_1 = new H_RomanPot("rp220_1", 220,2000); // RP 220m, 2mm, beam 181 H_RomanPot * rp420_1 = new H_RomanPot("rp420_1", 420,4000); // RP 420m, 4mm, beam 177 beamline1->fill(DET->RP_beam1Card,1,"IP5"); 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 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 82 81 beamline1->add(rp220_1); 83 82 beamline1->add(rp420_1); 84 83 85 beamline2->fill( "data/LHCB1IR5_v6.500.tfs",-1,"IP5");86 beamline2->offsetElements( 120,+0.097);87 H_RomanPot * rp220_2 = new H_RomanPot("rp220_2", 220,2000);// RP 220m, 2mm, beam 288 H_RomanPot * rp420_2 = new H_RomanPot("rp420_2", 420,4000);// RP 420m, 4mm, beam 284 beamline2->fill(DET->RP_beam2Card,-1,"IP5"); 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 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 89 88 beamline2->add(rp220_2); 90 89 beamline2->add(rp420_2);
Note:
See TracChangeset
for help on using the changeset viewer.