CGEM BOSS
6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalRhotoPiPiSelector.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/LocalRhotoPiPiSelector.h"
12
13
LocalRhotoPiPiSelector::LocalRhotoPiPiSelector
()
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.5);
22
m_propMgr.declareProperty(
"maxMass"
, m_maxMass = 1.0);
23
24
jobSvc->setMyProperties(
"LocalRhotoPiPiSelector"
, &m_propMgr);
25
}
26
27
bool
LocalRhotoPiPiSelector::operator()
(
CDDecay
& aRho) {
28
29
aRho.
setUserTag
(1);
30
double
mass
= aRho.
mass
();
31
if
(
mass
>= m_minMass &&
mass
<= m_maxMass)
32
return
true
;
33
return
false
;
34
}
35
36
LocalRhotoPiPiSelector
rhotoPiPiSelector
;
mass
double mass
Definition:
CosmicGenerator.cxx:138
rhotoPiPiSelector
LocalRhotoPiPiSelector rhotoPiPiSelector
Definition:
LocalRhotoPiPiSelector.cxx:36
CDCandidate::setUserTag
void setUserTag(int tag)
Definition:
CDCandidate.cxx:81
CDCandidate::mass
double mass() const
Definition:
CDCandidate.cxx:145
CDDecay
Definition:
Event/BesDChain/BesDChain-00-00-14/BesDChain/CDDecay.h:111
LocalRhotoPiPiSelector
Definition:
InstallArea/include/DTagAlg/DTagAlg/LocalRhotoPiPiSelector.h:8
LocalRhotoPiPiSelector::operator()
bool operator()(CDDecay &aRho)
Definition:
LocalRhotoPiPiSelector.cxx:27
LocalRhotoPiPiSelector::LocalRhotoPiPiSelector
LocalRhotoPiPiSelector()
Definition:
LocalRhotoPiPiSelector.cxx:13
source
Reconstruction
DTagAlg
DTagAlg-00-00-51
src
LocalRhotoPiPiSelector.cxx
Generated by
1.9.6