24 IJobOptionsSvc* jobSvc;
25 Gaudi::svcLocator()->service(
"JobOptionsSvc", jobSvc);
27 PropertyMgr m_propMgr;
30 m_propMgr.declareProperty(
"RxyCut", m_VrCut = 1.0);
31 m_propMgr.declareProperty(
"Vz0Cut", m_VzCut = 10.0);
32 m_propMgr.declareProperty(
"CosThetaCut", m_CosThetaCut = 0.93);
34 m_propMgr.declareProperty(
"PID", m_PID =
true);
35 m_propMgr.declareProperty(
"useSimplePID", m_useSimplePID =
true);
37 m_propMgr.declareProperty(
"PidUseDedx", m_useDedx =
true);
38 m_propMgr.declareProperty(
"PidUseTof1", m_useTof1 =
true);
39 m_propMgr.declareProperty(
"PidUseTof2", m_useTof2 =
true);
40 m_propMgr.declareProperty(
"PidUseTofE", m_useTofE =
false);
41 m_propMgr.declareProperty(
"PidUseTofQ", m_useTofQ =
false);
42 m_propMgr.declareProperty(
"PidUseEmc", m_useEmc =
false);
43 m_propMgr.declareProperty(
"PidUseMuc", m_useMuc =
false);
45 m_propMgr.declareProperty(
"PidwithProbability", m_probability =
true);
46 m_propMgr.declareProperty(
"PidProbCut", m_PidProbCut = 0.001);
47 m_propMgr.declareProperty(
"RejectKaon", m_rejectKaon =
true);
48 m_propMgr.declareProperty(
"RejectProton", m_rejectProton =
false);
50 m_propMgr.declareProperty(
"PidwithLikelihood", m_likelihood =
false);
51 m_propMgr.declareProperty(
"PidwithNeuronNetwork", m_neuronNetwork =
false);
52 m_neuronValCut.clear();
53 m_neuronValCut.push_back(1.5);
54 m_neuronValCut.push_back(2.5);
55 m_propMgr.declareProperty(
"NeuronValue", m_neuronValCut);
57 jobSvc->setMyProperties(
"LocalPionSelector", &m_propMgr);
71 if ( mdcKalTrk->
charge()==0 )
return false;
73 Hep3Vector xorigin(0,0,0);
75 Gaudi::svcLocator()->service(
"VertexDbSvc", vtxsvc);
86 HepPoint3D IP(xorigin[0],xorigin[1],xorigin[2]);
89 HepVector vecipa = helixip3.
a();
91 double dr=fabs(vecipa[0]);
92 double dz=fabs(vecipa[3]);
94 if ( dr>= m_VrCut )
return false;
95 if ( dz>= m_VzCut )
return false;
96 if ( fabs(
costheta) >= m_CosThetaCut )
return false;
98 if(!m_PID)
return true;
103 Gaudi::svcLocator()->service(
"SimplePIDSvc", m_simplePIDSvc);
105 if( !m_simplePIDSvc->
ispion() ){
125 if(m_pidtype==0)
return true;
int methodProbability() const
void setChiMinCut(const double chi=4)
void setRecTrack(EvtRecTrack *trk)
void setMethod(const int method)
void identify(const int pidcase)
void usePidSys(const int pidsys)
static ParticleID * instance()