CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEptoPiPiEtaSelector Class Reference

#include <LocalEptoPiPiEtaSelector.h>

+ Inheritance diagram for LocalEptoPiPiEtaSelector:

Public Member Functions

 LocalEptoPiPiEtaSelector ()
 
bool operator() (CDDecay &aEp)
 
- Public Member Functions inherited from DCSelectionFunction< CDDecay >
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
bool operator() (CDDecay &iArg) const
 

Detailed Description

Definition at line 7 of file LocalEptoPiPiEtaSelector.h.

Constructor & Destructor Documentation

◆ LocalEptoPiPiEtaSelector()

LocalEptoPiPiEtaSelector::LocalEptoPiPiEtaSelector ( )

Definition at line 13 of file LocalEptoPiPiEtaSelector.cxx.

14{
15 IJobOptionsSvc* jobSvc;
16 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
17
18 PropertyMgr m_propMgr;
19
20 //Declare the properties
21 m_propMgr.declareProperty("minMass", m_minMass=0.938);
22 m_propMgr.declareProperty("maxMass", m_maxMass=0.978);
23
24
25 jobSvc->setMyProperties("LocalEptoPiPiEtaSelector", &m_propMgr);
26}

Member Function Documentation

◆ operator()()

bool LocalEptoPiPiEtaSelector::operator() ( CDDecay & aEp)
virtual

Implements DCSelectionFunction< CDDecay >.

Definition at line 28 of file LocalEptoPiPiEtaSelector.cxx.

28 {
29
30 aEp.setUserTag(1);
31 double mass = aEp.mass();
32 if(mass >= m_minMass && mass<= m_maxMass)
33 return true;
34 else
35 return false;
36}
double mass
void setUserTag(int tag)
double mass() const

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