![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/SystemOfUnits.h"
14 m_NPass(0), m_Nevt(0), m_NbPass(0),
15 m_NcPass(0), m_NBHadronPass(0), m_NDHadronPass(0),
30 return StatusCode::SUCCESS;
41 return StatusCode::SUCCESS;
49 bool BHadronPass =
false;
50 bool DHadronPass =
false;
51 bool PDGIDPass =
false;
55 std::vector<xAOD::JetContainer::const_iterator>
jets;
70 ATH_MSG_ERROR(
"No TruthParticle collection with name " <<
"TruthGen" <<
" found in StoreGate!");
71 return StatusCode::FAILURE;
74 unsigned int nPart = xTruthParticleContainer->
size();
75 for (
unsigned int iPart = 0; iPart < nPart; ++iPart) {
105 std::abs(
part->pdgId())==4 &&
162 for (
size_t i = 0;
i <
jets.size(); ++
i) {
173 pass = BHadronPass || DHadronPass || bPass || cPass || PDGIDPass;
180 setFilterPassed(pass);
182 return StatusCode::SUCCESS;
187 int id = std::abs(pID);
188 return (
id == 511 ||
203 int id = std::abs(pID);
204 return (
id == 411 ||
def retrieve(aClass, aKey=None)
Gaudi::Property< double > m_cPtMin
Const iterator class for DataVector/DataList.
Gaudi::Property< double > m_jetPtMin
Gaudi::Property< double > m_cEtaMax
Gaudi::Property< double > m_charmEtaMax
Gaudi::Property< bool > m_Request_cQuark
Gaudi::Property< double > m_bEtaMax
Gaudi::Property< double > m_charmPtMin
Gaudi::Property< bool > m_PDGAntiParticleToo
Gaudi::Property< double > m_PDGPtMin
xAODHeavyFlavorHadronFilter(const std::string &fname, ISvcLocator *pSvcLocator)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Property< std::string > m_TruthJetContainerName
Base class for event generator filtering modules.
Gaudi::Property< double > m_jetEtaMax
::StatusCode StatusCode
StatusCode definition for legacy code.
Provide simplified clock_gettime() function for MacOSX.
Class describing a truth particle in the MC record.
bool isBwithWeakDK(const int pID) const
#define CHECK(...)
Evaluate an expression and check for errors.
bool isDwithWeakDK(const int pID) const
virtual StatusCode filterEvent()
Gaudi::Property< bool > m_RequireTruthJet
Gaudi::Property< double > m_bottomEtaMax
Gaudi::Property< double > m_deltaRFromTruth
Gaudi::Property< bool > m_RequestSpecificPDGID
Gaudi::Property< bool > m_RequestBottom
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
tuple genpart
Check that the actual generators, tune, and main PDF are consistent with the JO name.
Gaudi::Property< bool > m_RequestCharm
virtual StatusCode filterInitialize()
Gaudi::Property< bool > m_Request_bQuark
Gaudi::Property< double > m_bPtMin
virtual StatusCode filterFinalize()
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Property< double > m_PDGEtaMax
Gaudi::Property< double > m_bottomPtMin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Gaudi::Property< int > m_PDGID