BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalKsSelector.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
8
10{
11 IJobOptionsSvc* jobSvc;
12 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
13
14 PropertyMgr m_propMgr;
15
16 m_propMgr.declareProperty("KsMinMassCut", m_minMass = 0.470 );
17 m_propMgr.declareProperty("KsMaxMassCut", m_maxMass = 0.528 );
18 m_propMgr.declareProperty("KsMaxChisq", m_maxChisq = 100 );
19
20 jobSvc->setMyProperties("LocalKsSelector", &m_propMgr);
21}
22
24
25 aKs.setUserTag(1);
26 EvtRecVeeVertex* ks = const_cast<EvtRecVeeVertex*>( aKs.navKshort() );
27
28 if ( ks->vertexId() != 310 ) return false;
29
30 double mass = ks->mass();
31 if ((mass <= m_minMass)||(mass >= m_maxMass)) return false;
32 if ( ks->chi2() >= m_maxChisq ) return false;
33
34 if(mass < 0.487 || mass > 0.511)
35 aKs.setUserTag(2);
36
37 return true;
38}
39
double mass
LocalKsSelector ksSelector
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
Definition: CDKs.h:60
virtual const EvtRecVeeVertex * navKshort() const
Definition: CDKs.cxx:100
int vertexId() const
double mass() const
double chi2() const
bool operator()(CDKs &aKs)