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

#include <LocalomegatoPiPiPi0Selector.h>

Inheritance diagram for LocalomegatoPiPiPi0Selector:

Public Member Functions

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

Detailed Description

Definition at line 7 of file LocalomegatoPiPiPi0Selector.h.

Constructor & Destructor Documentation

◆ LocalomegatoPiPiPi0Selector()

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

Definition at line 7 of file LocalomegatoPiPiPi0Selector.cxx.

10 : base_class( type, name, parent ) {
11 // Declare the properties
12 declareProperty( "MinMassCut", m_minMass = 0.71 );
13 declareProperty( "MaxMassCut", m_maxMass = 0.86 );
14}

Referenced by LocalomegatoPiPiPi0Selector().

Member Function Documentation

◆ operator()()

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

Definition at line 16 of file LocalomegatoPiPiPi0Selector.cxx.

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

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