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=0) const override
 
 BPHCompositeBasicSelect (float massMin, float massMax, float ptMin=-1.0, float etaMax=-1.0, float rapidityMax=-1.0)
 
- 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 166 of file BPHHistoSpecificDecay.cc.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements BPHHistoSpecificDecay::CandidateSelect.

Definition at line 171 of file BPHHistoSpecificDecay.cc.

References cosmicPhotonAnalyzer_cfi::eMax, reco::LeafCandidate::eta(), EgHLTOffHistBins_cfi::mass, reco::LeafCandidate::mass(), ALCARECOTkAlMinBias_cff::pMin, reco::LeafCandidate::pt(), reco::LeafCandidate::rapidity(), and multiplicitycorr_cfi::yMax.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().

171  {
172  if (((mMin > 0) && (mMax < 0)) || ((mMin < 0) && (mMax > 0)) || ((mMin > 0) && (mMax > 0) && (mMin < mMax))) {
173  float mass = cand.mass();
174  if (mass < mMin)
175  return false;
176  if ((mMax > 0) && (mass > mMax))
177  return false;
178  }
179  if (cand.pt() < pMin)
180  return false;
181  if ((eMax > 0) && (fabs(cand.eta()) > eMax))
182  return false;
183  if ((yMax > 0) && (fabs(cand.rapidity()) > yMax))
184  return false;
185  return true;
186  }
double eta() const final
momentum pseudorapidity
double rapidity() const final
rapidity
double pt() const final
transverse momentum
double mass() const final
mass

Member Data Documentation

float BPHCompositeBasicSelect::eMax
private

Definition at line 192 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::mMax
private

Definition at line 190 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::mMin
private

Definition at line 189 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::pMin
private

Definition at line 191 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::yMax
private

Definition at line 193 of file BPHHistoSpecificDecay.cc.