Fork me on GitHub

Changeset 252 in svn


Ignore:
Timestamp:
Feb 7, 2009, 6:48:45 PM (16 years ago)
Author:
severine ovyn
Message:

add parameters for RP

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/DataCardDet.dat

    r249 r252  
    8888RP_420_s          420                   // distance of the RP to the IP, in meters
    8989RP_420_x          0.004                 // distance of the RP to the beam, in meters
     90Beam1Card         data/LHCB1IR5_v6.500.tfs
     91Beam2Card         data/LHCB2IR5_v6.500.tfs
    9092
    9193# In case FROG event display allowed
  • trunk/interface/SmearUtil.h

    r244 r252  
    7272  float VFD_s_zdc;   // distance of the Zero Degree Calorimeter, from the Interaction poin, in [m]
    7373
    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;
    7882
    7983
  • trunk/src/SmearUtil.cc

    r249 r252  
    127127  RP_420_s          = 420;                   // distance of the RP to the IP, in meters
    128128  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";
    129131
    130132  // In case FROG event display allowed
     
    155157 
    156158  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
    157164 
    158165}
     
    237244  RP_420_s          = DET.RP_420_s;
    238245  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;
    239250
    240251  // In case FROG event display allowed
     
    342353  RP_420_s          = DET.RP_420_s;
    343354  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
    344360
    345361  // In case FROG event display allowed
     
    388404    curstring.str(temp_string);
    389405    string varname;
    390     float value; int ivalue;
     406    float value; int ivalue; string svalue;
    391407   
    392408    if(strstr(temp_string.c_str(),"#")) { }
     
    405421    else if(strstr(temp_string.c_str(),"RP_420_s"))         {curstring >> varname >> value; RP_420_s          = value;}
    406422    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;}
    407425   
    408426    else if(strstr(temp_string.c_str(),"ELG_Scen"))         {curstring >> varname >> value; ELG_Scen          = value;}
     
    545563    f_out << left << setw(55) <<"* Distance of the RP to the beam, in meters: "<<""
    546564          << 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
    547576    f_out<<"*                                                                    *"<<"\n";
    548577  }
  • trunk/src/VeryForward.cc

    r242 r252  
    7373  relative_energy = true; // should always be true
    7474  kickers_on = 1;         // should always be 1
    75  
    7675  // user should provide : (1) optics file for each beamline, and IPname,
    7776  // 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 1
    81   H_RomanPot * rp420_1 = new H_RomanPot("rp420_1",420,4000); // RP 420m, 4mm, beam 1
     77  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 
    8281  beamline1->add(rp220_1);
    8382  beamline1->add(rp420_1);
    8483 
    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 2
    88   H_RomanPot * rp420_2 = new H_RomanPot("rp420_2",420,4000);// RP 420m, 4mm, beam 2
     84  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     
    8988  beamline2->add(rp220_2);
    9089  beamline2->add(rp420_2);
Note: See TracChangeset for help on using the changeset viewer.