#include <AlphaT.h>
|
template<class T > |
| AlphaT (std::vector< T > const &p4, bool setDHtZero=false, bool use_et=true) |
|
template<class T > |
| AlphaT (std::vector< T const * > const &p4, bool setDHtZero=false, bool use_et=true) |
|
double | value (std::vector< bool > &jet_sign) const |
|
double | value (void) const |
|
|
double | value_ (std::vector< bool > *jet_sign) const |
|
Definition at line 8 of file AlphaT.h.
◆ AlphaT() [1/2]
template<class T >
AlphaT::AlphaT |
( |
std::vector< T const * > const & |
p4, |
|
|
bool |
setDHtZero = false , |
|
|
bool |
use_et = true |
|
) |
| |
◆ AlphaT() [2/2]
template<class T >
AlphaT::AlphaT |
( |
std::vector< T > const & |
p4, |
|
|
bool |
setDHtZero = false , |
|
|
bool |
use_et = true |
|
) |
| |
◆ value() [1/2]
double AlphaT::value |
( |
std::vector< bool > & |
jet_sign | ) |
const |
|
inline |
◆ value() [2/2]
double AlphaT::value |
( |
void |
| ) |
const |
|
inline |
◆ value_()
double AlphaT::value_ |
( |
std::vector< bool > * |
jet_sign | ) |
const |
|
private |
Definition at line 5 of file AlphaT.cc.
9 jet_sign->resize(
et_.size());
17 if (
et_.size() > (
unsigned int)std::numeric_limits<unsigned int>::digits)
22 const double sum_et = std::accumulate(
et_.begin(),
et_.end(), 0.);
23 const double sum_px = std::accumulate(
px_.begin(),
px_.end(), 0.);
24 const double sum_py = std::accumulate(
py_.begin(),
py_.end(), 0.);
27 double min_delta_sum_et = sum_et;
30 min_delta_sum_et = 0.;
32 for (
unsigned int i = 0;
i < (1
U << (
et_.size() - 1));
i++) {
33 double delta_sum_et = 0.;
34 for (
unsigned int j = 0;
j <
et_.size(); ++
j) {
36 delta_sum_et -=
et_[
j];
38 delta_sum_et +=
et_[
j];
40 delta_sum_et =
std::abs(delta_sum_et);
41 if (delta_sum_et < min_delta_sum_et) {
42 min_delta_sum_et = delta_sum_et;
44 for (
unsigned int j = 0;
j <
et_.size(); ++
j)
45 (*jet_sign)[
j] = ((
i & (1
U <<
j)) == 0);
51 return (0.5 * (sum_et - min_delta_sum_et) /
std::sqrt(sum_et * sum_et - (sum_px * sum_px + sum_py * sum_py)));
References funct::abs(), et_, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, SiStripPI::max, px_, py_, setDHtZero_, mathSSE::sqrt(), and mitigatedMETSequence_cff::U.
Referenced by value().
◆ et_
std::vector<double> AlphaT::et_ |
|
private |
◆ px_
std::vector<double> AlphaT::px_ |
|
private |
◆ py_
std::vector<double> AlphaT::py_ |
|
private |
◆ setDHtZero_