BOSS
7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalSigma0Selector.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
6
#include "
EventModel/EventModel.h
"
7
#include "
EventModel/EventHeader.h
"
8
#include "
EvtRecEvent/EvtRecEvent.h
"
9
#include "
EvtRecEvent/EvtRecTrack.h
"
10
#include "
ParticleID/ParticleID.h
"
11
#include "
DTagAlg/LocalSigma0Selector.h
"
12
13
LocalSigma0Selector::LocalSigma0Selector
()
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.15);
22
m_propMgr.declareProperty(
"MaxMassCut"
, m_maxMass=1.23);
23
24
jobSvc->setMyProperties(
"LocalSigma0Selector"
, &m_propMgr);
25
}
26
27
bool
LocalSigma0Selector::operator()
(
CDDecay
& aSigma0) {
28
29
aSigma0.
setUserTag
(1);
30
double
mass
= aSigma0.
mass
();
31
if
((
mass
<= m_minMass)||(
mass
>= m_maxMass))
return
false
;
32
33
return
true
;
34
}
35
36
37
LocalSigma0Selector
sigma0Selector
;
mass
double mass
Definition:
CosmicGenerator.cxx:138
EventHeader.h
EventModel.h
EvtRecEvent.h
EvtRecTrack.h
sigma0Selector
LocalSigma0Selector sigma0Selector
Definition:
LocalSigma0Selector.cxx:37
LocalSigma0Selector.h
ParticleID.h
CDCandidate::setUserTag
void setUserTag(int tag)
Definition:
CDCandidate.cxx:81
CDCandidate::mass
double mass() const
Definition:
CDCandidate.cxx:145
CDDecay
Definition:
CDDecay.h:111
LocalSigma0Selector
Definition:
LocalSigma0Selector.h:8
LocalSigma0Selector::LocalSigma0Selector
LocalSigma0Selector()
Definition:
LocalSigma0Selector.cxx:13
LocalSigma0Selector::operator()
bool operator()(CDDecay &aSigma)
Definition:
LocalSigma0Selector.cxx:27
source
Reconstruction
DTagAlg
DTagAlg-00-01-09
src
LocalSigma0Selector.cxx
Generated by
1.9.6