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=default
 
- 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 236 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 ( )
overridedefault

Member Function Documentation

◆ accept()

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

Implements BPHHistoSpecificDecay::CandidateSelect.

Definition at line 242 of file BPHHistoSpecificDecay.cc.

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

Referenced by esMonitoring.FDJsonServer::handle_accept().

242  {
243  if (((mMin > 0) && (mMax < 0)) || ((mMin < 0) && (mMax > 0)) || ((mMin > 0) && (mMax > 0) && (mMin < mMax))) {
244  float mass = cand.mass();
245  if (mass < mMin)
246  return false;
247  if ((mMax > 0) && (mass > mMax))
248  return false;
249  }
250  if (cand.pt() < pMin)
251  return false;
252  if ((eMax > 0) && (fabs(cand.eta()) > eMax))
253  return false;
254  if ((yMax > 0) && (fabs(cand.rapidity()) > yMax))
255  return false;
256  return true;
257  }

Member Data Documentation

◆ eMax

float BPHCompositeBasicSelect::eMax
private

Definition at line 263 of file BPHHistoSpecificDecay.cc.

◆ mMax

float BPHCompositeBasicSelect::mMax
private

Definition at line 261 of file BPHHistoSpecificDecay.cc.

◆ mMin

float BPHCompositeBasicSelect::mMin
private

Definition at line 260 of file BPHHistoSpecificDecay.cc.

◆ pMin

float BPHCompositeBasicSelect::pMin
private

Definition at line 262 of file BPHHistoSpecificDecay.cc.

◆ yMax

float BPHCompositeBasicSelect::yMax
private

Definition at line 264 of file BPHHistoSpecificDecay.cc.