32 #ifndef HYPERHISTOGRAM_HH 33 #define HYPERHISTOGRAM_HH 87 HyperHistogram(TString targetFilename, std::vector<TString> filename);
104 void merge( TString filenameother );
112 void project(TH1D* histogram,
const HyperCuboid& cuboid,
double content,
int dimension)
const;
113 void project(TH1D* histogram,
const HyperVolume& hyperVolume,
double content,
int dimension)
const;
114 TH1D
project(
int dim = 0,
int bins = 100, TString name =
"projection")
const;
116 void drawProjection (TString path,
int dim = 0,
int bins = 100)
const;
125 std::vector<HyperHistogram>
slice(std::vector<int> sliceDims,
const HyperPointSet& slicePoints)
const;
127 void draw2DSlice (TString path,
int sliceDimX,
int sliceDimY,
const HyperPoint& slicePoint, TString options =
"")
const;
128 void draw2DSliceSet(TString path,
int sliceDimX,
int sliceDimY,
int sliceSetDim,
int nSlices,
const HyperPoint& slicePoint, TString options =
"")
const;
129 void draw2DSliceSet(TString path,
int sliceDimX,
int sliceDimY,
int nSlices,
const HyperPoint& slicePoint, TString options =
"")
const;
131 void drawRandom2DSlice(TString path, TRandom* random = gRandom, TString options =
"")
const;
145 void save(TString filename);
149 void load (TString filename, TString option =
"MEMRES READ");
150 void loadEmpty(TString filename, TString option =
"MEMRES READ", TString binningType =
"HyperBinning");
157 void saveToTxtFile(TString filename,
bool incError =
true)
const;
161 void draw(TString path, TString options =
"");
162 void drawDensity(TString path, TString options =
"");
void loadEmpty(TString filename, TString option="MEMRES READ", TString binningType="HyperBinning")
void draw(TString path, TString options="")
void drawDensity(TString path, TString options="")
virtual void merge(const HistogramBase &other)
void mergeBinsWithSameContent()
void draw2DSliceSet(TString path, int sliceDimX, int sliceDimY, int sliceSetDim, int nSlices, const HyperPoint &slicePoint, TString options="") const
void drawRandom2DSlice(TString path, TRandom *random=gRandom, TString options="") const
void drawProjection(TString path, int dim=0, int bins=100) const
void draw2DSlice(TString path, int sliceDimX, int sliceDimY, const HyperPoint &slicePoint, TString options="") const
HyperHistogram & operator=(const HyperHistogram &other)
void drawAllProjections(TString path, int bins) const
void setNames(HyperName names)
int fill(const HyperPoint &coords, double weight)
HyperCuboid getLimits() const
void setContentsFromFunc(const HyperFunction &func)
void project(TH1D *histogram, const HyperCuboid &cuboid, double content, int dimension) const
virtual double getVal(const HyperPoint &point) const
int estimateCapacity(std::vector< TString > filename, TString binningType)
virtual ~HyperHistogram()
const BinningBase & getBinning() const
void save(TString filename)
void compareProjection(TString path, int dim, const HyperHistogram &other, int bins=100) const
void load(TString filename, TString option="MEMRES READ")
virtual double getBinVolume(int bin) const
HyperName getNames() const
void saveToTxtFileNoLinks(TString filename, bool incError=true) const
void compareAllProjections(TString path, const HyperHistogram &other, int bins=100) const
TString getBinningType(TString filename)
HyperHistogram slice(std::vector< int > sliceDims, const HyperPoint &slicePoint) const
void saveToTxtFile(TString filename, bool incError=true) const