Page MenuHomeHEPForge

YMerge.h
No OneTemporary

YMerge.h

// -*- C++ -*-
//
// YMerge.h is a part of Herwig++ - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2007 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_YMerge_H
#define HERWIG_YMerge_H
//
// This is the declaration of the YMerge class.
//
#include "Herwig++/Analysis2/Analysis2Base.h"
#include "YMerge.fh"
namespace Herwig {
using namespace ThePEG;
/**\ingroup Analysis2
*
* Analysis for jet merging scales,
* divided by visible energy from n+1 to n jets.
*
* @author Simon Plaetzer
*
* @see \ref YMergeInterfaces "The interfaces"
* defined for YMerge.
*/
class YMerge: public Analysis2Base {
public:
/** @name Standard constructors and destructors. */
//@{
/**
* The default constructor.
*/
inline YMerge();
/**
* The destructor.
*/
virtual ~YMerge();
//@}
public:
/**
* Analyze the given vector of particles. The default version calls
* analyze(tPPtr) for each of the particles.
* @param particles the vector of pointers to particles to be analyzed
*/
virtual void analyze(const tPVector & particles);
/**
* Insert options for a given n
*/
string Y (string);
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);
//@}
/**
* The standard Init function used to initialize the interfaces.
* Called exactly once for each class by the class description system
* before the main function starts or
* when this class is dynamically loaded.
*/
static void Init();
protected:
/** @name Clone Methods. */
//@{
/**
* Make a simple clone of this object.
* @return a pointer to the new object.
*/
inline 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.
*/
inline virtual IBPtr fullclone() const;
//@}
// If needed, insert declarations of virtual function defined in the
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
protected:
/** @name Standard Interfaced functions. */
//@{
/**
* Initialize this object after the setup phase before saving an
* EventGenerator to disk.
* @throws InitException if object could not be initialized properly.
*/
virtual void doinit() throw(InitException);
/**
* Finalize this object. Called in the run phase just after a
* run has ended. Used eg. to write out statistics.
*/
virtual void dofinish();
//@}
private:
/**
* The maximum n up to which rates should
* be booked (remember y_{n,n+1} !),
* starting from n=2
*/
unsigned int _nMax;
/**
* A vector of option strings, one for each n
* The convention is that element 0,1 are ignored,
* 2 gives options for y23, ...
*/
vector<string> _options;
/**
* Vector of the observable names
*/
vector<string> _yn;
/**
* The static object used to initialize the description of this class.
* Indicates that this is a concrete class with persistent data.
*/
static ClassDescription<YMerge> initYMerge;
/**
* The assignment operator is private and must never be called.
* In fact, it should not even be implemented.
*/
YMerge & operator=(const YMerge &);
};
}
#include "ThePEG/Utilities/ClassTraits.h"
namespace ThePEG {
/** @cond TRAITSPECIALIZATIONS */
/** This template specialization informs ThePEG about the
* base classes of YMerge. */
template <>
struct BaseClassTrait<Herwig::YMerge,1> {
/** Typedef of the first base class of YMerge. */
typedef Herwig::Analysis2Base NthBase;
};
/** This template specialization informs ThePEG about the name of
* the YMerge class and the shared object where it is defined. */
template <>
struct ClassTraits<Herwig::YMerge>
: public ClassTraitsBase<Herwig::YMerge> {
/** Return a platform-independent class name */
static string className() { return "Herwig::YMerge"; }
/**
* The name of a file containing the dynamic library where the class
* YMerge is implemented. It may also include several, space-separated,
* libraries if the class YMerge depends on other classes (base classes
* excepted). In this case the listed libraries will be dynamically
* linked in the order they are specified.
*/
static string library() { return "HwAnalysis2.so"; }
};
/** @endcond */
}
#include "YMerge.icc"
#ifndef ThePEG_TEMPLATES_IN_CC_FILE
// #include "YMerge.tcc"
#endif
#endif /* HERWIG_YMerge_H */

File Metadata

Mime Type
text/x-c++
Expires
Sat, May 3, 6:50 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4983152
Default Alt Text
YMerge.h (4 KB)

Event Timeline