BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalRhotoPiPiSelector Class Reference

#include <LocalRhotoPiPiSelector.h>

+ Inheritance diagram for LocalRhotoPiPiSelector:

Public Member Functions

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

Detailed Description

Definition at line 7 of file LocalRhotoPiPiSelector.h.

Constructor & Destructor Documentation

◆ LocalRhotoPiPiSelector()

LocalRhotoPiPiSelector::LocalRhotoPiPiSelector ( )

Definition at line 13 of file LocalRhotoPiPiSelector.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("minMassRhotoPiPi", m_minMass = 0.5);
22 m_propMgr.declareProperty("maxMassRhotoPiPi", m_maxMass = 1.0);
23
24 jobSvc->setMyProperties("LocalRhotoPiPiSelector", &m_propMgr);
25}

Member Function Documentation

◆ operator()()

bool LocalRhotoPiPiSelector::operator() ( CDDecay & aRho)
virtual

Implements DCSelectionFunction< CDDecay >.

Definition at line 27 of file LocalRhotoPiPiSelector.cxx.

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