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 #214: exotic_remnant_1.patch

File exotic_remnant_1.patch, 3.6 KB (added by Stefan Hoeche, 13 years ago)
  • SHERPA/Initialization/Initialization_Handler.C

     
    341341  okay = okay && InitializeThePDFs();
    342342  if (!p_model->ModelInit(m_isrhandlers))
    343343    THROW(critical_error,"Model cannot be initialized");
     344  okay = okay && p_beamspectra->Init();
    344345  p_model->InitializeInteractionModel();
    345346  okay = okay && InitializeTheAnalyses();
    346347  if (!CheckBeamISRConsistency()) return 0.;
  • BEAM/Main/Beam_Base.C

     
    1111  m_energy(_energy), m_polarisation(_polarisation),
    1212  m_x(1.), m_Q2(0.), m_weight(1.)
    1313{
    14   double disc      =  1.-ATOOLS::sqr(m_beam.Mass()/m_energy);
     14  Init();
     15}
     16
     17bool Beam_Base::Init(int mode)
     18{
     19  double disc      =  mode?1.0:1.0-ATOOLS::sqr(m_beam.Mass()/m_energy);
    1520  if (disc<0) {
    1621    msg_Error()<<"Error in Beam_Base :"<<m_type<<std::endl
    1722                       <<"   Mismatch of energy and mass of beam particle : "
     
    1924                       <<"   Will lead to termination of program."<<std::endl;
    2025    abort();
    2126  }
    22   m_lab    = ATOOLS::Vec4D(m_energy,0.,0.,_dir*m_energy*sqrt(disc));
    23   m_vecout = ATOOLS::Vec4D(m_energy,0.,0.,_dir*m_energy*sqrt(disc));
     27  m_lab    = ATOOLS::Vec4D(m_energy,0.,0.,m_dir*m_energy*sqrt(disc));
     28  m_vecout = ATOOLS::Vec4D(m_energy,0.,0.,m_dir*m_energy*sqrt(disc));
     29  return true;
    2430}
    2531
    2632Beam_Base::~Beam_Base()
  • BEAM/Main/Beam_Spectra_Handler.C

     
    4646  if (p_BeamBase) { delete [] p_BeamBase; p_BeamBase = NULL; }
    4747}
    4848
     49bool Beam_Spectra_Handler::Init()
     50{
     51  bool init(p_BeamBase[0]->Init());
     52  if (!p_BeamBase[1]->Init()) init=false;
     53  return init;
     54}
    4955
    5056bool Beam_Spectra_Handler::SpecifySpectra(Data_Reader * dataread)
    5157{
  • BEAM/Main/Beam_Base.H

     
    5151
    5252    virtual ~Beam_Base();
    5353
     54    virtual bool Init(int mode=0);
     55
    5456    virtual Beam_Base * Copy()                                     = 0;
    5557    virtual bool        CalculateWeight(const double,const double) = 0;
    5658
  • BEAM/Main/Beam_Spectra_Handler.H

     
    4242    Beam_Spectra_Handler(ATOOLS::Data_Reader *);
    4343    ~Beam_Spectra_Handler();
    4444   
     45    bool   Init();
    4546    void   Output();
    4647    bool   CheckConsistency(ATOOLS::Flavour *,ATOOLS::Flavour *);
    4748    bool   CheckConsistency(ATOOLS::Flavour *);
  • PDF/Remnant/Remnant_Base.C

     
    6464  m_pzrem=(p_beam->OutMomentum()+
    6565           p_partner->p_beam->OutMomentum())[3];
    6666  if ((p_last[1]==NULL || p_last[0]==NULL) &&
    67       (Type()==rtp::electron || p_partner->Type()==rtp::electron)) return true;
     67      (Type()==rtp::electron || p_partner->Type()==rtp::electron ||
     68       Type()==rtp::intact || p_partner->Type()==rtp::intact)) return true;
    6869  for (size_t i=0;i<2;++i) {
    6970    ATOOLS::Blob *cur=p_beamblob;
    7071    if (i==1) cur=p_partner->p_beamblob;