13 const std::vector<OffEle>& eles = evt.
eles();
15 for (
auto const& ele : eles) {
44 const std::vector<OffEle>& eles = evt.
eles();
46 for (
auto const& ele : eles) {
47 if (((ele.*
cutCodeFunc_)() &
cutCode_) == 0x0 && (bit1ToPass_ & ele.trigBits()) == bit1ToPass_) {
75 const OffPho* tagPho =
nullptr;
76 const std::vector<OffPho>& phos = evt.
phos();
78 for (
auto const& pho : phos) {
79 if (((pho.*
cutCodeFunc_)() &
cutCode_) == 0x0 && (bit1ToPass_ & pho.trigBits()) == bit1ToPass_) {
99 const std::vector<OffEle>& eles = evt.
eles();
100 for (
auto const& ele : eles) {
104 if ((diEleCutCode &
cutCode_) == 0x0)
112 const std::vector<OffPho>& phos = evt.
phos();
113 for (
auto const& pho : phos) {
117 if ((diPhoCutCode &
cutCode_) == 0x0)
TrigCodes::TrigBitSet trigBits() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
bool pass(const OffEle &obj, const OffEvt &evt) const override
bool pass(const OffEle &ele, const OffEvt &evt) const override
int(OffEle::* cutCodeFunc_)() const
bool pass(const OffEle &ele, const OffEvt &evt) const override
TrigCodes::TrigBitSet trigBits() const
bool pass(const OffPho &obj, const OffEvt &evt) const override
TrigCodes::TrigBitSet bitsToPass_
const std::vector< OffPho > & phos() const
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const std::vector< OffEle > & eles() const
const math::XYZTLorentzVector & p4() const
const math::XYZTLorentzVector & p4() const
bool pass(const OffPho &pho, const OffEvt &evt) const override