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

#include <LocalPi0Selector.h>

+ Inheritance diagram for LocalPi0Selector:

Public Member Functions

 LocalPi0Selector ()
 
bool operator() (CDPi0 &aPi0)
 
- Public Member Functions inherited from DCSelectionFunction< CDPi0 >
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (CDPi0 &)=0
 
bool operator() (CDPi0 &iArg) const
 

Detailed Description

Definition at line 7 of file LocalPi0Selector.h.

Constructor & Destructor Documentation

◆ LocalPi0Selector()

LocalPi0Selector::LocalPi0Selector ( )

Definition at line 9 of file LocalPi0Selector.cxx.

10{
11 IJobOptionsSvc* jobSvc;
12 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
13
14 PropertyMgr m_propMgr;
15
16 m_propMgr.declareProperty("Pi0MinMassCut", m_minMass = 0.098 );
17 m_propMgr.declareProperty("Pi0MaxMassCut", m_maxMass = 0.165 );
18 m_propMgr.declareProperty("Pi0MaxChisqCut", m_maxChisq = 2500 );
19
20
21 jobSvc->setMyProperties("LocalPi0Selector", &m_propMgr);
22}

Member Function Documentation

◆ operator()()

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

Implements DCSelectionFunction< CDPi0 >.

Definition at line 24 of file LocalPi0Selector.cxx.

24 {
25
26 aPi0.setUserTag(1);
27 EvtRecPi0* pi0 = const_cast<EvtRecPi0*>( aPi0.navPi0() );
28
29 double mass = pi0->unconMass();
30 double chi2 = pi0->chisq();
31 if ((mass <= m_minMass) || (mass >= m_maxMass) || (chi2 >= m_maxChisq)) return false;
32
33
34 return true;
35}
double mass
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
virtual const EvtRecPi0 * navPi0() const
Definition: CDPi0.cxx:103
double unconMass() const
Definition: EvtRecPi0.h:24
double chisq() const
Definition: EvtRecPi0.h:25

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