thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
NLORivetAnalysis.h
1// -*- C++ -*-
2#ifndef THEPEG_NLORivetAnalysis_H
3#define THEPEG_NLORivetAnalysis_H
4//
5// This is the declaration of the NLORivetAnalysis class.
6//
7
8#include "ThePEG/Handlers/AnalysisHandler.h"
9#include "Rivet/AnalysisHandler.hh"
10
11namespace ThePEG {
12
20
21public:
22
27
28public:
29
49 virtual void analyze(ThePEG::tEventPtr event, long ieve, int loop, int state);
50
52
53public:
54
62
70
77 static void Init();
78
79protected:
80
87 virtual ThePEG::IBPtr clone() const;
88
93 virtual ThePEG::IBPtr fullclone() const;
95
96protected:
97
103 virtual void doinit();
104
109 virtual void doinitrun();
110
115 virtual void dofinish();
117
118private:
119
125
131
132private:
137
142
146 vector<string> _analyses;
147
151 string filename;
152
156 bool debug;
157
161 Rivet::AnalysisHandler * _rivet;
162
166 unsigned long _nevent;
167};
168
169}
170
171#include "ThePEG/Utilities/ClassTraits.h"
172
173namespace ThePEG {
174
179template <>
180struct BaseClassTrait<NLORivetAnalysis,1> {
182 typedef AnalysisHandler NthBase;
183};
184
187template <>
188struct ClassTraits<NLORivetAnalysis>
189 : public ClassTraitsBase<NLORivetAnalysis> {
191 static string className() { return "ThePEG::NLORivetAnalysis"; }
199 static string library() { return "RivetAnalysis.so"; }
200};
201
204}
205
206#endif /* THEPEG_NLORivetAnalysis_H */
The AnalysisHandler is the base class of all analysis objects which may be handled by the FullEventGe...
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
InitState state() const
Return the state of initialization of this object.
Here is the documentation of the NLORivetAnalysis class.
virtual void doinit()
Initialize this object.
int _unitchoice
Selector for the choice of units.
unsigned long _nevent
Event count.
bool debug
Enable debugging information from NLORivet.
virtual void doinitrun()
Initialize this object.
vector< string > _analyses
The Analyses to use.
static ThePEG::ClassDescription< NLORivetAnalysis > initNLORivetAnalysis
The static object used to initialize the description of this class.
string filename
The base name of the output file.
NLORivetAnalysis()
The default constructor.
NLORivetAnalysis & operator=(const NLORivetAnalysis &)=delete
The assignment operator is private and must never be called.
Rivet::AnalysisHandler * _rivet
The NLORivetAnalysisHandler.
virtual void analyze(ThePEG::tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
virtual void dofinish()
Finalize this object.
virtual ThePEG::IBPtr clone() const
Make a simple clone of this object.
void persistentOutput(ThePEG::PersistentOStream &os) const
Function used to write out object persistently.
virtual ThePEG::IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
long _remnantId
The PDG ID to be used for remnants.
static void Init()
The standard Init function used to initialize the interfaces.
void persistentInput(ThePEG::PersistentIStream &is, int version)
Function used to read in object persistently.
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
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition: RCPtr.h:519
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