|
ATLAS Offline Software
|
#include <xAODMuDstarFilter.h>
|
| xAODMuDstarFilter (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~xAODMuDstarFilter () |
|
virtual StatusCode | filterInitialize () |
|
virtual StatusCode | filterEvent () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
Gaudi::Property< double > | m_PtMinMuon {this,"PtMinMuon", 2500.} |
|
Gaudi::Property< double > | m_PtMaxMuon {this,"PtMaxMuon", 1e9} |
|
Gaudi::Property< double > | m_EtaRangeMuon {this,"EtaRangeMuon", 2.7} |
|
Gaudi::Property< double > | m_PtMinDstar {this,"PtMinDstar", 4500.} |
|
Gaudi::Property< double > | m_PtMaxDstar {this,"PtMaxDstar", 1e9} |
|
Gaudi::Property< double > | m_EtaRangeDstar {this, "EtaRangeDstar", 2.7} |
|
Gaudi::Property< double > | m_RxyMinDstar {this, "RxyMinDstar", -1e9} |
|
Gaudi::Property< double > | m_PtMinPis {this, "PtMinPis", 450.} |
|
Gaudi::Property< double > | m_PtMaxPis {this, "PtMaxPis", 1e9} |
|
Gaudi::Property< double > | m_EtaRangePis {this, "EtaRangePis", 2.7} |
|
Gaudi::Property< double > | m_PtMinKpi {this, "PtMinKpi", 900.} |
|
Gaudi::Property< double > | m_PtMaxKpi {this, "PtMaxKpi", 1e9} |
|
Gaudi::Property< double > | m_EtaRangeKpi {this, "EtaRangeKpi", 2.7} |
|
Gaudi::Property< bool > | m_D0Kpi_only {this, "D0Kpi_only", false} |
|
Gaudi::Property< double > | m_mKpiMin {this, "mKpiMin", 1665.} |
|
Gaudi::Property< double > | m_mKpiMax {this, "mKpiMax", 2065.} |
|
Gaudi::Property< double > | m_delta_m_Max {this, "delta_m_Max", 220.} |
|
Gaudi::Property< double > | m_DstarMu_m_Max {this, "DstarMu_m_Max", 12000.} |
|
const double | m_MuonMass = 105.6583755 |
|
const double | m_PionMass = 139.57039 |
|
const double | m_KaonMass = 493.677 |
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_xaodTruthParticleContainerNameGenKey {this, "TruthParticlesKey", "TruthGen", "ReadHandleKey for the xAODTruthParticlesGen"} |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 38 of file xAODMuDstarFilter.h.
◆ StoreGateSvc_t
◆ xAODMuDstarFilter()
xAODMuDstarFilter::xAODMuDstarFilter |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~xAODMuDstarFilter()
xAODMuDstarFilter::~xAODMuDstarFilter |
( |
| ) |
|
|
virtualdefault |
◆ ATLAS_NOT_CONST_THREAD_SAFE() [1/2]
HepMC::GenEvent* event GenBase::ATLAS_NOT_CONST_THREAD_SAFE |
( |
| ) |
|
|
inlineinherited |
Access the current signal event (first in the McEventCollection)
- Note
- This function will make a new McEventCollection if there is not already a valid one and MakeMcEvent=True.
Definition at line 76 of file GenBase.h.
78 ATH_MSG_ERROR(
"McEventCollection is empty during first event access");
79 return *(
events()->begin());
◆ ATLAS_NOT_CONST_THREAD_SAFE() [2/2]
◆ cmTomm()
void GenBase::cmTomm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 10.
Definition at line 78 of file GenBase.cxx.
79 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
80 const HepMC::FourVector fv((*vtx)->position().x() * 10,
81 (*vtx)->position().y() * 10,
82 (*vtx)->position().z() * 10,
83 (*vtx)->position().t() * 10);
84 (*vtx)->set_position(fv);
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ event_const()
const HepMC::GenEvent* GenBase::event_const |
( |
| ) |
const |
|
inlineinherited |
Access the current signal event (const)
Definition at line 83 of file GenBase.h.
85 ATH_MSG_ERROR(
"Const McEventCollection is empty during first event access");
◆ events_const() [1/2]
◆ events_const() [2/2]
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode GenFilter::execute |
( |
| ) |
|
|
virtualinherited |
- Todo:
- Probably the filter should only look at the first event... right?
Reimplemented from GenBase.
Definition at line 29 of file GenFilter.cxx.
32 return StatusCode::FAILURE;
35 ATH_MSG_WARNING(
"More than one event in current McEventCollection -- which is valid?");
51 sc = StatusCode::FAILURE;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ filterEvent()
StatusCode xAODMuDstarFilter::filterEvent |
( |
| ) |
|
|
virtual |
Implements GenFilter.
Definition at line 95 of file xAODMuDstarFilter.cxx.
101 const EventContext& context = Gaudi::Hive::currentContext();
103 xTruthParticleContainer(
105 if (!xTruthParticleContainer.isValid()) {
106 ATH_MSG_ERROR(
"Could not retrieve xAOD::TruthParticleGenContainer with key:"
109 return StatusCode::FAILURE;
118 std::vector<const xAOD::TruthParticle *>
Muons;
120 unsigned int nPart = xTruthParticleContainer->size();
121 ATH_MSG_DEBUG(
"xAODMuDstarFilter:number of particles " << nPart);
131 ATH_MSG_DEBUG(
"xAODMuDstarFilter: PV x, y = " << primx <<
" , " << primy);
145 Muons.push_back(pitr);
151 setFilterPassed(
false);
152 return StatusCode::SUCCESS;
155 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumMuons = " << NumMuons );
162 if (std::abs(pitr->pdgId()) == MC::DSTAR)
170 if (!(pitr->decayVtx()))
172 double Rxy = std::hypot(pitr->decayVtx()->x() - primx, pitr->decayVtx()->y() - primy);
179 auto firstChild = pitr->decayVtx()->outgoingParticle(0);
180 if (firstChild->pdgId() == pitr->pdgId())
183 TLorentzVector p4_pis;
191 for (
size_t thisChild_id = 0; thisChild_id < pitr->decayVtx()->nOutgoingParticles(); thisChild_id++)
194 auto thisChild = pitr->decayVtx()->outgoingParticle(thisChild_id);
198 if (std::abs(thisChild->pdgId()) == MC::PIPLUS)
206 p4_pis.SetPtEtaPhiM(thisChild->pt(), thisChild->eta(), thisChild->phi(),
m_PionMass);
207 pis_pdg = thisChild->pdgId();
220 int NumChildD0Charged = 0;
221 int NumChildD0neutrinos = 0;
222 int NumChildD0gammas = 0;
223 int ChargeD0Child1 = 0;
224 int ChargeD0Child2 = 0;
226 int NumChildD0pi = 0;
227 int NumChildD0mu = 0;
229 for (
size_t thisChild_id = 0; thisChild_id < pitr->decayVtx()->nOutgoingParticles(); thisChild_id++)
235 if (std::abs(thisChild->pdgId()) == MC::D0)
237 if (! thisChild->decayVtx())
continue;
239 for (
size_t thisChild1_id = 0; thisChild1_id < thisChild->decayVtx()->nOutgoingParticles(); thisChild1_id++)
245 if (thisChild1->isElectron() || thisChild1->isMuon() ||
246 std::abs(thisChild1->pdgId()) == MC::PIPLUS || std::abs(thisChild1->pdgId()) == MC::KPLUS)
256 if (NumChildD0Charged == 1)
258 D0Child1 = thisChild1;
259 ChargeD0Child1 = D0Child1->
charge();
261 if (NumChildD0Charged == 2)
263 D0Child2 = thisChild1;
264 ChargeD0Child2 = D0Child2->charge();
266 if (thisChild1->isMuon())
269 D0ChildMu = thisChild1;
271 if (std::abs(thisChild1->pdgId()) == MC::PIPLUS)
273 if (std::abs(thisChild1->pdgId()) == MC::KPLUS)
276 K_pdg = thisChild1->pdgId();
280 else if (std::abs(thisChild1->pdgId()) == MC::PI0)
284 else if (thisChild1->isNeutrino())
286 NumChildD0neutrinos++;
288 else if (thisChild1->isPhoton())
292 else if (std::abs(thisChild1->pdgId()) == MC::K0 || std::abs(thisChild1->pdgId()) == MC::K0L ||
293 std::abs(thisChild1->pdgId()) == MC::K0S)
298 else if (thisChild1->decayVtx())
300 for (
size_t thisChild2_id = 0; thisChild2_id < thisChild1->decayVtx()->nOutgoingParticles(); thisChild2_id++)
303 auto thisChild2 = thisChild1->decayVtx()->outgoingParticle(thisChild2_id);
307 if (thisChild2->isElectron() || thisChild2->isMuon() ||
308 std::abs(thisChild2->pdgId()) == MC::PIPLUS || std::abs(thisChild2->pdgId()) == MC::KPLUS)
318 if (NumChildD0Charged == 1)
320 D0Child1 = thisChild2;
321 ChargeD0Child2 = D0Child1->charge();
323 if (NumChildD0Charged == 2)
325 D0Child2 = thisChild2;
326 ChargeD0Child2 = D0Child2->charge();
328 if (thisChild2->isMuon())
331 D0ChildMu = thisChild2;
335 else if (std::abs(thisChild2->pdgId()) == MC::PI0)
339 else if (thisChild2->isNeutrino())
341 NumChildD0neutrinos++;
343 else if (thisChild2->isPhoton())
347 else if (std::abs(thisChild2->pdgId()) == MC::K0 || std::abs(thisChild2->pdgId()) == MC::K0L ||
348 std::abs(thisChild2->pdgId()) == MC::K0S)
353 else if (thisChild2->decayVtx())
362 ATH_MSG_DEBUG(
"xAODMuDstarFilter: unexpected D0 granddaughter = " << thisChild2->pdgId());
370 ATH_MSG_DEBUG(
"xAODMuDstarFilter: unexpected D0 daughter = " << thisChild1->pdgId());
374 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumChildD0, NumChildD0Charged = " << NumChildD0 <<
" , " << NumChildD0Charged);
376 if (NumChildD0 <= 3 && NumChildD0Charged == 2 && ChargeD0Child1 * ChargeD0Child2 < 0)
380 if (NumChildD0 == 2 && NumChildD0K == 1 && NumChildD0pi == 1){
396 if (pis_pdg * ChargeD0Child1 > 0)
std::swap(D0Child1, D0Child2);
398 p4_K.SetPtEtaPhiM(D0Child1->pt(), D0Child1->eta(), D0Child1->phi(),
m_KaonMass);
399 TLorentzVector p4_pi;
400 p4_pi.SetPtEtaPhiM(D0Child2->pt(), D0Child2->eta(), D0Child2->phi(),
m_PionMass);
402 TLorentzVector p4_D0 = p4_K + p4_pi;
403 double mKpi = p4_D0.M();
410 TLorentzVector p4_Dstar = p4_D0 + p4_pis;
412 double delta_m = p4_Dstar.M() - mKpi;
420 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumDstars = " << NumDstars);
422 for (
size_t i = 0;
i <
Muons.size(); ++
i)
425 if (NumChildD0mu == 1)
427 if (std::fabs(
Muons[
i]->
pt() - D0ChildMu->pt()) < std::numeric_limits<double>::epsilon())
429 ATH_MSG_DEBUG(
"xAODMuDstarFilter: Mu(pT), D0Mu(pT) = " <<
Muons[
i]->
pt() <<
" , " << D0ChildMu->pt());
432 TLorentzVector p4_Mu;
435 TLorentzVector p4_DstarMu = p4_Dstar + p4_Mu;
437 ATH_MSG_DEBUG(
"xAODMuDstarFilter: p4_DstarMu.M() = " << p4_DstarMu.M());
443 ATH_MSG_DEBUG(
"xAODMuDstarFilter: p4_DstarMu.M() = " << p4_DstarMu.M());
444 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumChildD0, NumChildD0Charged = " << NumChildD0 <<
" , " << NumChildD0Charged);
445 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumChildD0K, NumChildD0pi, NumChildD0mu = " << NumChildD0K <<
" , " << NumChildD0pi <<
" , " << NumChildD0mu);
447 if (NumChildD0mu == 1)
450 ATH_MSG_DEBUG(
"xAODMuDstarFilter: Mu(pT), D0Mu(pT) = " <<
Muons[
i]->
pt() <<
" , " << D0ChildMu->pt());
453 ATH_MSG_DEBUG(
"xAODMuDstarFilter: NumChildD0neutrinos, NumChildD0gammas = " << NumChildD0neutrinos <<
" , " << NumChildD0gammas);
454 ATH_MSG_DEBUG(
"xAODMuDstarFilter: pis_pdg, K_pdg, ChargeD0Child1, ChargeD0Child2 = " << pis_pdg <<
" , " << K_pdg <<
" , " << ChargeD0Child1 <<
" , " << ChargeD0Child2);
456 setFilterPassed(
true);
457 return StatusCode::SUCCESS;
476 setFilterPassed(
false);
477 return StatusCode::SUCCESS;
◆ filterFinalize()
virtual StatusCode GenFilter::filterFinalize |
( |
| ) |
|
|
inlinevirtualinherited |
Reimplemented in xAODM4MuIntervalFilter, xAODParticleDecayFilter, MuDstarFilter, BoostedHadTopAndTopPair, xAODDecaysFinalStateFilter, xAODBSignalFilter, xAODLeptonFilter, TrimuMassRangeFilter, xAODLeptonPairFilter, LeptonFilter, BSignalFilter, DecaysFinalStateFilter, LeptonPairFilter, xAODHTFilter, MultiParticleFilter, xAODHeavyFlavorHadronFilter, DiBjetFilter, FourLeptonInvMassFilter, ParentChildwStatusFilter, xAODTauFilter, xAODXtoVVDecayFilterExtended, VBFHbbEtaSortingFilter, xAODTTbarWithJpsimumuFilter, ParticleDecayFilter, xAODChargedTracksWeightFilter, xAODDiLeptonMassFilter, xAODMultiBjetFilter, xAODMultiCjetFilter, HeavyFlavorHadronFilter, TauFilter, TTbarPlusHeavyFlavorFilter, MultiBjetFilter, XtoVVDecayFilterExtended, ChargedTracksWeightFilter, TTbarWithJpsimumuFilter, DiLeptonMassFilter, HTFilter, QCDTruthJetFilter, QCDTruthMultiJetFilter, M4MuIntervalFilter, and MultiCjetFilter.
Definition at line 47 of file GenFilter.h.
47 {
return StatusCode::SUCCESS; }
◆ filterInitialize()
StatusCode xAODMuDstarFilter::filterInitialize |
( |
| ) |
|
|
virtual |
◆ finalize()
StatusCode GenFilter::finalize |
( |
| ) |
|
|
inherited |
Definition at line 56 of file GenFilter.cxx.
59 return StatusCode::SUCCESS;
◆ GeVToMeV()
void GenBase::GeVToMeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1000.
- Todo:
- Add HepMC units awareness and do it differently when HepMC provides this functionality directly (and reference-based FourVector accessors)
Definition at line 58 of file GenBase.cxx.
59 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
60 const HepMC::FourVector fv((*p)->momentum().px() * 1000,
61 (*p)->momentum().py() * 1000,
62 (*p)->momentum().pz() * 1000,
63 (*p)->momentum().e() * 1000);
64 (*p)->set_momentum(fv);
65 (*p)->set_generated_mass(1000 * (*p)->generated_mass());
◆ initialize()
StatusCode GenFilter::initialize |
( |
| ) |
|
|
virtualinherited |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ MeVToGeV()
void GenBase::MeVToGeV |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event energies/momenta by x 1/1000.
Definition at line 68 of file GenBase.cxx.
69 for (HepMC::GenEvent::particle_iterator
p =
evt->particles_begin();
p !=
evt->particles_end(); ++
p) {
70 const HepMC::FourVector fv((*p)->momentum().px() / 1000,
71 (*p)->momentum().py() / 1000,
72 (*p)->momentum().pz() / 1000,
73 (*p)->momentum().e() / 1000);
74 (*p)->set_momentum(fv);
75 (*p)->set_generated_mass((*p)->generated_mass() / 1000);
◆ mmTocm()
void GenBase::mmTocm |
( |
HepMC::GenEvent * |
evt | ) |
|
|
protectedinherited |
Scale event lengths by x 1/10.
Definition at line 87 of file GenBase.cxx.
88 for (HepMC::GenEvent::vertex_iterator vtx =
evt->vertices_begin(); vtx !=
evt->vertices_end(); ++vtx) {
89 const HepMC::FourVector fv((*vtx)->position().x() / 10,
90 (*vtx)->position().y() / 10,
91 (*vtx)->position().z() / 10,
92 (*vtx)->position().t() / 10);
93 (*vtx)->set_position(fv);
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ nFailed()
int GenFilter::nFailed |
( |
| ) |
const |
|
inlineinherited |
◆ nNeeded()
int GenFilter::nNeeded |
( |
| ) |
const |
|
inlineinherited |
◆ nPassed()
int GenFilter::nPassed |
( |
| ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ particleData()
const HepPDT::ParticleData* GenBase::particleData |
( |
int |
pid | ) |
const |
|
inlineinherited |
Access an element in the particle data table.
Definition at line 126 of file GenBase.h.
◆ particleTable()
const HepPDT::ParticleDataTable& GenBase::particleTable |
( |
| ) |
const |
|
inlineinherited |
Get a particle data table.
Definition at line 118 of file GenBase.h.
◆ partPropSvc()
Access the particle property service.
Definition at line 113 of file GenBase.h.
◆ pdt()
const HepPDT::ParticleDataTable& GenBase::pdt |
( |
| ) |
const |
|
inlineinherited |
Shorter alias to get a particle data table.
Definition at line 123 of file GenBase.h.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_D0Kpi_only
Gaudi::Property<bool> xAODMuDstarFilter::m_D0Kpi_only {this, "D0Kpi_only", false} |
|
private |
◆ m_delta_m_Max
Gaudi::Property<double> xAODMuDstarFilter::m_delta_m_Max {this, "delta_m_Max", 220.} |
|
private |
◆ m_detStore
◆ m_DstarMu_m_Max
Gaudi::Property<double> xAODMuDstarFilter::m_DstarMu_m_Max {this, "DstarMu_m_Max", 12000.} |
|
private |
◆ m_EtaRangeDstar
Gaudi::Property<double> xAODMuDstarFilter::m_EtaRangeDstar {this, "EtaRangeDstar", 2.7} |
|
private |
◆ m_EtaRangeKpi
Gaudi::Property<double> xAODMuDstarFilter::m_EtaRangeKpi {this, "EtaRangeKpi", 2.7} |
|
private |
◆ m_EtaRangeMuon
Gaudi::Property<double> xAODMuDstarFilter::m_EtaRangeMuon {this,"EtaRangeMuon", 2.7} |
|
private |
◆ m_EtaRangePis
Gaudi::Property<double> xAODMuDstarFilter::m_EtaRangePis {this, "EtaRangePis", 2.7} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_KaonMass
const double xAODMuDstarFilter::m_KaonMass = 493.677 |
|
private |
◆ m_mcEventKey
std::string GenBase::m_mcEventKey {} |
|
protectedinherited |
StoreGate key for the MC event collection (defaults to GEN_EVENT)
Definition at line 137 of file GenBase.h.
◆ m_mcevents_const
Const handle to the MC event collection.
Definition at line 163 of file GenBase.h.
◆ m_mkMcEvent
BooleanProperty GenBase::m_mkMcEvent {this, "MakeMcEvent", false, "Create a new MC event collection if it doesn't exist"} |
|
protectedinherited |
Flag to determine if a new MC event collection should be made if it doesn't exist.
Definition at line 139 of file GenBase.h.
◆ m_mKpiMax
Gaudi::Property<double> xAODMuDstarFilter::m_mKpiMax {this, "mKpiMax", 2065.} |
|
private |
◆ m_mKpiMin
Gaudi::Property<double> xAODMuDstarFilter::m_mKpiMin {this, "mKpiMin", 1665.} |
|
private |
◆ m_MuonMass
const double xAODMuDstarFilter::m_MuonMass = 105.6583755 |
|
private |
◆ m_nFail
◆ m_nNeeded
◆ m_nPass
◆ m_PionMass
const double xAODMuDstarFilter::m_PionMass = 139.57039 |
|
private |
◆ m_ppSvc
ServiceHandle<IPartPropSvc> GenBase::m_ppSvc {this, "PartPropSvc", "PartPropSvc"} |
|
privateinherited |
Handle on the particle property service.
Definition at line 160 of file GenBase.h.
◆ m_PtMaxDstar
Gaudi::Property<double> xAODMuDstarFilter::m_PtMaxDstar {this,"PtMaxDstar", 1e9} |
|
private |
◆ m_PtMaxKpi
Gaudi::Property<double> xAODMuDstarFilter::m_PtMaxKpi {this, "PtMaxKpi", 1e9} |
|
private |
◆ m_PtMaxMuon
Gaudi::Property<double> xAODMuDstarFilter::m_PtMaxMuon {this,"PtMaxMuon", 1e9} |
|
private |
◆ m_PtMaxPis
Gaudi::Property<double> xAODMuDstarFilter::m_PtMaxPis {this, "PtMaxPis", 1e9} |
|
private |
◆ m_PtMinDstar
Gaudi::Property<double> xAODMuDstarFilter::m_PtMinDstar {this,"PtMinDstar", 4500.} |
|
private |
◆ m_PtMinKpi
Gaudi::Property<double> xAODMuDstarFilter::m_PtMinKpi {this, "PtMinKpi", 900.} |
|
private |
◆ m_PtMinMuon
Gaudi::Property<double> xAODMuDstarFilter::m_PtMinMuon {this,"PtMinMuon", 2500.} |
|
private |
◆ m_PtMinPis
Gaudi::Property<double> xAODMuDstarFilter::m_PtMinPis {this, "PtMinPis", 450.} |
|
private |
◆ m_RxyMinDstar
Gaudi::Property<double> xAODMuDstarFilter::m_RxyMinDstar {this, "RxyMinDstar", -1e9} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xaodTruthParticleContainerNameGenKey
The documentation for this class was generated from the following files:
Gaudi::Property< double > m_EtaRangePis
Gaudi::Property< bool > m_D0Kpi_only
Gaudi::Property< double > m_mKpiMax
Gaudi::Property< double > m_PtMaxMuon
Scalar phi() const
phi method
const_pointer_type cptr()
Dereference the pointer.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_xaodTruthParticleContainerNameGenKey
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual StatusCode filterEvent()=0
Gaudi::Property< double > m_EtaRangeMuon
Gaudi::Property< double > m_PtMaxKpi
Gaudi::Property< double > m_PtMaxDstar
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode filterInitialize()
float y() const
Vertex y displacement.
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< double > m_PtMinDstar
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
bool isPhysical(const T &p)
Identify if the particle is physical, i.e. is stable or decayed.
ServiceHandle< IPartPropSvc > m_ppSvc
Handle on the particle property service.
Gaudi::Property< double > m_PtMinMuon
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< McEventCollection > m_mcevents_const
Const handle to the MC event collection.
Class describing a truth particle in the MC record.
Gaudi::Property< double > m_delta_m_Max
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Gaudi::Property< double > m_mKpiMin
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual void renounce()=0
const HepPDT::ParticleDataTable & particleTable() const
Get a particle data table.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const TruthVertex_v1 * decayVtx() const
The decay vertex of this particle.
Gaudi::Property< double > m_DstarMu_m_Max
Class describing a truth vertex in the MC record.
Gaudi::Property< double > m_EtaRangeDstar
Gaudi::Property< double > m_EtaRangeKpi
virtual StatusCode filterFinalize()
Gaudi::Property< double > m_PtMinPis
float x() const
Vertex x displacement.
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
Gaudi::Property< double > m_RxyMinDstar
bool isBeam(const T &p)
Identify if the particle is beam particle.
const HepPDT::ParticleDataTable & pdt() const
Shorter alias to get a particle data table.
Gaudi::Property< double > m_PtMaxPis
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
filterPassed
now, add a sequencer: it will only execute seqalg1 and 2 and never 3
GenFilter(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< double > m_PtMinKpi
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const TruthParticle_v1 * outgoingParticle(size_t index) const
Get one of the outgoing particles.
virtual StatusCode initialize() override
double charge() const
Physical charge.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.