BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEptoPiPiEta3PiSelector Class Reference

#include <LocalEptoPiPiEta3PiSelector.h>

+ Inheritance diagram for LocalEptoPiPiEta3PiSelector:

Public Member Functions

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

Detailed Description

Definition at line 7 of file LocalEptoPiPiEta3PiSelector.h.

Constructor & Destructor Documentation

◆ LocalEptoPiPiEta3PiSelector()

LocalEptoPiPiEta3PiSelector::LocalEptoPiPiEta3PiSelector ( )

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

Member Function Documentation

◆ operator()()

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

Implements DCSelectionFunction< CDDecay >.

Definition at line 28 of file LocalEptoPiPiEta3PiSelector.cxx.

28 {
29
30 //aEp.setUserTag(1);
31
32 int userTag_pion1=aEp.decay().child(0).userTag();
33 int userTag_pion2=aEp.decay().child(1).userTag();
34 int userTag_Eta=aEp.decay().child(2).userTag();
35
36 if(userTag_pion1==1 && userTag_pion2==1 && userTag_Eta==1 ) aEp.setUserTag(1);
37 else aEp.setUserTag(2);
38
39 double mass = aEp.mass();
40 if(mass >= m_minMass && mass<= m_maxMass)
41 return true;
42 else
43 return false;
44}
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

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