BOSS
6.6.4.p01
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
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/LocalEptoPiPiEtaSelector.h
"
12
13
LocalEptoPiPiEtaSelector::LocalEptoPiPiEtaSelector
()
14
{
15
IJobOptionsSvc* jobSvc;
16
Gaudi::svcLocator()->service(
"JobOptionsSvc"
, jobSvc);
17
18
PropertyMgr m_propMgr;
19
20
//Declare the properties
21
m_propMgr.declareProperty(
"minMass"
, m_minMass=0.938);
22
m_propMgr.declareProperty(
"maxMass"
, m_maxMass=0.978);
23
24
25
jobSvc->setMyProperties(
"LocalEptoPiPiEtaSelector"
, &m_propMgr);
26
}
27
28
bool
LocalEptoPiPiEtaSelector::operator()
(
CDDecay
& aEp) {
29
30
aEp.
setUserTag
(1);
31
double
mass
= aEp.
mass
();
32
if
(
mass
>= m_minMass &&
mass
<= m_maxMass)
33
return
true
;
34
else
35
return
false
;
36
}
37
38
39
LocalEptoPiPiEtaSelector
eptoPiPiEtaSelector
;
mass
double mass
Definition:
CosmicGenerator.cxx:138
EventHeader.h
EventModel.h
EvtRecEvent.h
EvtRecTrack.h
eptoPiPiEtaSelector
LocalEptoPiPiEtaSelector eptoPiPiEtaSelector
Definition:
LocalEptoPiPiEtaSelector.cxx:39
LocalEptoPiPiEtaSelector.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
LocalEptoPiPiEtaSelector
Definition:
LocalEptoPiPiEtaSelector.h:8
LocalEptoPiPiEtaSelector::LocalEptoPiPiEtaSelector
LocalEptoPiPiEtaSelector()
Definition:
LocalEptoPiPiEtaSelector.cxx:13
LocalEptoPiPiEtaSelector::operator()
bool operator()(CDDecay &aEp)
Definition:
LocalEptoPiPiEtaSelector.cxx:28
source
Reconstruction
DTagAlg
DTagAlg-00-00-49
src
LocalEptoPiPiEtaSelector.cxx
Generated by
1.9.6