BOSS 7.0.4
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)
 
 LocalPi0Selector ()
 
bool operator() (CDPi0 &aPi0)
 
- Public Member Functions inherited from DCSelectionFunction< CDPi0 >
 DCSelectionFunction ()
 
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (CDPi0 &)=0
 
bool operator() (CDPi0 &iArg) const
 
virtual bool operator() (CDPi0 &)=0
 
bool operator() (CDPi0 &iArg) const
 

Detailed Description

Constructor & Destructor Documentation

◆ LocalPi0Selector() [1/2]

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}

◆ LocalPi0Selector() [2/2]

LocalPi0Selector::LocalPi0Selector ( )

Member Function Documentation

◆ operator()() [1/2]

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 if(mass < 0.115 || mass > 0.150)
34 aPi0.setUserTag(2);
35
36 return true;
37}
double mass
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
virtual const EvtRecPi0 * navPi0() const
Definition: CDPi0.cxx:103

◆ operator()() [2/2]

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

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