diff --git a/Models/Feynrules/python/ufo2peg/Model.h.template b/Models/Feynrules/python/ufo2peg/Model.h.template --- a/Models/Feynrules/python/ufo2peg/Model.h.template +++ b/Models/Feynrules/python/ufo2peg/Model.h.template @@ -1,150 +1,150 @@ // -*- C++ -*- // // ${ModelName}.h is a part of Herwig - A multi-purpose Monte Carlo event generator // Copyright (C) 2002-2013 The Herwig Collaboration // // Herwig is licenced under version 2 of the GPL, see COPYING for details. // Please respect the MCnet academic guidelines, see GUIDELINES for details. // #ifndef HERWIG_${ModelName}_H #define HERWIG_${ModelName}_H // This is the declaration of the ${ModelName} class. #include "Herwig/Models/General/BSMModel.h" ${couplings} namespace Herwig { using namespace ThePEG; using ThePEG::Constants::pi; const Complex ii = Complex(0,1); /** \ingroup Models * * This is the Herwig ${ModelName} class which inherits from ThePEG * FeynRules Model class and implements additional FeynRules Model couplings, * access to vertices for helicity amplitude calculations etc. * * @see BSMModel */ class ${ModelName}: public BSMModel { public: /// Default constructor ${ModelName}(); public: /** @name Functions used by the persistent I/O system. */ //@{ /** * Function used to write out object persistently. * @param os the persistent output stream written to. */ void persistentOutput(PersistentOStream & os) const; /** * Function used to read in object persistently. * @param is the persistent input stream read from. * @param version the version number of the object when written. */ void persistentInput(PersistentIStream & is, int version); //@} /** * Write out a UFO param_card.dat that matches the configured values */ void writeParamCard() const; /** * Standard Init function used to initialize the interfaces. */ static void Init(); protected: virtual bool registerDefaultVertices() const { return false; } public: /** * Pointers to the objects handling the vertices. */ //@{ ${getters} ${parmgetters} //@} protected: /** @name Clone Methods. */ //@{ /** * Make a simple clone of this object. * @return a pointer to the new object. */ virtual IBPtr clone() const; /** Make a clone of this object, possibly modifying the cloned object * to make it sane. * @return a pointer to the new object. */ virtual IBPtr fullclone() const; //@} protected: /** * Initialize this object after the setup phase before saving and * EventGenerator to disk. * @throws InitException if object could not be initialized properly. */ virtual void doinit(); /** * Initialize this object. Called in the run phase just before * a run begins. */ virtual void doinitrun(); //@} private: /** * Private and non-existent assignment operator. */ - ${ModelName} & operator=(const ${ModelName} &); + ${ModelName} & operator=(const ${ModelName} &) = delete; private: /** * Helper functions for doinit */ //@{ ${calcfunctions} //@} private: /** * Pointers to the vertices for ${ModelName} Model helicity amplitude * calculations. */ //@{ ${decls} ${parmdecls} //@} }; } namespace ThePEG { ThePEG_DECLARE_POINTERS(Herwig::${ModelName},Hw${ModelName}Ptr); } #endif /* HERWIG_${ModelName}_H */ diff --git a/Models/Feynrules/python/ufo2peg/Vertex_class.template b/Models/Feynrules/python/ufo2peg/Vertex_class.template --- a/Models/Feynrules/python/ufo2peg/Vertex_class.template +++ b/Models/Feynrules/python/ufo2peg/Vertex_class.template @@ -1,42 +1,42 @@ class ${ModelName}${classname}: public ${lorentztag}Vertex { public: ${ModelName}${classname}() { ${header} colourStructure(ColourStructure::${colourStructure}); ${addToPlist} } void setCoupling(Energy2 ${couplingptrs}) { ${symbolrefs} ${prepend} // getParams(q2); ${norm} ${left} ${right} ${append} } void persistentOutput(PersistentOStream & os) const { os << model_; } void persistentInput(PersistentIStream & is, int) { is >> model_; } // static void Init(); protected: IBPtr clone() const { return new_ptr(*this); } IBPtr fullclone() const { return new_ptr(*this); } void doinit() { model_ = dynamic_ptr_cast (generator()->standardModel()); assert(model_); // getParams(q2); ${parameters} ${couplingOrders} ${lorentztag}Vertex::doinit(); } // void getParams(Energy2); private: - ${ModelName}${classname} & operator=(const ${ModelName}${classname} &); + ${ModelName}${classname} & operator=(const ${ModelName}${classname} &) = delete; // Complex leftval, rightval, normval; tcHw${ModelName}Ptr model_; }; DescribeClass<${ModelName}${classname},Helicity::${lorentztag}Vertex> describeHerwig${ModelName}${classname}("Herwig::${ModelName}${classname}", "${ModelName}.so"); // void ${ModelName}${classname}::getParams(Energy2 ) { // }