BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEptoRhoGamSelector Class Reference

#include <LocalEptoRhoGamSelector.h>

+ Inheritance diagram for LocalEptoRhoGamSelector:

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ LocalEptoRhoGamSelector() [1/2]

LocalEptoRhoGamSelector::LocalEptoRhoGamSelector ( )

Definition at line 13 of file LocalEptoRhoGamSelector.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("minMassEptoRhoGam", m_minMass = 0.938);
22 m_propMgr.declareProperty("maxMassEptoRhoGam", m_maxMass = 0.978);
23
24
25 jobSvc->setMyProperties("LocalEptoRhoGamSelector", &m_propMgr);
26}

◆ LocalEptoRhoGamSelector() [2/2]

LocalEptoRhoGamSelector::LocalEptoRhoGamSelector ( )

Member Function Documentation

◆ operator()() [1/2]

bool LocalEptoRhoGamSelector::operator() ( CDDecay aEp)
virtual

Implements DCSelectionFunction< CDDecay >.

Definition at line 28 of file LocalEptoRhoGamSelector.cxx.

28 {
29
30 //aEp.setUserTag(1);
31 aEp.setUserTag(aEp.decay().child(0).userTag());
32
33 double mass = aEp.mass();
34 if(mass >= m_minMass && mass<= m_maxMass)
35 return true;
36 else
37 return false;
38}
double mass
void setUserTag(int tag)
Definition: CDCandidate.cxx:81
int userTag() const
double mass() const
const CDCandidate & child(unsigned int aPosition) const
Definition: CDDecay.cxx:247
virtual const CDDecay & decay(void) const
Definition: CDDecay.cxx:208

◆ operator()() [2/2]

bool LocalEptoRhoGamSelector::operator() ( CDDecay aEp)
virtual

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