CMS 3D CMS Logo

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 (const BPHParticlePtSelect &x)=delete
 
 BPHParticlePtSelect (double pt)
 
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() [1/2]

BPHParticlePtSelect::BPHParticlePtSelect ( double  pt)
inline

Constructor

Definition at line 34 of file BPHParticlePtSelect.h.

34 : ptMin(pt) {}

◆ BPHParticlePtSelect() [2/2]

BPHParticlePtSelect::BPHParticlePtSelect ( const BPHParticlePtSelect x)
delete

◆ ~BPHParticlePtSelect()

BPHParticlePtSelect::~BPHParticlePtSelect ( )
inlineoverride

Destructor

Definition at line 42 of file BPHParticlePtSelect.h.

42 {}

Member Function Documentation

◆ accept()

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

select particle

Operations

Implements BPHRecoSelect.

Definition at line 47 of file BPHParticlePtSelect.h.

47 { return (cand.p4().pt() >= ptMin); }

Referenced by esMonitoring.FDJsonServer::handle_accept().

◆ getPtMin()

double BPHParticlePtSelect::getPtMin ( ) const
inline

get current pt min

Definition at line 56 of file BPHParticlePtSelect.h.

56 { return ptMin; }

References ptMin.

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

◆ operator=()

BPHParticlePtSelect& BPHParticlePtSelect::operator= ( const BPHParticlePtSelect x)
delete

◆ setPtMin()

void BPHParticlePtSelect::setPtMin ( double  pt)
inline

set pt min

Definition at line 50 of file BPHParticlePtSelect.h.

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

References DiDispStaMuonMonitor_cfi::pt, and ptMin.

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

Member Data Documentation

◆ ptMin

double BPHParticlePtSelect::ptMin
private

Definition at line 59 of file BPHParticlePtSelect.h.

Referenced by getPtMin(), and setPtMin().

DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
BPHParticlePtSelect::ptMin
double ptMin
Definition: BPHParticlePtSelect.h:59
cand
Definition: decayParser.h:34