9 EtaPtBin::EtaPtBin (
const bool& etaActive_ ,
const double& etaMin_ ,
const double& etaMax_ ,
10 const bool& ptActive_ ,
const double& ptMin_ ,
const double& ptMax_ )
11 : etaActive ( etaActive_ ) ,
etaMin ( etaMin_ ) ,
etaMax ( etaMax_ ) ,
12 ptActive ( ptActive_ ) ,
ptMin ( ptMin_ ) , ptMax ( ptMax_ ) {
21 (
const bool& etaActive_ ,
const double& etaMin_ ,
const double& etaMax_ ,
22 const bool& ptActive_ ,
const double& ptMin_ ,
const double& ptMax_)
25 std::stringstream stream (
"" );
28 stream <<
"_ETA_" << etaMin_ <<
"-" << etaMax_;
32 stream <<
"_PT_" << ptMin_ <<
"-" << ptMax_;
34 if (!(etaActive_||ptActive_)) stream <<
"_GLOBAL";
58 if ( fabs(eta) <
etaMin )
return false;
59 if ( fabs(eta) >
etaMax )
return false;
63 if ( pt <
ptMin )
return false;
64 if ( pt >
ptMax )
return false;
bool inBin(const reco::Jet &jet, const double jec) const
Base class for all types of Jets.
std::string descriptionString
static std::string buildDescriptionString(const bool &etaActive_, const double &etaMin_, const double &etaMax_, const bool &ptActive_, const double &ptMin_, const double &ptMax_)
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
bool inBin(const double &eta, const double &pt) const
Check if jet/parton are within rapidity/pt cuts.
EtaPtBin(const bool &etaActive_, const double &etaMin_, const double &etaMax_, const bool &ptActive_, const double &ptMin_, const double &ptMax_)