Definition at line 125 of file BPHHistoSpecificDecay.cc.
BPHDaughterSelect::BPHDaughterSelect |
( |
float |
ptMinLoose, |
|
|
float |
ptMinTight, |
|
|
float |
etaMaxLoose, |
|
|
float |
etaMaxTight, |
|
|
const BPHSoftMuonSelect * |
softMuonselector = 0 |
|
) |
| |
|
inline |
Implements BPHHistoSpecificDecay::CandidateSelect.
Definition at line 138 of file BPHHistoSpecificDecay.cc.
References reco::CompositeCandidate::daughter(), reco::Candidate::eta(), BPHUserData::getByRef(), reco::Candidate::pt(), hiDetachedQuadStep_cff::pt1, and particleFlowSimParticle_cfi::pTMin.
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().
142 if ( dptr0 ==
nullptr )
return false;
143 if ( dptr1 ==
nullptr )
return false;
144 float pt0 = dptr0->
pt();
145 float pt1 = dptr1->
pt();
146 if ( ( pt0 <
pLMin ) || ( pt1 <
pLMin ) )
return false;
147 if ( ( pt0 <
pTMin ) && ( pt1 <
pTMin ) )
return false;
148 float eta0 = fabs( dptr0->
eta() );
149 float eta1 = fabs( dptr1->
eta() );
150 if ( (
eLMax > 0 ) &&
151 ( ( eta0 >
eLMax ) || ( eta1 >
eLMax ) ) )
return false;
152 if ( (
eTMax > 0 ) &&
153 ( ( eta0 >
eTMax ) && ( eta1 >
eTMax ) ) )
return false;
154 if (
sms !=
nullptr ) {
157 if ( pvtx ==
nullptr )
return false;
158 if ( !
sms->
accept( *dptr0, pvtx ) )
return false;
159 if ( !
sms->
accept( *dptr1, pvtx ) )
return false;
static const T * getByRef(const pat::CompositeCandidate &cand, const string &name)
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool accept(const reco::Candidate &cand, const reco::Vertex *pv) const
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
const BPHSoftMuonSelect * sms
float BPHDaughterSelect::eLMax |
|
private |
float BPHDaughterSelect::eTMax |
|
private |
float BPHDaughterSelect::pLMin |
|
private |
float BPHDaughterSelect::pTMin |
|
private |