Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:21

0001 // -*- C++ -*-
0002 #ifndef Herwig_MultiPartonExtractor_H
0003 #define Herwig_MultiPartonExtractor_H
0004 //
0005 // This is the declaration of the MultiPartonExtractor class.
0006 //
0007 
0008 #include "ThePEG/PDF/PartonExtractor.h"
0009 #include <deque>
0010 
0011 namespace Herwig {
0012 
0013 using namespace ThePEG;
0014 
0015 /**
0016  * The MultiPartonExtractor class inherits from the PartonExtractor of ThePEG
0017  * but allows more control over the PDFs used in the case that there are multiple
0018  * stages of parton extraction
0019  *
0020  * @see \ref MultiPartonExtractorInterfaces "The interfaces"
0021  * defined for MultiPartonExtractor.
0022  */
0023 class MultiPartonExtractor: public PartonExtractor {
0024 
0025 public:
0026 
0027   /**
0028    * The default constructor.
0029    */
0030   MultiPartonExtractor() {};
0031 
0032   /**
0033    * Return a vector of possible pairs of parton bins which can be
0034    * produced within a given maximum total particle-particle
0035    * invariant mass squared, \a maxEnergy sBin.
0036    */
0037   virtual PartonPairVec getPartons(Energy maxEnergy, const cPDPair &,
0038                    const Cuts &) const;
0039 
0040 public:
0041 
0042   /** @name Functions used by the persistent I/O system. */
0043   //@{
0044   /**
0045    * Function used to write out object persistently.
0046    * @param os the persistent output stream written to.
0047    */
0048   void persistentOutput(PersistentOStream & os) const;
0049 
0050   /**
0051    * Function used to read in object persistently.
0052    * @param is the persistent input stream read from.
0053    * @param version the version number of the object when written.
0054    */
0055   void persistentInput(PersistentIStream & is, int version);
0056   //@}
0057 
0058   /**
0059    * The standard Init function used to initialize the interfaces.
0060    * Called exactly once for each class by the class description system
0061    * before the main function starts or
0062    * when this class is dynamically loaded.
0063    */
0064   static void Init();
0065   
0066 protected:
0067 
0068   /**
0069    * Add parton bins to pbins for the given incoming particle and the
0070    * specified cuts.
0071    */
0072   virtual void addPartons(tPBPtr incoming ,const PDFCuts & cuts,
0073               std::deque<tcPDFPtr> pdf ,PartonVector & pbins) const;
0074 protected:
0075 
0076   /** @name Clone Methods. */
0077   //@{
0078   /**
0079    * Make a simple clone of this object.
0080    * @return a pointer to the new object.
0081    */
0082   virtual IBPtr clone() const;
0083 
0084   /** Make a clone of this object, possibly modifying the cloned object
0085    * to make it sane.
0086    * @return a pointer to the new object.
0087    */
0088   virtual IBPtr fullclone() const;
0089   //@}
0090 
0091 private:
0092 
0093   /**
0094    * The assignment operator is private and must never be called.
0095    * In fact, it should not even be implemented.
0096    */
0097   MultiPartonExtractor & operator=(const MultiPartonExtractor &) = delete;
0098 
0099 
0100   /**
0101    *  PDFBase object to override  first PDF
0102    */
0103   vector<PDFPtr> firstPDF_;
0104 
0105   /**
0106    *  PDFBase object to override second PDF
0107    */
0108   vector<PDFPtr> secondPDF_;
0109   
0110 };
0111 
0112 }
0113 
0114 #endif /* Herwig_MultiPartonExtractor_H */