55 #ifndef HYPERBINNING_HH 56 #define HYPERBINNING_HH 169 void createBranches (TTree* tree,
int* binNumber,
double* lowCorner,
double* highCorner, std::vector<int>** linkedBins)
const;
194 virtual bool addHyperVolume(
const HyperVolume& hyperVolume, std::vector<int> linkedVolumes = std::vector<int>(0, 0)) = 0;
206 virtual void load(TString
filename, TString option =
"READ") = 0;
212 virtual void save()
const;
virtual TString filename() const
bool isPrimaryVolume(int volumeNumber) const
HyperBinning()
The only constructor.
CachedVar< std::vector< int > > _hyperVolumeNumFromBinNum
void saveHyperVolumeToTree(TTree *tree, double *lowCorner, double *highCorner, const HyperVolume &hyperVolume) const
virtual void load(TString filename, TString option="READ")=0
int getHyperBinningDimFromTree(TTree *tree)
virtual void mergeBinnings(const BinningBase &other)
int followBinLinks(const HyperPoint &coords, int binNumber) const
virtual bool addHyperVolume(const HyperVolume &hyperVolume, std::vector< int > linkedVolumes=std::vector< int >(0, 0))=0
virtual BinningBase * clone() const =0
void updateMinMax() const
virtual void reserveCapacity(int nElements)
virtual HyperVolume getHyperVolume(int volumeNumber) const =0
virtual std::vector< int > getLinkedHyperVolumes(int volumeNumber) const =0
virtual int getNumHyperVolumes() const =0
virtual void addPrimaryVolumeNumber(int volumeNumber)=0
virtual std::vector< int > getPrimaryVolumeNumbers() const
virtual HyperPoint getAverageBinWidth() const
virtual HyperVolume getBinHyperVolume(int binNumber) const
void createBranches(TTree *tree, int *binNumber, double *lowCorner, double *highCorner, std::vector< int > **linkedBins) const
CachedVar< std::vector< int > > _binNum
virtual void save() const
void savePrimaryVolumeNumbers() const
void updateAverageBinWidth() const
virtual HyperCuboid getLimits() const
std::vector< int > getBinNumAlt(const HyperPointSet &coords) const
virtual int getNumPrimaryVolumes() const =0
CachedVar< HyperCuboid > _minmax
virtual int getNumBins() const
int getHyperVolumeNumber(int binNumber) const
virtual int getPrimaryVolumeNumber(int i) const =0
CachedVar< HyperPoint > _averageBinWidth
virtual void setDimension(int dim)
void updateBinNumbering() const
int getBinNum(int volumeNumber) const