Implements BPHHistoSpecificDecay::CandidateSelect.
Definition at line 223 of file BPHHistoSpecificDecay.cc.
References MillePedeFileConverter_cfg::e, photonPostprocessing_cfi::eMax, PV3DBase< T, PVType, FrameType >::eta(), BPHUserData::get(), pat::PATObject< ObjectType >::hasUserFloat(), cmsBatch::log, ResonanceBuilder::mass, ALCARECOTkAlMinBias_cff::pMin, alignCSCRings::r, hfnoseDigiStudy_cfi::rMax, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::transverse(), pat::PATObject< ObjectType >::userFloat(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().
227 if ( ( (
mMin > 0 ) && (
mMax < 0 ) ) ||
230 if ( mass <
mMin )
return false;
232 ( mass >
mMax ) )
return false;
236 if ( fmom ==
nullptr )
return false;
241 if ( fabs( fmom->
eta() ) >
eMax )
return false;
247 float e =
sqrt( ( x * x ) + ( y * y ) + ( z * z ) + ( mass * mass ) );
248 float r =
log( ( e + z ) / ( e - z ) ) / 2;
249 if ( fabs( r ) >
rMax )
return false;
bool hasUserFloat(const std::string &key) const
Return true if there is a user-defined float with a given name.
float userFloat(const std::string &key) const
static const T * get(const pat::CompositeCandidate &cand, const string &name)