6 #include <GaudiKernel/StatusCode.h>
17 return StatusCode::SUCCESS;
22 std::vector< const xAOD::TruthParticle* > selected;
24 if ( m_truthTool->accept(trk) and this->accept(trk)) {
25 selected.push_back(trk);
30 return StatusCode::SUCCESS;
35 if (m_maxEta!=-9999. and (
eta(*truth)) > m_maxEta )
return false;
36 if (m_minEta!=-9999. and (
eta(*truth)) < m_minEta )
return false;
37 if (m_minPhi!=-9999. and (
phi(*truth)) < m_minPhi )
return false;
38 if (m_maxPhi!=-9999. and (
phi(*truth)) > m_maxPhi )
return false;
39 if (m_minD0!=-9999. and (
d0(*truth)) < m_minD0 )
return false;
40 if (m_maxD0!=-9999. and (
d0(*truth)) > m_maxD0 )
return false;
41 if (m_minZ0!=-9999. and (
z0(*truth)) < m_minZ0 )
return false;
42 if (m_maxZ0!=-9999. and (
z0(*truth)) > m_maxZ0 )
return false;
43 if (m_minQoPT!=-9999. and (
qOverPT(*truth)) < m_minQoPT )
return false;
44 if (m_maxQoPT!=-9999. and (
qOverPT(*truth)) > m_maxQoPT )
return false;
45 if (m_minAbsEta!=-9999. and std::fabs(
eta(*truth)) < m_minAbsEta )
return false;
46 if (m_minAbsPhi!=-9999. and std::fabs(
phi(*truth)) < m_minAbsPhi )
return false;
47 if (m_maxAbsPhi!=-9999. and std::fabs(
phi(*truth)) > m_maxAbsPhi )
return false;
48 if (m_minAbsD0!=-9999. and std::fabs(
d0(*truth)) < m_minAbsD0 )
return false;
49 if (m_maxAbsD0!=-9999. and std::fabs(
d0(*truth)) > m_maxAbsD0 )
return false;
50 if (m_minAbsZ0!=-9999. and std::fabs(
z0(*truth)) < m_minAbsZ0 )
return false;
51 if (m_maxAbsZ0!=-9999. and std::fabs(
z0(*truth)) > m_maxAbsZ0 )
return false;
52 if (m_minAbsQoPT!=-9999. and std::fabs(
qOverPT(*truth)) < m_minAbsQoPT )
return false;
53 if (m_maxAbsQoPT!=-9999. and std::fabs(
qOverPT(*truth)) > m_maxAbsQoPT )
return false;
54 if (m_isHadron and not
isHadron(*truth) )
return false;