BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEptoPiPiEtaSelector.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("minMassEptoPiPiEta", m_minMass=0.938);
22 m_propMgr.declareProperty("maxMassEptoPiPiEta", m_maxMass=0.978);
23
24
25 jobSvc->setMyProperties("LocalEptoPiPiEtaSelector", &m_propMgr);
26}
27
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 if(userTag_pion1==1 && userTag_pion2==1) aEp.setUserTag(1);
35 else aEp.setUserTag(2);
36
37 double mass = aEp.mass();
38 if(mass >= m_minMass && mass<= m_maxMass)
39 return true;
40 else
41 return false;
42}
43
44
double mass
LocalEptoPiPiEtaSelector eptoPiPiEtaSelector
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