22 ss <<
"Dijet::isSatisfied must see exactly 1 particle, but received "
25 throw std::runtime_error(
ss.str());
31 auto pt =
jet->pt() * 0.001;
33 if(!(
jet->getAttribute(
"DetectorEta",detEta))){
34 throw std::runtime_error(
"JVT condition cannot retrieve variable 'DetectorEta', 'DetectorEta' does not exist");
36 auto absdetEta = std::abs(detEta);
37 bool jvtApplicable = (absdetEta<
m_maxEta and pt<
m_maxPt) ?
true :
false;
43 if(!(
jet->getAttribute(
"Jvt",jvt))){
44 throw std::runtime_error(
"JVT condition cannot retrieve variable 'Jvt', 'Jvt' does not exist");
51 std::stringstream ss0;
52 const void* address =
static_cast<const void*
>(
this);
53 ss0 <<
"JVTCondition: (" << address
56 <<
" absdetEta " << absdetEta
57 <<
" pass: " <<std::boolalpha << pass <<
" jet group: \n";
59 std::stringstream ss1;
61 for(
const auto& ip : ips){
62 address =
static_cast<const void*
>(ip.get());
63 ss1 <<
" " << address <<
" " << ip->eta() <<
" pt " << ip->pt() <<
'\n';
66 collector -> collect(ss0.str(), ss1.str());