|
|
|||
File indexing completed on 2026-08-06 09:23:57
0001 // -*- C++ -*- 0002 #ifndef HERWIG_DrellYanPT_H 0003 #define HERWIG_DrellYanPT_H 0004 // 0005 // This is the declaration of the DrellYanPT class. 0006 // 0007 0008 #include "ThePEG/Handlers/AnalysisHandler.h" 0009 0010 #include "Herwig/Utilities/Histogram.h" 0011 0012 namespace Herwig { 0013 0014 using namespace ThePEG; 0015 0016 /** \ingroup Analysis 0017 * 0018 * This AnalysisHandler books histograms 0019 * of the weak boson's pt in Drell-Yan 0020 * processes. 0021 * 0022 * An Interface switch allows you to choose 0023 * between output of the histograms 0024 * as TopDraw or plain ASCII files, which 0025 * may be processed further, e.g. by gnuplot. 0026 * 0027 * @see \ref DrellYanPTInterfaces "The interfaces" 0028 * defined for DrellYanPT. 0029 */ 0030 class DrellYanPT: public AnalysisHandler { 0031 0032 public: 0033 0034 /** 0035 * The default constructor. 0036 */ 0037 DrellYanPT(); 0038 0039 /** @name Virtual functions required by the AnalysisHandler class. */ 0040 //@{ 0041 /** 0042 * Analyze a given Event. Note that a fully generated event 0043 * may be presented several times, if it has been manipulated in 0044 * between. The default version of this function will call transform 0045 * to make a lorentz transformation of the whole event, then extract 0046 * all final state particles and call analyze(tPVector) of this 0047 * analysis object and those of all associated analysis objects. The 0048 * default version will not, however, do anything on events which 0049 * have not been fully generated, or have been manipulated in any 0050 * way. 0051 * @param event pointer to the Event to be analyzed. 0052 * @param ieve the event number. 0053 * @param loop the number of times this event has been presented. 0054 * If negative the event is now fully generated. 0055 * @param state a number different from zero if the event has been 0056 * manipulated in some way since it was last presented. 0057 */ 0058 virtual void analyze(tEventPtr event, long ieve, int loop, int state); 0059 //@} 0060 0061 public: 0062 0063 /** 0064 * The standard Init function used to initialize the interfaces. 0065 * Called exactly once for each class by the class description system 0066 * before the main function starts or 0067 * when this class is dynamically loaded. 0068 */ 0069 static void Init(); 0070 0071 protected: 0072 0073 /** @name Clone Methods. */ 0074 //@{ 0075 /** 0076 * Make a simple clone of this object. 0077 * @return a pointer to the new object. 0078 */ 0079 virtual IBPtr clone() const {return new_ptr(*this);} 0080 0081 /** Make a clone of this object, possibly modifying the cloned object 0082 * to make it sane. 0083 * @return a pointer to the new object. 0084 */ 0085 virtual IBPtr fullclone() const {return new_ptr(*this);} 0086 //@} 0087 0088 protected: 0089 0090 /** @name Standard Interfaced functions. */ 0091 //@{ 0092 0093 /** 0094 * Finalize this object. Called in the run phase just after a 0095 * run has ended. Used eg. to write out statistics. 0096 */ 0097 virtual void dofinish(); 0098 //@} 0099 0100 private: 0101 0102 /** 0103 * Histogram of the Z's pt 0104 */ 0105 Histogram _Zpt; 0106 0107 /** 0108 * Histogram of the W+'s pt 0109 */ 0110 Histogram _Wppt; 0111 0112 /** 0113 * Histogram of the W-'s pt 0114 */ 0115 Histogram _Wmpt; 0116 0117 /** 0118 * The assignment operator is private and must never be called. 0119 * In fact, it should not even be implemented. 0120 */ 0121 DrellYanPT & operator=(const DrellYanPT &) = delete; 0122 0123 }; 0124 0125 } 0126 0127 #endif /* HERWIG_DrellYanPT_H */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|