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

#include <LocalRhotoPiPiSelector.h>

Inheritance diagram for LocalRhotoPiPiSelector:

Public Member Functions

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

Detailed Description

Definition at line 7 of file LocalRhotoPiPiSelector.h.

Constructor & Destructor Documentation

◆ LocalRhotoPiPiSelector()

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

Definition at line 7 of file LocalRhotoPiPiSelector.cxx.

10 : base_class( type, name, parent ) {
11 // Declare the properties
12 declareProperty( "minMassRhotoPiPi", m_minMass = 0.5 );
13 declareProperty( "maxMassRhotoPiPi", m_maxMass = 1.0 );
14}

Referenced by LocalRhotoPiPiSelector().

Member Function Documentation

◆ operator()()

bool LocalRhotoPiPiSelector::operator() ( CDDecay & aRho)

Definition at line 16 of file LocalRhotoPiPiSelector.cxx.

16 {
17
18 // aRho.setUserTag(1);
19
20 int userTag_pion1 = aRho.decay().child( 0 ).userTag();
21 int userTag_pion2 = aRho.decay().child( 1 ).userTag();
22 if ( userTag_pion1 == 1 && userTag_pion2 == 1 ) aRho.setUserTag( 1 );
23 else aRho.setUserTag( 2 );
24
25 double mass = aRho.mass();
26 if ( mass >= m_minMass && mass <= m_maxMass ) return true;
27 return false;
28}
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: