Aktuelle Stand
This commit is contained in:
@@ -27,31 +27,31 @@ public:
|
||||
data.resize(numberZBins,numberEBins+2); // Under and Overflow Bins
|
||||
data = 0;
|
||||
|
||||
ZBinWidth = wgtsLength/numberZBins;
|
||||
ZBinWidth = wgtsLength_m/numberZBins;
|
||||
EBinWidth = (maxEBin-minEBin)/numberEBins;
|
||||
|
||||
ZBinBoarders.resize(numberZBins+1);
|
||||
ZBinBoarders_m.resize(numberZBins+1);
|
||||
for (int i=0;i<numberZBins+1;i++) {
|
||||
ZBinBoarders[i] = ZBinWidth*i; //More fancy with blitz functions?
|
||||
ZBinBoarders_m[i] = ZBinWidth*i; //More fancy with blitz functions?
|
||||
}
|
||||
|
||||
EBinBoarders.resize(numberEBins+3);
|
||||
EBinBoarders_eV.resize(numberEBins+3);
|
||||
for (int i=0;i<numberEBins+1;i++) {
|
||||
EBinBoarders[i+1] = minEBin + i*EBinWidth; //More fancy with blitz functions?
|
||||
EBinBoarders_eV[i+1] = minEBin + i*EBinWidth; //More fancy with blitz functions?
|
||||
}
|
||||
};
|
||||
|
||||
int getZBin(double z);
|
||||
int getZBin(double z_m);
|
||||
|
||||
int getEBin(double E);
|
||||
int getEBin(double E_eV);
|
||||
|
||||
void addContent(double zLow, double zUp, double Energy);
|
||||
void addContent(double zLow_m, double zUp_m, double Energy_eV);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
double ZBinWidth, EBinWidth;
|
||||
blitz::Array <double,1> ZBinBoarders, EBinBoarders;
|
||||
blitz::Array <double,1> ZBinBoarders_m, EBinBoarders_eV;
|
||||
|
||||
blitz::Array<int,2> data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user