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

#include <LocalPi0Selector.h>

Inheritance diagram for LocalPi0Selector:

Public Member Functions

 LocalPi0Selector (const std::string &type, const std::string &name, const IInterface *parent)
bool operator() (CDPi0 &aPi0)

Detailed Description

Definition at line 7 of file LocalPi0Selector.h.

Constructor & Destructor Documentation

◆ LocalPi0Selector()

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

Definition at line 8 of file LocalPi0Selector.cxx.

10 : base_class( type, name, parent ) {
11 declareProperty( "Pi0MinMassCut", m_minMass = 0.098 );
12 declareProperty( "Pi0MaxMassCut", m_maxMass = 0.165 );
13 declareProperty( "Pi0MaxChisqCut", m_maxChisq = 2500 );
14}

Referenced by LocalPi0Selector().

Member Function Documentation

◆ operator()()

bool LocalPi0Selector::operator() ( CDPi0 & aPi0)

Definition at line 16 of file LocalPi0Selector.cxx.

16 {
17
18 aPi0.setUserTag( 1 );
19 EvtRecPi0* pi0 = const_cast<EvtRecPi0*>( aPi0.navPi0() );
20
21 double mass = pi0->unconMass();
22 double chi2 = pi0->chisq();
23 if ( ( mass <= m_minMass ) || ( mass >= m_maxMass ) || ( chi2 >= m_maxChisq ) ) return false;
24
25 return true;
26}
double mass
void setUserTag(int tag)
virtual const EvtRecPi0 * navPi0() const
Definition CDPi0.cxx:92

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