13 const std::vector<OffEle>& eles = evt.
eles();
15 for(
size_t eleNr=0;eleNr<eles.size();eleNr++){
20 tagEle = &eles[eleNr];
41 const std::vector<OffEle>& eles = evt.
eles();
43 for(
size_t eleNr=0;eleNr<eles.size();eleNr++){
44 if( ((eles[eleNr].*
cutCodeFunc_)() &
cutCode_)==0x0 && (bit1ToPass_&eles[eleNr].trigBits())==bit1ToPass_){
48 tagEle = &eles[eleNr];
70 const std::vector<OffPho>& phos = evt.
phos();
72 for(
size_t phoNr=0;phoNr<phos.size();phoNr++){
73 if( ((phos[phoNr].*
cutCodeFunc_)() &
cutCode_)==0x0 && (bit1ToPass_&phos[phoNr].trigBits())==bit1ToPass_){
77 tagPho = &phos[phoNr];
91 const std::vector<OffEle>& eles = evt.
eles();
92 for(
size_t eleNr=0;eleNr<eles.size();eleNr++){
93 if(&eles[eleNr]!=&obj){
96 if( (diEleCutCode &
cutCode_)==0x0)
return true;
106 const std::vector<OffPho>& phos = evt.
phos();
107 for(
size_t phoNr=0;phoNr<phos.size();phoNr++){
108 if(&phos[phoNr]!=&obj){
111 if( (diPhoCutCode &
cutCode_)==0x0)
return true;
bool pass(const OffPho &pho, const OffEvt &evt) const
TrigCodes::TrigBitSet trigBits() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
int(OffEle::* cutCodeFunc_)() const
TrigCodes::TrigBitSet trigBits() const
bool pass(const OffEle &obj, const OffEvt &evt) const
bool pass(const OffEle &ele, const OffEvt &evt) const
TrigCodes::TrigBitSet bitsToPass_
const std::vector< OffPho > & phos() const
bool pass(const OffEle &ele, const OffEvt &evt) const
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const std::vector< OffEle > & eles() const
bool pass(const OffPho &obj, const OffEvt &evt) const
const math::XYZTLorentzVector & p4() const
const math::XYZTLorentzVector & p4() const