/usr/include/ThePEG/Analysis/LWH/AIHistogram1D.h is in libthepeg-dev 1.8.0-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | // -*- C++ -*-
//
// AIHistogram1D.h is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 1999-2011 Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef LWH_AIHistorgram1D_H
#define LWH_AIHistorgram1D_H
#ifndef LWH_USING_AIDA
/** @cond DONT_DOCUMENT_STRIPPED_DOWN_AIDA_INTERFACES */
namespace AIDA {
class IAnnotation;
class IBaseHistogram {
public:
virtual ~IBaseHistogram() {}
virtual std::string title() const = 0;
virtual bool setTitle(const std::string & title) = 0;
virtual int dimension() const = 0;
virtual bool reset() = 0;
virtual int entries() const = 0;
};
class IHistogram : virtual public IBaseHistogram {
public:
virtual ~IHistogram() {}
virtual int allEntries() const = 0;
virtual int extraEntries() const = 0;
virtual double equivalentBinEntries() const = 0;
virtual double sumBinHeights() const = 0;
virtual double sumAllBinHeights() const = 0;
virtual double sumExtraBinHeights() const = 0;
virtual double minBinHeight() const = 0;
virtual double maxBinHeight() const = 0;
};
class IAxis;
class IHistogram1D: virtual public IHistogram {
public:
virtual ~IHistogram1D() {}
virtual bool fill(double x, double weight = 1.) = 0;
virtual double binMean(int index) const = 0;
virtual int binEntries(int index) const = 0;
virtual double binHeight(int index) const = 0;
virtual double binError(int index) const = 0;
virtual double mean() const = 0;
virtual double rms() const = 0;
virtual const IAxis & axis() const = 0;
virtual int coordToIndex(double coord) const = 0;
virtual bool add(const IHistogram1D & hist) = 0;
virtual bool scale(double scaleFactor) = 0;
};
}
/** @endcond */
#else
#include "AIDA/IHistogram1D.h"
#endif
#endif /* LWH_AIHistorgram1D_H */
|