BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalomegatoPiPiPi0Selector.cxx
Go to the documentation of this file.
1#include "GaudiKernel/Bootstrap.h"
2#include "GaudiKernel/IJobOptionsSvc.h"
3#include "GaudiKernel/ISvcLocator.h"
4#include "GaudiKernel/PropertyMgr.h"
5
12
14{
15 IJobOptionsSvc* jobSvc;
16 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
17
18 PropertyMgr m_propMgr;
19
20 //Declare the properties
21 m_propMgr.declareProperty("MinMassCut", m_minMass = 0.71);
22 m_propMgr.declareProperty("MaxMassCut", m_maxMass = 0.86);
23
24 jobSvc->setMyProperties("LocalomegatoPiPiPi0Selector", &m_propMgr);
25}
26
28
29 //aomega.setUserTag(1);
30 int userTag_pion1=aomega.decay().child(0).userTag();
31 int userTag_pion2=aomega.decay().child(1).userTag();
32 if(userTag_pion1==1 &&userTag_pion2==1) aomega.setUserTag(1);
33 else aomega.setUserTag(2);
34
35 double mass = aomega.mass();
36 if ((mass <= m_minMass)||(mass >= m_maxMass)) return false;
37
38 return true;
39}
40
double mass
LocalomegatoPiPiPi0Selector omegatoPiPiPi0Selector
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