CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalKsSelector Class Reference

#include <LocalKsSelector.h>

+ Inheritance diagram for LocalKsSelector:

Public Member Functions

 LocalKsSelector ()
 
bool operator() (CDKs &aKs)
 
- Public Member Functions inherited from DCSelectionFunction< CDKs >
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (CDKs &)=0
 
bool operator() (CDKs &iArg) const
 

Detailed Description

Definition at line 7 of file LocalKsSelector.h.

Constructor & Destructor Documentation

◆ LocalKsSelector()

LocalKsSelector::LocalKsSelector ( )

Definition at line 9 of file LocalKsSelector.cxx.

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}

Member Function Documentation

◆ operator()()

bool LocalKsSelector::operator() ( CDKs aKs)
virtual

Implements DCSelectionFunction< CDKs >.

Definition at line 23 of file LocalKsSelector.cxx.

23 {
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}
double mass
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
virtual const EvtRecVeeVertex * navKshort() const
Definition: CDKs.cxx:100
int vertexId() const
double mass() const
double chi2() const

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