ATLAS Offline Software
Loading...
Searching...
No Matches
powhegAnalysis.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// powhegAnalysis.h - (c) Silvia Ferrario Ravasio and Tomas Jezo
4// inspired by HepMCFile.h which is a part of ThePEG
5//
6#ifndef powhegAnalysis_H
7#define powhegAnalysis_H
8//
9// This is the declaration of the powhegAnalysis class.
10//
11#include <iostream>
12#include <fstream>
13#include "ThePEG/Handlers/AnalysisHandler.h"
14#include "ThePEG/Repository/CurrentGenerator.h"
15#include "ThePEG/Repository/EventGenerator.h"
17
18namespace ThePEG {
19
26class ATLAS_NOT_THREAD_SAFE powhegAnalysis: public AnalysisHandler {
27
28public:
29
32
36
42
43public:
44
47
64 virtual void analyze(tEventPtr event, long ieve, int loop, int state);
66
67public:
68
71
75 void persistentOutput(PersistentOStream & os) const;
76
82 void persistentInput(PersistentIStream & is, int version);
84
91 static void Init();
92
93protected:
94
97
101 virtual IBPtr clone() const;
102
107 virtual IBPtr fullclone() const;
109
110protected:
111
114
118 virtual void doinitrun();
119
124 virtual void dofinish();
126
127private:
128
133 static const ClassDescription<powhegAnalysis> m_initpowhegAnalysis;
134
140
141private:
142
151
156
161};
162
163}
164
165#include "ThePEG/Utilities/ClassTraits.h"
166
167namespace ThePEG {
168
170
173template <>
174struct BaseClassTrait<powhegAnalysis,1> {
176 typedef AnalysisHandler NthBase;
177};
178
181template <>
182struct ClassTraits<powhegAnalysis>
183 : public ClassTraitsBase<powhegAnalysis> {
185 static string className() { return "ThePEG::powhegAnalysis"; }
189 static string library() { return "powhegHerwigBB4L.so"; }
190};
191
193
194}
195
196#endif /* THEPEG_powhegAnalysis_H */
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
The powhegAnalysis class outputs ThePEG events in HepMC format.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual void doinitrun()
Initialize this object.
powhegAnalysis & operator=(const powhegAnalysis &)
The assignment operator is private and must never be called.
int m_unitchoice
Selector for the choice of units.
unsigned int m_geneventPrecision
Choice of output precision in GenEvent format.
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
int m_runNumber
The run number The number identifying the run.
powhegAnalysis(const powhegAnalysis &)
The copy constructor.
static const ClassDescription< powhegAnalysis > m_initpowhegAnalysis
The static object used to initialize the description of this class.
powhegAnalysis()
The default constructor.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual void dofinish()
Finalize this object.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
static void Init()
The standard Init function used to initialize the interfaces.