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 172 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 184 of file BPHHistoSpecificDecay.cc.

References photonPostprocessing_cfi::eMax, PVValHelper::eta, ResonanceBuilder::mass, reco::LeafCandidate::mass(), ALCARECOTkAlMinBias_cff::pMin, EnergyCorrector::pt, reco::LeafCandidate::rapidity(), and CMSBoostedTauSeedingParameters_cfi::yMax.

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

185  {
186  if ( ( ( mMin > 0 ) && ( mMax < 0 ) ) ||
187  ( ( mMin < 0 ) && ( mMax > 0 ) ) ||
188  ( ( mMin > 0 ) && ( mMax > 0 ) && ( mMin < mMax ) ) ) {
189  float mass = cand.mass();
190  if ( mass < mMin ) return false;
191  if ( ( mMax > 0 ) &&
192  ( mass > mMax ) ) return false;
193  }
194  if ( cand. pt() < pMin ) return false;
195  if ( ( eMax > 0 ) &&
196  ( fabs( cand. eta() ) > eMax ) ) return false;
197  if ( ( yMax > 0 ) &&
198  ( fabs( cand.rapidity() ) > yMax ) ) return false;
199  return true;
200  }
double rapidity() const final
rapidity
double mass() const final
mass

Member Data Documentation

float BPHCompositeBasicSelect::eMax
private

Definition at line 206 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::mMax
private

Definition at line 204 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::mMin
private

Definition at line 203 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::pMin
private

Definition at line 205 of file BPHHistoSpecificDecay.cc.

float BPHCompositeBasicSelect::yMax
private

Definition at line 207 of file BPHHistoSpecificDecay.cc.