![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/MsgStream.h"
11 ISvcLocator* pSvcLocator)
28 return StatusCode::SUCCESS;
34 return StatusCode::SUCCESS;
49 for(
const auto&
part: *genEvt) {
50 if (std::abs(
part->pdg_id())!=443)
continue;
61 setFilterPassed(pass);
62 return StatusCode::SUCCESS;
70 for (
const auto&
p:
end->particles_out()) {
71 if (std::abs(
p->pdg_id()) !=
type )
return false;
74 HepMC::GenVertex::particle_iterator firstChild =
end->particles_begin(
HepMC::children);
76 for(; firstChild!=endChild; ++firstChild) {
77 int childtype = std::abs((*firstChild)->pdg_id());
78 if( childtype !=
type ) {
89 const HepMC::FourVector& p4 =
part->momentum();
90 double pt = p4.perp();
91 double eta = std::abs(p4.eta());
Scalar eta() const
pseudorapidity method
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual ~TTbarWithJpsimumuFilter()
bool isLeptonDecay(const HepMC::ConstGenParticlePtr &part, int type) const
filter to select ttbar with Jpsi->mumu events
Base class for event generator filtering modules.
virtual StatusCode filterEvent()
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
::StatusCode StatusCode
StatusCode definition for legacy code.
const GenParticle * ConstGenParticlePtr
bool m_selectJpsi
properties
virtual StatusCode filterFinalize()
virtual StatusCode filterInitialize()
TTbarWithJpsimumuFilter(const std::string &fname, ISvcLocator *pSvcLocator)
bool passJpsiSelection(const HepMC::ConstGenParticlePtr &part) const