BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEptoRhoGamSelector Class Reference

#include <LocalEptoRhoGamSelector.h>

Inheritance diagram for LocalEptoRhoGamSelector:

Public Member Functions

 LocalEptoRhoGamSelector (const std::string &type, const std::string &name, const IInterface *parent)
bool operator() (CDDecay &aEp)

Detailed Description

Definition at line 7 of file LocalEptoRhoGamSelector.h.

Constructor & Destructor Documentation

◆ LocalEptoRhoGamSelector()

LocalEptoRhoGamSelector::LocalEptoRhoGamSelector ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 7 of file LocalEptoRhoGamSelector.cxx.

10 : base_class( type, name, parent ) {
11 // Declare the properties
12 declareProperty( "minMassEptoRhoGam", m_minMass = 0.938 );
13 declareProperty( "maxMassEptoRhoGam", m_maxMass = 0.978 );
14}

Referenced by LocalEptoRhoGamSelector().

Member Function Documentation

◆ operator()()

bool LocalEptoRhoGamSelector::operator() ( CDDecay & aEp)

Definition at line 16 of file LocalEptoRhoGamSelector.cxx.

16 {
17
18 // aEp.setUserTag(1);
19 aEp.setUserTag( aEp.decay().child( 0 ).userTag() );
20
21 double mass = aEp.mass();
22 if ( mass >= m_minMass && mass <= m_maxMass ) return true;
23 else return false;
24}
double mass
void setUserTag(int tag)
int userTag() const
double mass() const
const CDCandidate & child(unsigned int aPosition) const
Definition CDDecay.cxx:231
virtual const CDDecay & decay(void) const
Definition CDDecay.cxx:204

The documentation for this class was generated from the following files: