CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
BPHMassSelect Class Reference

#include <BPHMassSelect.h>

Inheritance diagram for BPHMassSelect:
BPHMomentumSelect BPHMassCuts

Public Member Functions

bool accept (const BPHDecayMomentum &cand) const override
 select particle More...
 
 BPHMassSelect (double minMass, double maxMass)
 
 ~BPHMassSelect () override
 
- Public Member Functions inherited from BPHMomentumSelect
 BPHMomentumSelect ()
 
virtual ~BPHMomentumSelect ()
 
- Public Member Functions inherited from BPHMassCuts
 BPHMassCuts (double minMass, double maxMass)
 
double getMassMax () const
 
double getMassMin () const
 get current mass cuts More...
 
void setMassMax (double m)
 
void setMassMin (double m)
 set mass cuts More...
 
virtual ~BPHMassCuts ()
 

Private Member Functions

 BPHMassSelect (const BPHMassSelect &x)=delete
 
BPHMassSelectoperator= (const BPHMassSelect &x)=delete
 

Additional Inherited Members

- Public Types inherited from BPHMomentumSelect
using AcceptArg = BPHDecayMomentum
 
- Protected Member Functions inherited from BPHMassCuts
 BPHMassCuts (const BPHMassCuts &x)
 
BPHMassCutsoperator= (const BPHMassCuts &x)
 
- Protected Attributes inherited from BPHMassCuts
double mMax
 
double mMin
 

Detailed Description

Description: Class for candidate selection by invariant mass (at momentum sum level)

Author
Paolo Ronchese INFN Padova

Definition at line 31 of file BPHMassSelect.h.

Constructor & Destructor Documentation

BPHMassSelect::BPHMassSelect ( double  minMass,
double  maxMass 
)
inline

Constructor

Definition at line 35 of file BPHMassSelect.h.

Referenced by ~BPHMassSelect().

BPHMassCuts(double minMass, double maxMass)
Definition: BPHMassCuts.h:35
BPHMassSelect::~BPHMassSelect ( )
inlineoverride
BPHMassSelect::BPHMassSelect ( const BPHMassSelect x)
privatedelete

Member Function Documentation

bool BPHMassSelect::accept ( const BPHDecayMomentum cand) const
inlineoverridevirtual

select particle

Operations

Implements BPHMomentumSelect.

Definition at line 44 of file BPHMassSelect.h.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), BPHKx0ToKPiBuilder::build(), BPHOniaToMuMuBuilder::extractList(), esMonitoring.FDJsonServer::handle_accept(), ~BPHMassSelect(), and BPHMassSymSelect::~BPHMassSymSelect().

44  {
45  double mass = cand.composite().mass();
46  return ((mass > mMin) && (mass < mMax));
47  }
double mMax
Definition: BPHMassCuts.h:63
double mMin
Definition: BPHMassCuts.h:62
virtual const pat::CompositeCandidate & composite() const
get a composite by the simple sum of simple particles
double mass() const final
mass
BPHMassSelect& BPHMassSelect::operator= ( const BPHMassSelect x)
privatedelete

Referenced by ~BPHMassSelect().