CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BPHParticleEtaSelect Class Reference

#include <BPHParticleEtaSelect.h>

Inheritance diagram for BPHParticleEtaSelect:
BPHRecoSelect BPHMuonEtaSelect

Public Member Functions

bool accept (const reco::Candidate &cand) const override
 select particle More...
 
 BPHParticleEtaSelect (double eta)
 
 BPHParticleEtaSelect (const BPHParticleEtaSelect &x)=delete
 
double getEtaMax () const
 get current eta max More...
 
BPHParticleEtaSelectoperator= (const BPHParticleEtaSelect &x)=delete
 
void setEtaMax (double eta)
 set eta max More...
 
 ~BPHParticleEtaSelect () override=default
 
- Public Member Functions inherited from BPHRecoSelect
virtual bool accept (const reco::Candidate &cand, const BPHRecoBuilder *builder) const
 
 BPHRecoSelect ()
 
 BPHRecoSelect (const BPHRecoSelect &x)=delete
 
BPHRecoSelectoperator= (const BPHRecoSelect &x)=delete
 
virtual ~BPHRecoSelect ()=default
 

Private Attributes

double etaMax
 

Additional Inherited Members

- Public Types inherited from BPHRecoSelect
using AcceptArg = reco::Candidate
 

Detailed Description

Descrietaion: Class for particle selection by eta

Author
Paolo Ronchese INFN Padova

Definition at line 30 of file BPHParticleEtaSelect.h.

Constructor & Destructor Documentation

◆ BPHParticleEtaSelect() [1/2]

BPHParticleEtaSelect::BPHParticleEtaSelect ( double  eta)
inline

Constructor

Definition at line 34 of file BPHParticleEtaSelect.h.

◆ BPHParticleEtaSelect() [2/2]

BPHParticleEtaSelect::BPHParticleEtaSelect ( const BPHParticleEtaSelect x)
delete

◆ ~BPHParticleEtaSelect()

BPHParticleEtaSelect::~BPHParticleEtaSelect ( )
overridedefault

Destructor

Member Function Documentation

◆ accept()

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

select particle

Operations

Implements BPHRecoSelect.

Definition at line 47 of file BPHParticleEtaSelect.h.

Referenced by esMonitoring.FDJsonServer::handle_accept().

47 { return (fabs(cand.p4().eta()) <= etaMax); }

◆ getEtaMax()

double BPHParticleEtaSelect::getEtaMax ( ) const
inline

◆ operator=()

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

◆ setEtaMax()

void BPHParticleEtaSelect::setEtaMax ( double  eta)
inline

set eta max

Definition at line 50 of file BPHParticleEtaSelect.h.

References PVValHelper::eta, and etaMax.

Referenced by BPHOniaToMuMuBuilder::setEtaMax(), and BPHDecayToResTrkBuilderBase::setTrkEtaMax().

50  {
51  etaMax = eta;
52  return;
53  }

Member Data Documentation

◆ etaMax

double BPHParticleEtaSelect::etaMax
private

Definition at line 59 of file BPHParticleEtaSelect.h.

Referenced by getEtaMax(), and setEtaMax().