23 std::cout <<
v1 <<
" > " <<
v2 <<
" = " <<
v1_gr_v2 << std::endl;
32 std::cout << std::boolalpha;
33 std::cout <<
"All( " <<
v1 <<
" > .5 * " <<
v2 <<
" ) = " <<
All(
all_true) << std::endl;
41 std::cout <<
"v = " <<
v <<
". v[ v > 3. ] = " <<
v_filtered << std::endl;
50 std::cout <<
"mu_pt = " <<
mu_pt <<
" mu_pt[ mu_pt > 10 && abs(mu_eta) < 2.1] = " <<
good_mu_pt << std::endl;
54 std::cout <<
"mu_pt if abs(mu_eta) < 2 else -999 = " <<
masked_mu_pt << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
RVec< PromoteType< T > > abs(const RVec< T > &v)
RVec< T > Where(const RVec< int > &c, const RVec< T > &v1, const RVec< T > &v2)
Return the elements of v1 if the condition c is true and v2 if the condition c is false.
auto Any(const RVec< T > &v) -> decltype(v[0]==true)
Return true if any of the elements equates to true, return false otherwise.
constexpr bool All(const bool *vals, std::size_t size)