/usr/include/root/Fit/SparseData.h is in libroot-math-mathcore-dev 5.34.19+dfsg-1.2.
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 | // @(#)root/mathcore:$Id$
// Author: David Gonzalez Maline Wed Aug 28 15:23:43 2009
/**********************************************************************
* *
* Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
* *
* *
**********************************************************************/
// Header file for class SparseData
#ifndef ROOT_Fit_SparseData
#define ROOT_Fit_SparseData
#include <vector>
#ifndef ROOT_Fit_DataVector
#include "Fit/DataVector.h"
#endif
#ifndef ROOT_Fit_BinData
#include "Fit/BinData.h"
#endif
namespace ROOT {
namespace Fit {
// This is a proxy to a list<Box>
class ProxyListBox;
class SparseData : public FitData {
public:
//Constructor with a vector
SparseData(std::vector<double>& min, std::vector<double>& max);
//Constructor with a dimension and two arrays
SparseData(const unsigned int dim, double min[], double max[]);
//Destructor
~SparseData();
//Returns the number of points stored
unsigned int NPoints() const;
//Returns the dimension of the object (bins)
unsigned int NDim() const;
// Adds a new bin specified by the vectors
void Add(std::vector<double>& min, std::vector<double>& max,
const double content, const double error = 1.0);
void GetPoint(const unsigned int i,
std::vector<double>& min, std::vector<double>&max,
double& content, double& error);
// Debug method to print the list of bins stored
void PrintList() const;
// Transforms the data into a ROOT::Fit::BinData structure
void GetBinData(BinData&) const;
// Same as before, but with integral format
void GetBinDataIntegral(BinData&) const;
// Same as before, but including zero content bins
void GetBinDataNoZeros(BinData&) const;
private :
ProxyListBox *fList;
};
} // end namespace Fit
} // end namespace ROOT
#endif /* ROOT_Fit_SparseData */
|