BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalChargedSigmaSelector.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=1.13);
22 m_propMgr.declareProperty("MaxMassCut", m_maxMass=1.23);
23
24 jobSvc->setMyProperties("LocalChargedSigmaSelector", &m_propMgr);
25}
26
28
29 //aChargedSigma.setUserTag(1);
30 aChargedSigma.setUserTag(aChargedSigma.decay().child(1).userTag());
31
32 double mass = aChargedSigma.mass();
33 if ((mass <= m_minMass)||(mass >= m_maxMass)) return false;
34
35 return true;
36}
37
38
double mass
LocalChargedSigmaSelector chargedsigmaSelector
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