ThePEG  1.8.0
SimpleDISCut.h
1 // -*- C++ -*-
2 //
3 // SimpleDISCut.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef THEPEG_SimpleDISCut_H
10 #define THEPEG_SimpleDISCut_H
11 //
12 // This is the declaration of the SimpleDISCut class.
13 //
14 
15 #include "ThePEG/Cuts/TwoCutBase.h"
16 
17 namespace ThePEG {
18 
27 class SimpleDISCut: public TwoCutBase {
28 
29 public:
30 
35  : theMinQ2(1.0*GeV2), theMaxQ2(100.0*GeV2),
36  theMinW2(100.0*GeV2), theMaxW2(1000000.0*GeV2), chargedCurrent(false) {}
37 
38 public:
39 
46  virtual Energy2 minSij(tcPDPtr pi, tcPDPtr pj) const;
47 
54  virtual Energy2 minTij(tcPDPtr pi, tcPDPtr po) const;
55 
61  virtual double minDeltaR(tcPDPtr pi, tcPDPtr pj) const;
62 
73  virtual Energy minKTClus(tcPDPtr pi, tcPDPtr pj) const;
74 
81  virtual double minDurham(tcPDPtr pi, tcPDPtr pj) const;
82 
89  virtual bool passCuts(tcCutsPtr parent, tcPDPtr pitype, tcPDPtr pjtype,
91  bool inci = false, bool incj = false) const;
93 
97  virtual void describe() const;
98 
99 protected:
100 
105  bool check(long idi, long ido) const;
106 
107 public:
108 
115  void persistentOutput(PersistentOStream & os) const;
116 
122  void persistentInput(PersistentIStream & is, int version);
124 
131  static void Init();
132 
133 protected:
134 
141  virtual IBPtr clone() const;
142 
147  virtual IBPtr fullclone() const;
149 
150 private:
151 
155  Energy2 maxMinQ2() const;
156 
160  Energy2 minMaxQ2() const;
161 
165  Energy2 maxMinW2() const;
166 
170  Energy2 minMaxW2() const;
171 
172 private:
173 
177  Energy2 theMinQ2;
178 
182  Energy2 theMaxQ2;
183 
187  Energy2 theMinW2;
188 
192  Energy2 theMaxW2;
193 
199 
200 private:
201 
207 
213 
214 };
215 
216 }
217 
218 #include "ThePEG/Utilities/ClassTraits.h"
219 
220 namespace ThePEG {
221 
226 template <>
227 struct BaseClassTrait<SimpleDISCut,1> {
229  typedef TwoCutBase NthBase;
230 };
231 
234 template <>
236  : public ClassTraitsBase<SimpleDISCut> {
238  static string className() { return "ThePEG::SimpleDISCut"; }
242  static string library() { return "SimpleDISCut.so"; }
243 };
244 
247 }
248 
249 #endif /* THEPEG_SimpleDISCut_H */
Energy2 theMinQ2
The minimum .
Definition: SimpleDISCut.h:177
PersistentIStream is used to read persistent objects from a stream where they were previously written...
virtual bool passCuts(tcCutsPtr parent, tcPDPtr pitype, tcPDPtr pjtype, LorentzMomentum pi, LorentzMomentum pj, bool inci=false, bool incj=false) const
Return true if a pair of particles with type pitype and pjtype and momenta pi and pj respectively pas...
static void Init()
The standard Init function used to initialize the interfaces.
bool chargedCurrent
If true the cut is applied to charged current events, otherwise it is applied to neutral current even...
Definition: SimpleDISCut.h:198
virtual Energy2 minSij(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed squared invariant mass of two outgoing partons of type pi and pj...
Energy2 maxMinW2() const
Helper function used by the interface.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
Energy2 theMaxW2
The maximum .
Definition: SimpleDISCut.h:192
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
Energy2 minMaxW2() const
Helper function used by the interface.
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:681
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
SimpleDISCut & operator=(const SimpleDISCut &)
The assignment operator is private and must never be called.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual IBPtr clone() const
Make a simple clone of this object.
QTY< 0, 1, 0 >::Type Energy
Energy.
Definition: Unitsystem.h:34
bool check(long idi, long ido) const
Check that the types of the incoming and outgoing particle types matches a DIS event.
Energy2 theMaxQ2
The maximum .
Definition: SimpleDISCut.h:182
This class corresponds to a kinematical cut to be made on a pair of particles in a hard sub-process...
Definition: TwoCutBase.h:35
virtual void describe() const
Describe the currently active cuts in the log file.
virtual double minDeltaR(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of of two outgoing partons of type pi and pj.
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual double minDurham(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of the Durham -algorithms distance measure.
static ClassDescription< SimpleDISCut > initSimpleDISCut
The static object used to initialize the description of this class.
Definition: SimpleDISCut.h:206
Energy2 minMaxQ2() const
Helper function used by the interface.
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
virtual Energy2 minTij(tcPDPtr pi, tcPDPtr po) const
Return the minimum allowed value of the negative of the squared invariant mass of an incoming parton ...
SimpleDISCut()
The default constructor.
Definition: SimpleDISCut.h:34
virtual Energy minKTClus(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of the longitudinally invariant -algorithms distance measure...
Energy2 theMinW2
The minimum .
Definition: SimpleDISCut.h:187
Energy2 maxMinQ2() const
Helper function used by the interface.
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52
SimpleDISCut inherits from TwoCutBase and omplements a simple cut on the a scattered lepton...
Definition: SimpleDISCut.h:27