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 ()
 

Private Attributes

float eMax
 
float mMax
 
float mMin
 
float pMin
 
float yMax
 

Detailed Description

Definition at line 239 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

Definition at line 241 of file BPHHistoSpecificDecay.cc.

243  : mMin(massMin), mMax(massMax), pMin(ptMin), eMax(etaMax), yMax(rapidityMax) {}

◆ ~BPHCompositeBasicSelect()

BPHCompositeBasicSelect::~BPHCompositeBasicSelect ( )
inlineoverride

Definition at line 244 of file BPHHistoSpecificDecay.cc.

244 {}

Member Function Documentation

◆ accept()

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

Implements BPHHistoSpecificDecay::CandidateSelect.

Definition at line 245 of file BPHHistoSpecificDecay.cc.

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

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

Referenced by esMonitoring.FDJsonServer::handle_accept().

Member Data Documentation

◆ eMax

float BPHCompositeBasicSelect::eMax
private

Definition at line 266 of file BPHHistoSpecificDecay.cc.

◆ mMax

float BPHCompositeBasicSelect::mMax
private

Definition at line 264 of file BPHHistoSpecificDecay.cc.

◆ mMin

float BPHCompositeBasicSelect::mMin
private

Definition at line 263 of file BPHHistoSpecificDecay.cc.

◆ pMin

float BPHCompositeBasicSelect::pMin
private

Definition at line 265 of file BPHHistoSpecificDecay.cc.

◆ yMax

float BPHCompositeBasicSelect::yMax
private

Definition at line 267 of file BPHHistoSpecificDecay.cc.

BPHCompositeBasicSelect::pMin
float pMin
Definition: BPHHistoSpecificDecay.cc:265
ptMin
constexpr float ptMin
Definition: PhotonIDValueMapProducer.cc:153
ZMuMuCategoriesSequences_cff.massMin
massMin
Definition: ZMuMuCategoriesSequences_cff.py:136
BPHCompositeBasicSelect::mMin
float mMin
Definition: BPHHistoSpecificDecay.cc:263
BPHCompositeBasicSelect::yMax
float yMax
Definition: BPHHistoSpecificDecay.cc:267
cand
Definition: decayParser.h:34
ZMuMuCategoriesSequences_cff.massMax
massMax
Definition: ZMuMuCategoriesSequences_cff.py:137
BPHCompositeBasicSelect::eMax
float eMax
Definition: BPHHistoSpecificDecay.cc:266
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
ALCARECOTkAlBeamHalo_cff.etaMax
etaMax
Definition: ALCARECOTkAlBeamHalo_cff.py:33
BPHCompositeBasicSelect::mMax
float mMax
Definition: BPHHistoSpecificDecay.cc:264