◆ TilingExtent() [1/2]
◆ TilingExtent() [2/2]
◆ _determine_rapidity_extent()
void _determine_rapidity_extent |
( |
const std::vector< PseudoJet > & |
particles | ) |
|
|
private |
6127 vector<double> counts(nbins, 0);
6128 _minrap = numeric_limits<double>::max();
6129 _maxrap = -numeric_limits<double>::max();
6131 for (
unsigned i = 0; i <
particles.size(); i++) {
6136 ibin = int(rap+nrap);
6137 if (ibin < 0) ibin = 0;
6138 if (ibin >= nbins) ibin = nbins - 1;
6141 double max_in_bin = 0;
6142 for (ibin = 0; ibin < nbins; ibin++) {
6143 if (max_in_bin < counts[ibin]) max_in_bin = counts[ibin];
6145 const double allowed_max_fraction = 0.25;
6146 const double min_multiplicity = 4;
6147 double allowed_max_cumul = floor(max(max_in_bin * allowed_max_fraction, min_multiplicity));
6148 if (allowed_max_cumul > max_in_bin) allowed_max_cumul = max_in_bin;
6149 double cumul_lo = 0;
6151 for (ibin = 0; ibin < nbins; ibin++) {
6152 cumul_lo += counts[ibin];
6153 if (cumul_lo >= allowed_max_cumul) {
6154 double y = ibin-nrap;
6159 assert(ibin != nbins);
6162 double cumul_hi = 0;
6163 for (ibin = nbins-1; ibin >= 0; ibin--) {
6164 cumul_hi += counts[ibin];
6165 if (cumul_hi >= allowed_max_cumul) {
6166 double y = ibin-nrap+1;
6173 assert(ibin_hi >= ibin_lo);
6174 if (ibin_hi == ibin_lo) {
6175 _cumul2 = pow(
double(cumul_lo + cumul_hi - counts[ibin_hi]), 2);
6178 for (ibin = ibin_lo+1; ibin < ibin_hi; ibin++) {
6179 _cumul2 += counts[ibin]*counts[ibin];
◆ maxrap()
◆ minrap()
◆ sum_of_binned_squared_multiplicity()
double sum_of_binned_squared_multiplicity |
( |
| ) |
const |
|
inline |
◆ _cumul2
◆ _maxrap
◆ _minrap
The documentation for this class was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/JetObservables/src/fjcore.cc