Fork me on GitHub

Changeset 512 in svn for trunk


Ignore:
Timestamp:
Jul 23, 2009, 3:42:42 PM (15 years ago)
Author:
Xavier Rouby
Message:

new commented lines for the misalignment studies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VeryForward.cc

    r443 r512  
    124124  beamline1->add(rp220_1);
    125125  beamline1->add(rp420_1);
     126  //beamline1->alignElement("\"MQXA.1R5\"",+0.0005,0);
     127  //beamline1->alignElement("\"MQM.9R5.B1\"",-0.0001,0);
     128  //beamline1->alignElement("\"MQML.5R5.B1\"",+0.0001,0);
    126129 
    127130  beamline2->fill(DET->RP_beam2Card,-1,DET->RP_IP_name);                             
     
    135138  beamline2->add(rp220_2);
    136139  beamline2->add(rp420_2);
     140  //beamline2->alignElement("\"MQXA.1L5\"",+0.0005,0);
    137141  // rp220_1, rp220_2, rp420_1 and rp420_2 will be deallocated in ~H_AbstractBeamLine
    138142  // do not put explicit delete
     
    239243  // so if RP/FP too far away, the particle must be a proton or a mu+
    240244  if( std::min(DET->RP_420_s,DET->RP_220_s) > 17 && (particle->PID != pP && particle->PID != 13)) return;
    241 
    242245  if( fabs(genMomentum.Eta()) > DET->CEN_max_calo_fwd )
    243246    {
     
    255258      // here below, p1.getX(), p1.getY(), p1.getTX() and p1.getTY() =0 unless some smearing is done
    256259      // all in micrometers or microradians
     260
     261      // for checking purposes
     262      /*p1.smearAng();   p1.smearPos(); tx=0; ty=0;      // to be removed !!!! test only !!!!
     263      ofstream xdist("xdist",ios::ios_base::app);
     264      xdist << endl;
     265      xdist << (1E3)*particle->X + p1.getX() + DET->RP_cross_x << " = " << (1E3)*particle->X << " + " << p1.getX() << " + " << DET->RP_cross_x << endl;
     266      xdist << (1E3)*particle->Y + p1.getY() + DET->RP_cross_y << " = " << (1E3)*particle->Y << " + " << p1.getY() << " + " << DET->RP_cross_y << endl;
     267      xdist << tx + p1.getTX()- kickers_on*DET->RP_cross_ang_x << " = " << tx << " + " << p1.getTX() << " - " << kickers_on << "*" << DET->RP_cross_ang_x<< endl;
     268      xdist << ty + p1.getTY()- kickers_on*DET->RP_cross_ang_y << " = " << ty << " + " << p1.getTY() << " - " << kickers_on << "*" << DET->RP_cross_ang_y<< endl;
     269      xdist.close();
     270      */
     271
     272     
    257273      p1.setPosition((1E3)*particle->X + p1.getX() + DET->RP_cross_x,
    258274                     (1E3)*particle->Y + p1.getY() + DET->RP_cross_y,
Note: See TracChangeset for help on using the changeset viewer.