CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BPHCompositeBasicSelect Class Reference
Inheritance diagram for BPHCompositeBasicSelect:
BPHHistoSpecificDecay::CandidateSelect

Public Member Functions

bool accept (const pat::CompositeCandidate &cand, const reco::Vertex *pv=nullptr) const override
 
 BPHCompositeBasicSelect (float massMin, float massMax, float ptMin=-1.0, float etaMax=-1.0, float rapidityMax=-1.0)
 
 ~BPHCompositeBasicSelect () override
 
- Public Member Functions inherited from BPHHistoSpecificDecay::CandidateSelect
virtual ~CandidateSelect ()=default
 

Private Attributes

float eMax
 
float mMax
 
float mMin
 
float pMin
 
float yMax
 

Detailed Description

Definition at line 229 of file BPHHistoSpecificDecay.cc.

Constructor & Destructor Documentation

◆ BPHCompositeBasicSelect()

BPHCompositeBasicSelect::BPHCompositeBasicSelect ( float  massMin,
float  massMax,
float  ptMin = -1.0,
float  etaMax = -1.0,
float  rapidityMax = -1.0 
)
inline

◆ ~BPHCompositeBasicSelect()

BPHCompositeBasicSelect::~BPHCompositeBasicSelect ( )
inlineoverride

Definition at line 234 of file BPHHistoSpecificDecay.cc.

234 {}

Member Function Documentation

◆ accept()

bool BPHCompositeBasicSelect::accept ( const pat::CompositeCandidate cand,
const reco::Vertex pv = nullptr 
) const
inlineoverridevirtual

Implements BPHHistoSpecificDecay::CandidateSelect.

Definition at line 235 of file BPHHistoSpecificDecay.cc.

References cosmicPhotonAnalyzer_cfi::eMax, EgHLTOffHistBins_cfi::mass, ALCARECOTkAlMinBias_cff::pMin, and multiplicitycorr_cfi::yMax.

Referenced by esMonitoring.FDJsonServer::handle_accept().

235  {
236  if (((mMin > 0) && (mMax < 0)) || ((mMin < 0) && (mMax > 0)) || ((mMin > 0) && (mMax > 0) && (mMin < mMax))) {
237  float mass = cand.mass();
238  if (mass < mMin)
239  return false;
240  if ((mMax > 0) && (mass > mMax))
241  return false;
242  }
243  if (cand.pt() < pMin)
244  return false;
245  if ((eMax > 0) && (fabs(cand.eta()) > eMax))
246  return false;
247  if ((yMax > 0) && (fabs(cand.rapidity()) > yMax))
248  return false;
249  return true;
250  }

Member Data Documentation

◆ eMax

float BPHCompositeBasicSelect::eMax
private

Definition at line 256 of file BPHHistoSpecificDecay.cc.

◆ mMax

float BPHCompositeBasicSelect::mMax
private

Definition at line 254 of file BPHHistoSpecificDecay.cc.

◆ mMin

float BPHCompositeBasicSelect::mMin
private

Definition at line 253 of file BPHHistoSpecificDecay.cc.

◆ pMin

float BPHCompositeBasicSelect::pMin
private

Definition at line 255 of file BPHHistoSpecificDecay.cc.

◆ yMax

float BPHCompositeBasicSelect::yMax
private

Definition at line 257 of file BPHHistoSpecificDecay.cc.