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 (const BPHParticleEtaSelect &x)=delete
 
 BPHParticleEtaSelect (double eta)
 
double getEtaMax () const
 get current eta max More...
 
BPHParticleEtaSelectoperator= (const BPHParticleEtaSelect &x)=delete
 
void setEtaMax (double eta)
 set eta max More...
 
 ~BPHParticleEtaSelect () 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 etaMax
 

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

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.

34 : etaMax(eta) {}

◆ BPHParticleEtaSelect() [2/2]

BPHParticleEtaSelect::BPHParticleEtaSelect ( const BPHParticleEtaSelect x)
delete

◆ ~BPHParticleEtaSelect()

BPHParticleEtaSelect::~BPHParticleEtaSelect ( )
inlineoverride

Destructor

Definition at line 42 of file BPHParticleEtaSelect.h.

42 {}

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.

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

Referenced by esMonitoring.FDJsonServer::handle_accept().

◆ getEtaMax()

double BPHParticleEtaSelect::getEtaMax ( ) const
inline

get current eta max

Definition at line 56 of file BPHParticleEtaSelect.h.

56 { return etaMax; }

References etaMax.

Referenced by BPHDecayToResTrkBuilder::build(), BPHOniaToMuMuBuilder::getEtaMax(), and BPHDecayToResTrkBuilder::getTrkEtaMax().

◆ 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.

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

References PVValHelper::eta, and etaMax.

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

Member Data Documentation

◆ etaMax

double BPHParticleEtaSelect::etaMax
private

Definition at line 59 of file BPHParticleEtaSelect.h.

Referenced by getEtaMax(), and setEtaMax().

PVValHelper::eta
Definition: PVValidationHelpers.h:69
cand
Definition: decayParser.h:34
BPHParticleEtaSelect::etaMax
double etaMax
Definition: BPHParticleEtaSelect.h:59