CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
BPHParticlePtSelect Class Reference

#include <BPHParticlePtSelect.h>

Inheritance diagram for BPHParticlePtSelect:
BPHRecoSelect BPHMuonPtSelect

Public Member Functions

bool accept (const reco::Candidate &cand) const override
 select particle More...
 
 BPHParticlePtSelect (double pt)
 
 BPHParticlePtSelect (const BPHParticlePtSelect &x)=delete
 
double getPtMin () const
 get current pt min More...
 
BPHParticlePtSelectoperator= (const BPHParticlePtSelect &x)=delete
 
void setPtMin (double pt)
 set pt min More...
 
 ~BPHParticlePtSelect () override
 
- Public Member Functions inherited from BPHRecoSelect
virtual bool accept (const reco::Candidate &cand, const BPHRecoBuilder *build) const
 
 BPHRecoSelect ()
 
 BPHRecoSelect (const BPHRecoSelect &x)=delete
 
BPHRecoSelectoperator= (const BPHRecoSelect &x)=delete
 
virtual ~BPHRecoSelect ()
 

Private Attributes

double ptMin
 

Additional Inherited Members

- Public Types inherited from BPHRecoSelect
using AcceptArg = reco::Candidate
 
- Protected Member Functions inherited from BPHRecoSelect
const reco::Candidateget (const std::string &name, const BPHRecoBuilder *build) const
 

Detailed Description

Description: Class for particle selection by Pt

Author
Paolo Ronchese INFN Padova

Definition at line 30 of file BPHParticlePtSelect.h.

Constructor & Destructor Documentation

BPHParticlePtSelect::BPHParticlePtSelect ( double  pt)
inline

Constructor

Definition at line 34 of file BPHParticlePtSelect.h.

BPHParticlePtSelect::BPHParticlePtSelect ( const BPHParticlePtSelect x)
delete
BPHParticlePtSelect::~BPHParticlePtSelect ( )
inlineoverride

Destructor

Definition at line 42 of file BPHParticlePtSelect.h.

42 {}

Member Function Documentation

bool BPHParticlePtSelect::accept ( const reco::Candidate cand) const
inlineoverridevirtual

select particle

Operations

Implements BPHRecoSelect.

Definition at line 47 of file BPHParticlePtSelect.h.

Referenced by esMonitoring.FDJsonServer::handle_accept().

47 { return (cand.p4().pt() >= ptMin); }
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
double BPHParticlePtSelect::getPtMin ( ) const
inline

get current pt min

Definition at line 56 of file BPHParticlePtSelect.h.

References ptMin.

Referenced by BPHDecayToResTrkBuilder::build(), BPHOniaToMuMuBuilder::getPtMin(), and BPHDecayToResTrkBuilder::getTrkPtMin().

56 { return ptMin; }
BPHParticlePtSelect& BPHParticlePtSelect::operator= ( const BPHParticlePtSelect x)
delete
void BPHParticlePtSelect::setPtMin ( double  pt)
inline

set pt min

Definition at line 50 of file BPHParticlePtSelect.h.

References DiDispStaMuonMonitor_cfi::pt, and ptMin.

Referenced by BPHOniaToMuMuBuilder::setPtMin(), and BPHDecayToResTrkBuilder::setTrkPtMin().

50  {
51  ptMin = pt;
52  return;
53  }

Member Data Documentation

double BPHParticlePtSelect::ptMin
private

Definition at line 59 of file BPHParticlePtSelect.h.

Referenced by getPtMin(), and setPtMin().