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
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 (const BPHMassSelect &x)=delete
 
BPHMassSelectoperator= (const BPHMassSelect &x)=delete
 
 ~BPHMassSelect () override
 
- Public Member Functions inherited from BPHMomentumSelect
 BPHMomentumSelect ()
 
 BPHMomentumSelect (const BPHMomentumSelect &x)=delete
 
BPHMomentumSelectoperator= (const BPHMomentumSelect &x)=delete
 
virtual ~BPHMomentumSelect ()
 
- Public Member Functions inherited from BPHMassCuts
 BPHMassCuts (double minMass, double maxMass)
 
 BPHMassCuts (const BPHMassCuts &x)=delete
 
double getMassMax () const
 
double getMassMin () const
 get current mass cuts More...
 
BPHMassCutsoperator= (const BPHMassCuts &x)=delete
 
void setMassMax (double m)
 
void setMassMin (double m)
 set mass cuts More...
 
virtual ~BPHMassCuts ()
 

Additional Inherited Members

- Public Types inherited from BPHMomentumSelect
using AcceptArg = BPHDecayMomentum
 
- 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.

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

Destructor

Definition at line 43 of file BPHMassSelect.h.

43 {}

Member Function Documentation

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

select particle

Operations

Implements BPHMomentumSelect.

Definition at line 48 of file BPHMassSelect.h.

Referenced by BPHX3872ToJPsiPiPiBuilder::build(), BPHDecayToV0Builder::buildFromV0(), BPHOniaToMuMuBuilder::extractList(), and esMonitoring.FDJsonServer::handle_accept().

48  {
49  double mass = cand.composite().mass();
50  return ((mass >= mMin) && (mass <= mMax));
51  }
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)
delete