BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalPi0Selector.cxx
Go to the documentation of this file.
1#include "GaudiKernel/Bootstrap.h"
2#include "GaudiKernel/IJobOptionsSvc.h"
3#include "GaudiKernel/ISvcLocator.h"
4#include "GaudiKernel/PropertyMgr.h"
5
6#include "EvtRecEvent/EvtRecPi0.h"
7#include "DTagAlg/LocalPi0Selector.h"
8
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}
23
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}
38
double mass
LocalPi0Selector pi0Selector
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
virtual const EvtRecPi0 * navPi0() const
Definition: CDPi0.cxx:103
bool operator()(CDPi0 &aPi0)