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
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
 
- 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::BPHParticleEtaSelect ( double  eta)
inline

Constructor

Definition at line 34 of file BPHParticleEtaSelect.h.

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

Destructor

Definition at line 42 of file BPHParticleEtaSelect.h.

42 {}

Member Function Documentation

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); }
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
double BPHParticleEtaSelect::getEtaMax ( ) const
inline

get current eta max

Definition at line 56 of file BPHParticleEtaSelect.h.

References etaMax.

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

56 { return etaMax; }
BPHParticleEtaSelect& BPHParticleEtaSelect::operator= ( const BPHParticleEtaSelect x)
delete
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 BPHDecayToResTrkBuilder::setTrkEtaMax().

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

Member Data Documentation

double BPHParticleEtaSelect::etaMax
private

Definition at line 59 of file BPHParticleEtaSelect.h.

Referenced by getEtaMax(), and setEtaMax().