thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
KTClus.h
1// -*- C++ -*-
2//
3// KTClus.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef THEPEG_KTClus_H
10#define THEPEG_KTClus_H
11//
12// This is the declaration of the KTClus class.
13//
14
15#include "ThePEG/Cuts/TwoCutBase.h"
16
17namespace ThePEG {
18
28class KTClus: public TwoCutBase {
29
30public:
31
37 KTClus() : theCut(10.0*GeV), onlyJets(true) {}
39
40public:
41
54 virtual Energy minKTClus(tcPDPtr pi, tcPDPtr pj) const;
55
60 virtual Energy2 minSij(tcPDPtr pi, tcPDPtr pj) const;
61
67 virtual Energy2 minTij(tcPDPtr pi, tcPDPtr po) const;
68
74 virtual double minDeltaR(tcPDPtr pi, tcPDPtr pj) const;
75
82 virtual double minDurham(tcPDPtr pi, tcPDPtr pj) const;
83
90 virtual bool passCuts(tcCutsPtr parent, tcPDPtr pitype, tcPDPtr pjtype,
92 bool inci = false, bool incj = false) const;
94
98 virtual void describe() const;
99
100public:
101
109
115 void persistentInput(PersistentIStream & is, int version);
117
124 static void Init();
125
126protected:
127
134 virtual IBPtr clone() const;
135
140 virtual IBPtr fullclone() const;
142
143private:
144
150
155
156private:
157
163
168 KTClus & operator=(const KTClus &) = delete;
169
170};
171
172}
173
174#include "ThePEG/Utilities/ClassTraits.h"
175
176namespace ThePEG {
177
182template <>
183struct BaseClassTrait<KTClus,1> {
185 typedef TwoCutBase NthBase;
186};
187
190template <>
191struct ClassTraits<KTClus>
192 : public ClassTraitsBase<KTClus> {
194 static string className() { return "ThePEG::KTClus"; }
198 static string library() { return "KTClus.so"; }
199};
200
203}
204
205#endif /* THEPEG_KTClus_H */
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
This clas implements the cuts relevant for the -measure in the longitudinally invariant kt-algorithm.
Definition: KTClus.h:28
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual Energy minKTClus(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of the longitudinally invariant -algorithms distance measure.
virtual void describe() const
Describe the currently active cuts in the log file.
KTClus & operator=(const KTClus &)=delete
The assignment operator is private and must never be called.
static void Init()
The standard Init function used to initialize the interfaces.
bool onlyJets
If true, only apply the cut to pairs of coloured particles.
Definition: KTClus.h:154
Energy theCut
The minimum allowed value of the longitudinally invariant -algorithms distance measure.
Definition: KTClus.h:149
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...
virtual double minDurham(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of the Durham -algorithms distance measure.
KTClus()
The default constructor.
Definition: KTClus.h:37
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual Energy2 minSij(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed squared invariant mass of two outgoing partons of type pi and pj.
virtual IBPtr clone() const
Make a simple clone of this object.
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 ...
static ClassDescription< KTClus > initKTClus
The static object used to initialize the description of this class.
Definition: KTClus.h:162
virtual double minDeltaR(tcPDPtr pi, tcPDPtr pj) const
Return the minimum allowed value of of two outgoing partons of type pi and pj.
PersistentIStream is used to read persistent objects from a stream where they were previously written...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:696
This class corresponds to a kinematical cut to be made on a pair of particles in a hard sub-process.
Definition: TwoCutBase.h:35
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition: ClassTraits.h:161
static string className()
Return the name of class T.
Definition: ClassTraits.h:66
static string library()
The name of a file containing the dynamic library where the class T is implemented.
Definition: ClassTraits.h:85