- Timestamp:
- Feb 8, 2009, 11:28:45 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SmearUtil.cc
r254 r257 51 51 ELG_Ncen = 0.25; // N term for central ECAL 52 52 ELG_Ccen = 0.005; // C term for central ECAL 53 ELG_ Cfwd = 0.107; // S term for forward ECAL54 ELG_ Sfwd = 2.084; // C term for forward ECAL55 ELG_ Nfwd = 0.0; // N term for central ECAL53 ELG_Sfwd = 2.084; // S term for FCAL 54 ELG_Nfwd = 0.0; // N term for FCAL 55 ELG_Cfwd = 0.107; // C term for FCAL 56 56 57 57 // Energy resolution for hadrons in ecal/hcal/hf 58 58 // \sigma/E = C + N/E + S/\sqrt{E} 59 HAD_Shcal = 1.5; // S term for central HCAL // hadronic calorimeter59 HAD_Shcal = 1.5; // S term for central HCAL 60 60 HAD_Nhcal = 0.; // N term for central HCAL 61 61 HAD_Chcal = 0.05; // C term for central HCAL 62 HAD_Shf = 2.7; // S term for HF // forward calorimeter63 HAD_Nhf = 0.; // N term for HF64 HAD_Chf = 0.13; // C term for HF62 HAD_Shf = 2.7; // S term for FCAL 63 HAD_Nhf = 0.; // N term for FCAL 64 HAD_Chf = 0.13; // C term for FCAL 65 65 66 66 // Muon smearing … … 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_IP_name = "IP5"; 129 130 RP_beam1Card = "data/LHCB1IR5_v6.500.tfs"; 130 131 RP_beam2Card = "data/LHCB1IR5_v6.500.tfs"; … … 255 256 RP_cross_y = DET.RP_cross_y; 256 257 RP_cross_ang = DET.RP_cross_ang; 258 RP_IP_name = DET.RP_IP_name; 257 259 258 260 … … 368 370 RP_cross_y = DET.RP_cross_y; 369 371 RP_cross_ang = DET.RP_cross_ang; 370 372 RP_IP_name = DET.RP_IP_name; 371 373 372 374 … … 433 435 else if(strstr(temp_string.c_str(),"RP_420_s")) {curstring >> varname >> value; RP_420_s = value;} 434 436 else if(strstr(temp_string.c_str(),"RP_420_x")) {curstring >> varname >> value; RP_420_x = value;} 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;} 437 else if(strstr(temp_string.c_str(),"RP_beam1Card")) {curstring >> varname >> svalue;RP_beam1Card = svalue;} 438 else if(strstr(temp_string.c_str(),"RP_beam2Card")) {curstring >> varname >> svalue;RP_beam2Card = svalue;} 439 else if(strstr(temp_string.c_str(),"RP_IP_name")) {curstring >> varname >> svalue;RP_IP_name = svalue;} 437 440 438 441 else if(strstr(temp_string.c_str(),"ELG_Scen")) {curstring >> varname >> value; ELG_Scen = value;} … … 575 578 f_out << left << setw(55) <<"* Distance of the RP to the beam, in meters: "<<"" 576 579 << left << setw(5) <<RP_420_x <<""<< right << setw(10)<<"*"<<"\n"; 580 f_out << left << setw(55) <<"* Interaction point at the LHC named: "<<"" 581 << left << setw(5) <<RP_IP_name <<""<< right << setw(10)<<"*"<<"\n"; 577 582 f_out << left << setw(35) <<"* Datacard for beam 1: "<<"" 578 583 << left << setw(25) <<RP_beam1Card <<""<< right << setw(10)<<"*"<<"\n"; … … 609 614 f_out << left << setw(30) <<"* C term for central ECAL: "<<"" 610 615 << left << setw(30) <<ELG_Ccen <<""<< right << setw(10)<<"*"<<"\n"; 611 f_out << left << setw(30) <<"* S term for forward ECAL: "<<""616 f_out << left << setw(30) <<"* S term for FCAL: "<<"" 612 617 << left << setw(30) <<ELG_Sfwd <<""<< right << setw(10)<<"*"<<"\n"; 613 f_out << left << setw(30) <<"* N term for forward ECAL: "<<""618 f_out << left << setw(30) <<"* N term for FCAL: "<<"" 614 619 << left << setw(30) <<ELG_Nfwd <<""<< right << setw(10)<<"*"<<"\n"; 615 f_out << left << setw(30) <<"* C term for forward ECAL: "<<""620 f_out << left << setw(30) <<"* C term for FCAL: "<<"" 616 621 << left << setw(30) <<ELG_Cfwd <<""<< right << setw(10)<<"*"<<"\n"; 617 622 f_out<<"* *"<<"\n"; … … 626 631 f_out << left << setw(30) <<"* C term for central HCAL: "<<"" 627 632 << left << setw(30) <<HAD_Chcal <<""<< right << setw(10)<<"*"<<"\n"; 628 f_out << left << setw(30) <<"* S term for forward HCAL: "<<""633 f_out << left << setw(30) <<"* S term for FCAL: "<<"" 629 634 << left << setw(30) <<HAD_Shf <<""<< right << setw(10)<<"*"<<"\n"; 630 f_out << left << setw(30) <<"* N term for forward HCAL: "<<""635 f_out << left << setw(30) <<"* N term for FCAL: "<<"" 631 636 << left << setw(30) <<HAD_Nhf <<""<< right << setw(10)<<"*"<<"\n"; 632 f_out << left << setw(30) <<"* C term for forward HCAL: "<<""637 f_out << left << setw(30) <<"* C term for FCAL: "<<"" 633 638 << left << setw(30) <<HAD_Chf <<""<< right << setw(10)<<"*"<<"\n"; 634 639 f_out<<"* *"<<"\n"; -
trunk/src/VeryForward.cc
r254 r257 75 75 // user should provide : (1) optics file for each beamline, and IPname, 76 76 // and offset data (s,x) for optical elements 77 beamline1->fill(DET->RP_beam1Card,1, "IP5");77 beamline1->fill(DET->RP_beam1Card,1,DET->RP_IP_name); 78 78 beamline1->offsetElements(DET->RP_offsetEl_s,-DET->RP_offsetEl_x); 79 79 H_RomanPot * rp220_1 = new H_RomanPot("rp220_1",DET->RP_220_s,DET->RP_220_x*(1E6)); // RP 220m, 2mm, beam 1 … … 82 82 beamline1->add(rp420_1); 83 83 84 beamline2->fill(DET->RP_beam2Card,-1, "IP5");84 beamline2->fill(DET->RP_beam2Card,-1,DET->RP_IP_name); 85 85 beamline2->offsetElements(DET->RP_offsetEl_s,+DET->RP_offsetEl_x); 86 86 H_RomanPot * rp220_2 = new H_RomanPot("rp220_2",DET->RP_220_s,DET->RP_220_x*(1E6));// RP 220m, 2mm, beam 2
Note:
See TracChangeset
for help on using the changeset viewer.