BOSS
7.1.2
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
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/LocalomegatoPiPiPi0Selector.h
"
12
13
LocalomegatoPiPiPi0Selector::LocalomegatoPiPiPi0Selector
()
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
27
bool
LocalomegatoPiPiPi0Selector::operator()
(
CDDecay
& aomega) {
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
41
LocalomegatoPiPiPi0Selector
omegatoPiPiPi0Selector
;
mass
double mass
Definition
CosmicGenerator.cxx:138
EventHeader.h
EventModel.h
EvtRecEvent.h
EvtRecTrack.h
omegatoPiPiPi0Selector
LocalomegatoPiPiPi0Selector omegatoPiPiPi0Selector
Definition
LocalomegatoPiPiPi0Selector.cxx:41
LocalomegatoPiPiPi0Selector.h
ParticleID.h
CDCandidate::setUserTag
void setUserTag(int tag)
Definition
CDCandidate.cxx:81
CDCandidate::userTag
int userTag() const
Definition
CDCandidate.cxx:137
CDCandidate::mass
double mass() const
Definition
CDCandidate.cxx:145
CDDecay
Definition
CDDecay.h:111
CDDecay::child
const CDCandidate & child(unsigned int aPosition) const
Definition
CDDecay.cxx:247
CDDecay::decay
virtual const CDDecay & decay(void) const
Definition
CDDecay.cxx:208
LocalomegatoPiPiPi0Selector
Definition
LocalomegatoPiPiPi0Selector.h:8
LocalomegatoPiPiPi0Selector::operator()
bool operator()(CDDecay &aEp)
Definition
LocalomegatoPiPiPi0Selector.cxx:27
LocalomegatoPiPiPi0Selector::LocalomegatoPiPiPi0Selector
LocalomegatoPiPiPi0Selector()
Definition
LocalomegatoPiPiPi0Selector.cxx:13
7.1.2
Reconstruction
DTagAlg
DTagAlg-00-02-05
src
LocalomegatoPiPiPi0Selector.cxx
Generated by
1.12.0