sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #82: on_shell_putting_warning_output.patch

File on_shell_putting_warning_output.patch, 3.1 KB (added by marek, 14 years ago)
  • SHERPA/Single_Events/Signal_Process_FS_QED_Correction.C

     
    9898  Blob * sigblob(bloblist->FindLast(btp::Shower));
    9999  if (!sigblob) return Return_Value::Nothing;
    100100  // if already treated -> nothing to do
    101   if (sigblob->TypeSpec()=="YFS-type QED Corrections to ME")
     101  if (sigblob->TypeSpec()=="YFS-type_QED_Corrections_to_ME")
    102102    return Return_Value::Nothing;
    103   if (sigblob->TypeSpec()=="setting leptons on-shell")
     103  if (sigblob->TypeSpec()=="setting_leptons_on-shell")
    104104    return Return_Value::Nothing;
    105105  // extract FS leptons
    106106  // two vectors -> the ones from the blob and the ones to be massive
     
    127127  // put them on-shell (spoils consistency of pertubative calculation,
    128128  // but necessary for YFS)
    129129  if (!PutOnMassShell(mfslep)) {
    130     msg_Error()<<"Signal_Process_FS_QED_Correction::Treat("<<bloblist<<","<<weight<<"): "<<endl
    131                <<"  Leptons could not be put on their mass shell."<<endl
    132                <<"  Trying new event."<<endl;
     130    msg_Error()<<"Signal_Process_FS_QED_Correction::Treat("
     131               <<bloblist<<","<<weight<<"): \n"
     132               <<"  Leptons could not be put on their mass shell.\n"
     133               <<"  Trying new event.\n"
     134               <<"  The event contained a ";
    133135    for (Particle_Vector::iterator it=mfslep.begin();it!=mfslep.end();++it)
     136       msg_Error()<<(*it)->Flav().ShellName()<<"-";
     137    if (mfslep.size()==2) msg_Error()<<"pair";
     138    else                  msg_Error()<<"set";
     139    msg_Error()<<" of too little invariant mass to be put\n"
     140               <<"  on their mass shell. If you are sensitive to this specific"
     141               <<" signature consider\n  to set the respective particles"
     142               <<" massive in the perturbative calculation using\n"
     143               <<"  'MASSIVE[<id>]=1' to avoid this problem.\n";
     144    for (Particle_Vector::iterator it=mfslep.begin();it!=mfslep.end();++it)
    134145      delete *it;
    135146    return Return_Value::New_Event;
    136147  }
    137148  // if switched off or no need for QED stop here and build a blob
    138149  if (!m_qed || !sigblob->Has(blob_status::needs_extraQED)) {
    139150    Blob * onshellblob = bloblist->AddBlob(btp::QED_Radiation);
    140     onshellblob->SetTypeSpec("setting leptons on-shell");
     151    onshellblob->SetTypeSpec("setting_leptons_on-shell");
    141152    if (sigblob->Has(blob_status::needs_extraQED))
    142153      sigblob->UnsetStatus(blob_status::needs_extraQED);
    143154    for (Particle_Vector::iterator it=fslep.begin();it!=fslep.end();++it) {
     
    178189  sigblob->UnsetStatus(blob_status::needs_extraQED);
    179190  // build new QED radiation blob
    180191  Blob * QEDblob = bloblist->AddBlob(btp::QED_Radiation);
    181   QEDblob->SetTypeSpec("YFS-type QED Corrections to ME");
     192  QEDblob->SetTypeSpec("YFS-type_QED_Corrections_to_ME");
    182193  for (Particle_Vector::iterator it=fslep.begin();it!=fslep.end();++it) {
    183194    // set info back to hard process, otherwise
    184195    // check for momentum conservation does not work