BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEtatoPiPiPi0Selector.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/LocalEtatoPiPiPi0Selector.h
"
12
13
LocalEtatoPiPiPi0Selector::LocalEtatoPiPiPi0Selector
()
14
{
15
IJobOptionsSvc* jobSvc;
16
Gaudi::svcLocator()->service(
"JobOptionsSvc"
, jobSvc);
17
18
PropertyMgr m_propMgr;
19
20
//Declare the properties
21
m_propMgr.declareProperty(
"minMassEtatoPiPiPi0"
, m_minMass=0.40);
22
m_propMgr.declareProperty(
"maxMassEtatoPiPiPi0"
, m_maxMass=0.70);
23
24
25
jobSvc->setMyProperties(
"LocalEtatoPiPiPi0Selector"
, &m_propMgr);
26
}
27
28
bool
LocalEtatoPiPiPi0Selector::operator()
(
CDDecay
& aEta) {
29
30
//aEta.setUserTag(1);
31
32
int
userTag_pion1=aEta.
decay
().
child
(0).
userTag
();
33
int
userTag_pion2=aEta.
decay
().
child
(1).
userTag
();
34
if
(userTag_pion1==1 && userTag_pion2==1) aEta.
setUserTag
(1);
35
else
aEta.
setUserTag
(2);
36
37
double
mass
= aEta.
mass
();
38
if
(
mass
>= m_minMass &&
mass
<= m_maxMass)
39
return
true
;
40
else
41
return
false
;
42
}
43
44
45
LocalEtatoPiPiPi0Selector
etatoPiPiPi0Selector
;
mass
double mass
Definition
CosmicGenerator.cxx:138
EventHeader.h
EventModel.h
EvtRecEvent.h
EvtRecTrack.h
etatoPiPiPi0Selector
LocalEtatoPiPiPi0Selector etatoPiPiPi0Selector
Definition
LocalEtatoPiPiPi0Selector.cxx:45
LocalEtatoPiPiPi0Selector.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
LocalEtatoPiPiPi0Selector
Definition
LocalEtatoPiPiPi0Selector.h:8
LocalEtatoPiPiPi0Selector::LocalEtatoPiPiPi0Selector
LocalEtatoPiPiPi0Selector()
Definition
LocalEtatoPiPiPi0Selector.cxx:13
LocalEtatoPiPiPi0Selector::operator()
bool operator()(CDDecay &aEp)
Definition
LocalEtatoPiPiPi0Selector.cxx:28
7.1.1
Reconstruction
DTagAlg
DTagAlg-00-02-04
src
LocalEtatoPiPiPi0Selector.cxx
Generated by
1.12.0