![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),
51 return StatusCode::SUCCESS;
62 return StatusCode::SUCCESS;
70 bool BHadronPass =
false;
71 bool DHadronPass =
false;
72 bool PDGIDPass =
false;
76 std::vector<xAOD::JetContainer::const_iterator>
jets;
88 const HepMC::GenEvent* genEvt = *itr;
91 for (
const auto&
part: *genEvt) {
104 HepMC::FourVector
tmp =
part->momentum();
122 std::abs(
part->pdg_id())==4 &&
126 HepMC::FourVector
tmp =
part->momentum();
144 HepMC::FourVector
tmp =
part->momentum();
162 HepMC::FourVector
tmp =
part->momentum();
181 HepMC::FourVector
tmp =
part->momentum();
183 for (
size_t i = 0;
i <
jets.size(); ++
i) {
196 pass = BHadronPass || DHadronPass || bPass || cPass || PDGIDPass;
203 setFilterPassed(pass);
205 return StatusCode::SUCCESS;
210 int id = std::abs(pID);
211 return (
id == 511 ||
226 int id = std::abs(pID);
227 return (
id == 411 ||
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
virtual StatusCode filterFinalize()
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool isDwithWeakDK(const int pID) const
virtual StatusCode filterEvent()
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Base class for event generator filtering modules.
HeavyFlavorHadronFilter(const std::string &fname, ISvcLocator *pSvcLocator)
bool m_RequestSpecificPDGID
::StatusCode StatusCode
StatusCode definition for legacy code.
Provide simplified clock_gettime() function for MacOSX.
virtual StatusCode filterInitialize()
#define CHECK(...)
Evaluate an expression and check for errors.
bool m_PDGAntiParticleToo
bool isBwithWeakDK(const int pID) const
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.
std::string m_TruthJetContainerName
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.