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

#include <LocalEptoPiPiEta3PiSelector.h>

Inheritance diagram for LocalEptoPiPiEta3PiSelector:

Public Member Functions

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

Detailed Description

Definition at line 7 of file LocalEptoPiPiEta3PiSelector.h.

Constructor & Destructor Documentation

◆ LocalEptoPiPiEta3PiSelector()

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

Definition at line 7 of file LocalEptoPiPiEta3PiSelector.cxx.

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

Referenced by LocalEptoPiPiEta3PiSelector().

Member Function Documentation

◆ operator()()

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

Definition at line 16 of file LocalEptoPiPiEta3PiSelector.cxx.

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