Page MenuHomeHEPForge

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/Utilities/HerwigRun.h b/Utilities/HerwigRun.h
--- a/Utilities/HerwigRun.h
+++ b/Utilities/HerwigRun.h
@@ -1,69 +1,69 @@
#ifndef _HERWIG_RUN_H_
#define _HERWIG_RUN_H_
#include <ThePEG/Repository/EventGenerator.h>
#include <ThePEG/Persistency/PersistentIStream.h>
#include <ThePEG/PDT/StandardMatchers.h>
-#include <ThePEG/PDT/PYDECYDummy.h>
+#include <ThePEG/PDT/DummyDecayer.h>
#include <ThePEG/Utilities/Debug.h>
#include "Herwig++/Utilities/HwDebug.h"
#include <ThePEG/Utilities/Timer.h>
#include <ThePEG/Utilities/DynamicLoader.h>
#include <ThePEG/Utilities/Exception.h>
#include "Herwig++/Utilities/SmplHist.h"
#include <ThePEG/EventRecord/Event.h>
#include <ThePEG/Repository/Repository.h>
#include <iostream>
namespace Herwig {
/** \ingroup Utilities
*
* Some comment should be provided!
*/
class HerwigRun {
public:
enum RunStatus { UNKNOWN, INIT, READ, RUN };
private:
HerwigRun();
int N;
int ngen;
int seed;
std::string run;
std::string repo;
std::string repoin;
bool egCreated;
RunStatus Status;
ThePEG::EGPtr eg;
ThePEG::MainTimer timer;
bool isInitialized;
bool errorFlag;
ThePEG::EventPtr lastEvent;
public:
HerwigRun(int argc, char **argv);
~HerwigRun();
ThePEG::EGPtr eventGenerator();
ThePEG::EventPtr generateEvent();
std::string repositoryFile() const;
std::string repositoryInput() const;
std::string runName() const;
int getN() const;
int getNGen() const;
RunStatus status() const;
bool isRunMode() const;
bool isInitMode() const;
bool isReadMode() const;
static void printHelp(std::ostream &);
ThePEG::StepVector getSteps(ThePEG::EventPtr e = ThePEG::EventPtr());
ThePEG::tPVector getFinalState(int step = -1, ThePEG::EventPtr e = ThePEG::EventPtr());
bool preparedToRun();
ThePEG::ParticleSet getAllParticles(int step = -1, ThePEG::EventPtr e = ThePEG::EventPtr());
ThePEG::ParticleSet getIntermediates(int step = -1, ThePEG::EventPtr e = ThePEG::EventPtr());
ThePEG::ParticleSet getOutgoing(int step = -1, ThePEG::EventPtr e = ThePEG::EventPtr());
};
}
#endif
diff --git a/Utilities/SmplHist.h b/Utilities/SmplHist.h
--- a/Utilities/SmplHist.h
+++ b/Utilities/SmplHist.h
@@ -1,83 +1,83 @@
/*
* --- patched version!!!, see file 'libg-diffs' ---
*/
// This may look like C code, but it is really -*- C++ -*-
#ifndef SampleHistogram_h
#ifdef __GNUG__
#pragma interface
#endif
#define SampleHistogram_h 1
#include <iostream>
#include <fstream>
#include "SmplStat.h"
extern const int SampleHistogramMinimum;
extern const int SampleHistogramMaximum;
using namespace std;
/** \ingroup Utilities
*
* Copyright (C) 1988 Free Software Foundation
* written by Dirk Grunwald (grunwald@cs.uiuc.edu)
*
* This file is part of the GNU C++ Library. This library is free
* software; you can redistribute it and/or modify it under the terms of
* the GNU Library General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your
* option) any later version. This library is distributed in the hope
* that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Library General Public License for more details.
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
class SampleHistogram : public SampleStatistic {
protected:
short howManyBuckets;
int *bucketCount;
double *bucketLimit;
public:
SampleHistogram(double low, double hi, double bucketWidth = -1.0);
SampleHistogram(double loVals[], int size);
~SampleHistogram();
void reset();
void operator+=(double);
int similarSamples(double);
int buckets();
double bucketThreshold(int i);
int inBucket(int i);
void printBuckets(std::ostream&);
void printGnuplot(char* name);
void printMoments(char*,double,double,double,double);
};
-inline int SampleHistogram:: buckets() { return(howManyBuckets); };
+inline int SampleHistogram:: buckets() { return(howManyBuckets); }
inline double SampleHistogram:: bucketThreshold(int i) {
if (i < 0 || i >= howManyBuckets)
error("invalid bucket access");
return(bucketLimit[i]);
}
inline int SampleHistogram:: inBucket(int i) {
if (i < 0 || i >= howManyBuckets)
error("invalid bucket access");
return(bucketCount[i]);
}
#endif

File Metadata

Mime Type
text/x-diff
Expires
Tue, Sep 30, 5:49 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6566380
Default Alt Text
(4 KB)

Event Timeline