thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
RivetAnalysis.h
1// -*- C++ -*-
2#ifndef THEPEG_RivetAnalysis_H
3#define THEPEG_RivetAnalysis_H
4//
5// This is the declaration of the RivetAnalysis 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);
51
52public:
53
61
69
76 static void Init();
77
78protected:
79
86 virtual ThePEG::IBPtr clone() const;
87
92 virtual ThePEG::IBPtr fullclone() const;
94
95protected:
96
102 virtual void doinit();
103
108 virtual void doinitrun();
109
114 virtual void dofinish();
116
117private:
118
124
130
131private:
132
136 vector<string> _analyses;
137
141 vector<string> _preload;
142
146 vector<string> _paths;
147
151 string _filename;
152
156 bool _debug;
157
161 Rivet::AnalysisHandler * _rivet;
162
166 unsigned long _nevent;
167
172};
173
174}
175
176#endif /* THEPEG_RivetAnalysis_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.
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
Here is the documentation of the RivetAnalysis class.
Definition: RivetAnalysis.h:19
virtual void doinit()
Initialize this object.
unsigned long _nevent
Event count.
static void Init()
The standard Init function used to initialize the interfaces.
bool _debug
Enable debugging information from Rivet.
vector< string > _paths
Search paths for finding rivet analyses.
void persistentInput(ThePEG::PersistentIStream &is, int version)
Function used to read in object persistently.
virtual void analyze(ThePEG::tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
virtual ThePEG::IBPtr clone() const
Make a simple clone of this object.
vector< string > _analyses
The Analyses to use.
string _filename
The base name of the output file.
void persistentOutput(ThePEG::PersistentOStream &os) const
Function used to write out object persistently.
virtual void dofinish()
Finalize this object.
Rivet::AnalysisHandler * _rivet
The RivetAnalysisHandler.
bool _checkBeams
Disable beam check.
RivetAnalysis()
The default constructor.
RivetAnalysis & operator=(const RivetAnalysis &)=delete
The assignment operator is private and must never be called.
virtual void doinitrun()
Initialize this object.
virtual ThePEG::IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
static ThePEG::ClassDescription< RivetAnalysis > initRivetAnalysis
The static object used to initialize the description of this class.
vector< string > _preload
Yoda files to be preloaded.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28