Ticket #214: exotic_remnant_1.patch
File exotic_remnant_1.patch, 3.6 KB (added by , 13 years ago) |
---|
-
SHERPA/Initialization/Initialization_Handler.C
341 341 okay = okay && InitializeThePDFs(); 342 342 if (!p_model->ModelInit(m_isrhandlers)) 343 343 THROW(critical_error,"Model cannot be initialized"); 344 okay = okay && p_beamspectra->Init(); 344 345 p_model->InitializeInteractionModel(); 345 346 okay = okay && InitializeTheAnalyses(); 346 347 if (!CheckBeamISRConsistency()) return 0.; -
BEAM/Main/Beam_Base.C
11 11 m_energy(_energy), m_polarisation(_polarisation), 12 12 m_x(1.), m_Q2(0.), m_weight(1.) 13 13 { 14 double disc = 1.-ATOOLS::sqr(m_beam.Mass()/m_energy); 14 Init(); 15 } 16 17 bool Beam_Base::Init(int mode) 18 { 19 double disc = mode?1.0:1.0-ATOOLS::sqr(m_beam.Mass()/m_energy); 15 20 if (disc<0) { 16 21 msg_Error()<<"Error in Beam_Base :"<<m_type<<std::endl 17 22 <<" Mismatch of energy and mass of beam particle : " … … 19 24 <<" Will lead to termination of program."<<std::endl; 20 25 abort(); 21 26 } 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; 24 30 } 25 31 26 32 Beam_Base::~Beam_Base() -
BEAM/Main/Beam_Spectra_Handler.C
46 46 if (p_BeamBase) { delete [] p_BeamBase; p_BeamBase = NULL; } 47 47 } 48 48 49 bool Beam_Spectra_Handler::Init() 50 { 51 bool init(p_BeamBase[0]->Init()); 52 if (!p_BeamBase[1]->Init()) init=false; 53 return init; 54 } 49 55 50 56 bool Beam_Spectra_Handler::SpecifySpectra(Data_Reader * dataread) 51 57 { -
BEAM/Main/Beam_Base.H
51 51 52 52 virtual ~Beam_Base(); 53 53 54 virtual bool Init(int mode=0); 55 54 56 virtual Beam_Base * Copy() = 0; 55 57 virtual bool CalculateWeight(const double,const double) = 0; 56 58 -
BEAM/Main/Beam_Spectra_Handler.H
42 42 Beam_Spectra_Handler(ATOOLS::Data_Reader *); 43 43 ~Beam_Spectra_Handler(); 44 44 45 bool Init(); 45 46 void Output(); 46 47 bool CheckConsistency(ATOOLS::Flavour *,ATOOLS::Flavour *); 47 48 bool CheckConsistency(ATOOLS::Flavour *); -
PDF/Remnant/Remnant_Base.C
64 64 m_pzrem=(p_beam->OutMomentum()+ 65 65 p_partner->p_beam->OutMomentum())[3]; 66 66 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; 68 69 for (size_t i=0;i<2;++i) { 69 70 ATOOLS::Blob *cur=p_beamblob; 70 71 if (i==1) cur=p_partner->p_beamblob;