Ticket #82: on_shell_putting_warning_output.patch
File on_shell_putting_warning_output.patch, 3.1 KB (added by , 14 years ago) |
---|
-
SHERPA/Single_Events/Signal_Process_FS_QED_Correction.C
98 98 Blob * sigblob(bloblist->FindLast(btp::Shower)); 99 99 if (!sigblob) return Return_Value::Nothing; 100 100 // if already treated -> nothing to do 101 if (sigblob->TypeSpec()=="YFS-type QED Corrections toME")101 if (sigblob->TypeSpec()=="YFS-type_QED_Corrections_to_ME") 102 102 return Return_Value::Nothing; 103 if (sigblob->TypeSpec()=="setting leptonson-shell")103 if (sigblob->TypeSpec()=="setting_leptons_on-shell") 104 104 return Return_Value::Nothing; 105 105 // extract FS leptons 106 106 // two vectors -> the ones from the blob and the ones to be massive … … 127 127 // put them on-shell (spoils consistency of pertubative calculation, 128 128 // but necessary for YFS) 129 129 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 "; 133 135 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) 134 145 delete *it; 135 146 return Return_Value::New_Event; 136 147 } 137 148 // if switched off or no need for QED stop here and build a blob 138 149 if (!m_qed || !sigblob->Has(blob_status::needs_extraQED)) { 139 150 Blob * onshellblob = bloblist->AddBlob(btp::QED_Radiation); 140 onshellblob->SetTypeSpec("setting leptonson-shell");151 onshellblob->SetTypeSpec("setting_leptons_on-shell"); 141 152 if (sigblob->Has(blob_status::needs_extraQED)) 142 153 sigblob->UnsetStatus(blob_status::needs_extraQED); 143 154 for (Particle_Vector::iterator it=fslep.begin();it!=fslep.end();++it) { … … 178 189 sigblob->UnsetStatus(blob_status::needs_extraQED); 179 190 // build new QED radiation blob 180 191 Blob * QEDblob = bloblist->AddBlob(btp::QED_Radiation); 181 QEDblob->SetTypeSpec("YFS-type QED Corrections toME");192 QEDblob->SetTypeSpec("YFS-type_QED_Corrections_to_ME"); 182 193 for (Particle_Vector::iterator it=fslep.begin();it!=fslep.end();++it) { 183 194 // set info back to hard process, otherwise 184 195 // check for momentum conservation does not work