Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <xAODTauFilter.h>
|
| xAODTauFilter (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | filterInitialize () override final |
|
virtual StatusCode | filterFinalize () override final |
|
virtual StatusCode | filterEvent () override final |
|
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 |
|
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthPartContKey {this, "TruthParticleContainerKey", "TruthTaus"} |
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc"} |
|
Gaudi::Property< int > | m_Ntau {this, "Ntaus", 1} |
|
Gaudi::Property< double > | m_etaMaxe {this, "EtaMaxe", 2.5} |
|
Gaudi::Property< double > | m_etaMaxmu {this, "EtaMaxmu", 2.5} |
|
Gaudi::Property< double > | m_etaMaxhad {this, "EtaMaxhad", 2.5} |
|
Gaudi::Property< double > | m_pTmine {this, "Ptcute", 12000.0} |
|
Gaudi::Property< double > | m_pTminmu {this, "Ptcutmu", 12000.0} |
|
Gaudi::Property< double > | m_pTminhad {this, "Ptcuthad", 12000.0} |
|
Gaudi::Property< bool > | m_NewOpt {this, "UseNewOptions", false} |
|
Gaudi::Property< int > | m_Nleptau {this, "Nleptaus", 0} |
|
Gaudi::Property< int > | m_Nhadtau {this, "Nhadtaus", 0} |
|
Gaudi::Property< double > | m_etaMaxlep {this, "EtaMaxlep", 2.6} |
|
Gaudi::Property< double > | m_pTminlep {this, "Ptcutlep", 7000.0} |
|
Gaudi::Property< double > | m_pTminlep_lead {this, "Ptcutlep_lead", 7000.0} |
|
Gaudi::Property< double > | m_pTminhad_lead {this, "Ptcuthad_lead", 12000.0} |
|
Gaudi::Property< bool > | m_ReverseFilter {this, "ReverseFilter", false} |
|
Gaudi::Property< bool > | m_HasTightRegion {this, "HasTightRegion", false} |
|
Gaudi::Property< double > | m_LooseRejectionFactor {this, "LooseRejectionFactor", 1} |
|
Gaudi::Property< double > | m_pTminlep_tight {this, "Ptcutlep_tight", 7000.0} |
|
Gaudi::Property< double > | m_pTminlep_tight_lead {this, "Ptcutlep_tight_lead", 7000.0} |
|
Gaudi::Property< double > | m_pTminhad_tight {this, "Ptcuthad_tight", 12000.0} |
|
Gaudi::Property< double > | m_pTminhad_tight_lead {this, "Ptcuthad_tight_lead", 12000.0} |
|
Gaudi::Property< int > | m_filterEventNumber {this, "filterEventNumber", 0} |
|
Gaudi::Property< bool > | m_useMaxNTaus {this, "UseMaxNTaus", false} |
|
Gaudi::Property< int > | m_maxNtau {this, "MaxNtaus", 100} |
|
Gaudi::Property< int > | m_maxNhadtau {this, "MaxNhadtaus", 100} |
|
Gaudi::Property< int > | m_maxNleptau {this, "MaxNleptaus", 100} |
|
double | m_events [6] |
|
double | m_events_sel [6] |
|
double | m_eventse {} |
|
double | m_eventsmu {} |
|
double | m_eventshad {} |
|
double | m_eventseacc {} |
|
double | m_eventsmuacc {} |
|
double | m_eventshadacc {} |
|
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 |
|
- Author
- Michael Heldmann, Jan 2003 updated by Xin Chen, Nov. 2016 updated by Simon Arnling B????th, Nov. 2017
Definition at line 21 of file xAODTauFilter.h.
◆ StoreGateSvc_t
◆ xAODTauFilter()
xAODTauFilter::xAODTauFilter |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ 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 xAODTauFilter::filterEvent |
( |
| ) |
|
|
finaloverridevirtual |
Implements GenFilter.
Definition at line 58 of file xAODTauFilter.cxx.
60 CLHEP::HepRandomEngine* rndm{};
62 const EventContext& ctx = Gaudi::Hive::currentContext();
65 ATH_MSG_ERROR(
"Failed to retrieve random number engine for xAODTauFilter");
66 setFilterPassed(
false);
67 return StatusCode::SUCCESS;
71 CLHEP::HepLorentzVector mom_tauprod;
72 CLHEP::HepLorentzVector tauvis;
73 CLHEP::HepLorentzVector nutau;
80 int ntaulep_tight = 0;
81 int ntauhad_tight = 0;
86 CHECK(xTruthParticleContainer.isValid());
89 setFilterPassed(
false);
93 setFilterPassed(
false);
94 return StatusCode::SUCCESS;
97 setFilterPassed(
false);
98 return StatusCode::SUCCESS;
101 auto wgtsC = genEvt->weights();
102 weight = wgtsC.size() > 0 ? wgtsC[0] : 1;
106 for (
const auto * truthtau : *xTruthParticleContainer) {
114 tau->
phi() <<
"\t" <<
115 tau->
pdgId() <<
"\t");
124 int tauType = tauTypeAcc (*tau);
132 nutau = nuVectorAcc (*tau);
134 ATH_MSG_DEBUG(nutau.perp() <<
" nutau \t" << nutau.eta() <<
"\t" << nutau.phi() <<
"\t" << tauType);
136 tauvis.setPx(tau->
px()-nutau.px());
137 tauvis.setPy(tau->
py()-nutau.py());
138 tauvis.setPz(tau->
pz()-nutau.pz());
139 tauvis.setE(tau->
e()-nutau.e());
141 ATH_MSG_DEBUG(tauvis.perp() <<
" tauvis \t" << tauvis.eta() <<
"\t" << tauvis.phi() <<
"\t" << tauType);
142 if ( tauType == 1 ) {
145 if ( tauvis.perp() <
m_pTmine )
continue;
146 if ( std::abs( tauvis.eta() ) >
m_etaMaxe )
continue;
152 if ( std::abs( tauvis.eta() ) >
m_etaMaxlep )
continue;
154 if ( tauvis.perp() >= ptlep_max ) ptlep_max = tauvis.perp();
159 else if ( tauType == 2 ) {
162 if ( tauvis.perp() <
m_pTminmu )
continue;
163 if ( std::abs( tauvis.eta() ) >
m_etaMaxmu )
continue;
169 if ( std::abs( tauvis.eta() ) >
m_etaMaxlep )
continue;
171 if ( tauvis.perp() >= ptlep_max ) ptlep_max = tauvis.perp();
176 else if ( tauType == 0 ) {
179 if ( std::abs( tauvis.eta() ) >
m_etaMaxhad )
continue;
183 if ( tauvis.perp() >= pthad_max ) pthad_max = tauvis.perp();
188 ATH_MSG_DEBUG(
"Could not find a tauType! Something went wrong.");
189 std::cout << std::endl << std::endl <<
"************ COULD NOT FIND A TAU TYPE *****************" << std::endl << std::endl;
200 bool pass2 = ( ntaulep_tight + ntauhad_tight >=
m_Ntau
207 bool pass3 = (ntaulep + ntauhad >=
m_Ntau
221 double extra_weight = 1;
229 double rnd = rndm->flat();
263 if (
evtStore()->retrieve( mecc ).isFailure() || !mecc ){
264 setFilterPassed(
false);
265 ATH_MSG_ERROR(
"Could not retrieve MC Event Collection - weight might not work");
266 return StatusCode::SUCCESS;
271 for (
unsigned int i = 0;
i < mec->
size(); ++
i) {
272 if (!(*mec)[
i])
continue;
273 double existingWeight = (*mec)[
i]->weights().
size()>0 ? (*mec)[
i]->weights()[0] : 1.;
274 if ((*mec)[
i]->weights().size()>0) {
275 for (
unsigned int iw = 0; iw < (*mec)[
i]->weights().size(); ++iw) {
276 double existWeight = (*mec)[
i]->weights()[iw];
277 (*mec)[
i]->weights()[iw] = existWeight*extra_weight;
282 (*mec)[
i]->weights().push_back( existingWeight*extra_weight );
286 (*mec)[
i]->add_attribute(
"filterWeight", std::make_shared<HepMC3::DoubleAttribute>(extra_weight));
296 setFilterPassed(pass);
298 return StatusCode::SUCCESS;
◆ filterFinalize()
StatusCode xAODTauFilter::filterFinalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ filterInitialize()
StatusCode xAODTauFilter::filterInitialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ finalize()
StatusCode GenFilter::finalize |
( |
| ) |
|
|
inherited |
Definition at line 56 of file GenFilter.cxx.
59 return StatusCode::SUCCESS;
◆ getRandomEngine()
CLHEP::HepRandomEngine * xAODTauFilter::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
◆ 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_detStore
◆ m_etaMaxe
Gaudi::Property<double> xAODTauFilter::m_etaMaxe {this, "EtaMaxe", 2.5} |
|
private |
◆ m_etaMaxhad
Gaudi::Property<double> xAODTauFilter::m_etaMaxhad {this, "EtaMaxhad", 2.5} |
|
private |
◆ m_etaMaxlep
Gaudi::Property<double> xAODTauFilter::m_etaMaxlep {this, "EtaMaxlep", 2.6} |
|
private |
◆ m_etaMaxmu
Gaudi::Property<double> xAODTauFilter::m_etaMaxmu {this, "EtaMaxmu", 2.5} |
|
private |
◆ m_events
double xAODTauFilter::m_events[6] |
|
private |
◆ m_events_sel
double xAODTauFilter::m_events_sel[6] |
|
private |
◆ m_eventse
double xAODTauFilter::m_eventse {} |
|
private |
◆ m_eventseacc
double xAODTauFilter::m_eventseacc {} |
|
private |
◆ m_eventshad
double xAODTauFilter::m_eventshad {} |
|
private |
◆ m_eventshadacc
double xAODTauFilter::m_eventshadacc {} |
|
private |
◆ m_eventsmu
double xAODTauFilter::m_eventsmu {} |
|
private |
◆ m_eventsmuacc
double xAODTauFilter::m_eventsmuacc {} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_filterEventNumber
Gaudi::Property<int> xAODTauFilter::m_filterEventNumber {this, "filterEventNumber", 0} |
|
private |
◆ m_HasTightRegion
Gaudi::Property<bool> xAODTauFilter::m_HasTightRegion {this, "HasTightRegion", false} |
|
private |
◆ m_LooseRejectionFactor
Gaudi::Property<double> xAODTauFilter::m_LooseRejectionFactor {this, "LooseRejectionFactor", 1} |
|
private |
◆ m_maxNhadtau
Gaudi::Property<int> xAODTauFilter::m_maxNhadtau {this, "MaxNhadtaus", 100} |
|
private |
◆ m_maxNleptau
Gaudi::Property<int> xAODTauFilter::m_maxNleptau {this, "MaxNleptaus", 100} |
|
private |
◆ m_maxNtau
Gaudi::Property<int> xAODTauFilter::m_maxNtau {this, "MaxNtaus", 100} |
|
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_NewOpt
Gaudi::Property<bool> xAODTauFilter::m_NewOpt {this, "UseNewOptions", false} |
|
private |
◆ m_nFail
◆ m_Nhadtau
Gaudi::Property<int> xAODTauFilter::m_Nhadtau {this, "Nhadtaus", 0} |
|
private |
◆ m_Nleptau
Gaudi::Property<int> xAODTauFilter::m_Nleptau {this, "Nleptaus", 0} |
|
private |
◆ m_nNeeded
◆ m_nPass
◆ m_Ntau
Gaudi::Property<int> xAODTauFilter::m_Ntau {this, "Ntaus", 1} |
|
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_pTmine
Gaudi::Property<double> xAODTauFilter::m_pTmine {this, "Ptcute", 12000.0} |
|
private |
◆ m_pTminhad
Gaudi::Property<double> xAODTauFilter::m_pTminhad {this, "Ptcuthad", 12000.0} |
|
private |
◆ m_pTminhad_lead
Gaudi::Property<double> xAODTauFilter::m_pTminhad_lead {this, "Ptcuthad_lead", 12000.0} |
|
private |
◆ m_pTminhad_tight
Gaudi::Property<double> xAODTauFilter::m_pTminhad_tight {this, "Ptcuthad_tight", 12000.0} |
|
private |
◆ m_pTminhad_tight_lead
Gaudi::Property<double> xAODTauFilter::m_pTminhad_tight_lead {this, "Ptcuthad_tight_lead", 12000.0} |
|
private |
◆ m_pTminlep
Gaudi::Property<double> xAODTauFilter::m_pTminlep {this, "Ptcutlep", 7000.0} |
|
private |
◆ m_pTminlep_lead
Gaudi::Property<double> xAODTauFilter::m_pTminlep_lead {this, "Ptcutlep_lead", 7000.0} |
|
private |
◆ m_pTminlep_tight
Gaudi::Property<double> xAODTauFilter::m_pTminlep_tight {this, "Ptcutlep_tight", 7000.0} |
|
private |
◆ m_pTminlep_tight_lead
Gaudi::Property<double> xAODTauFilter::m_pTminlep_tight_lead {this, "Ptcutlep_tight_lead", 7000.0} |
|
private |
◆ m_pTminmu
Gaudi::Property<double> xAODTauFilter::m_pTminmu {this, "Ptcutmu", 12000.0} |
|
private |
◆ m_ReverseFilter
Gaudi::Property<bool> xAODTauFilter::m_ReverseFilter {this, "ReverseFilter", false} |
|
private |
◆ m_rndmSvc
◆ m_truthPartContKey
◆ m_useMaxNTaus
Gaudi::Property<bool> xAODTauFilter::m_useMaxNTaus {this, "UseMaxNTaus", false} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
Gaudi::Property< bool > m_useMaxNTaus
Gaudi::Property< bool > m_HasTightRegion
const_pointer_type cptr()
Dereference the pointer.
float pz() const
The z component of the particle's momentum.
Gaudi::Property< double > m_pTminhad
Gaudi::Property< double > m_etaMaxhad
ServiceHandle< IAthRNGSvc > m_rndmSvc
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< int > m_Ntau
Gaudi::Property< bool > m_ReverseFilter
float px() const
The x component of the particle's momentum.
Gaudi::Property< int > m_maxNhadtau
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_pTminlep_lead
float py() const
The y component of the particle's momentum.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< double > m_etaMaxlep
virtual StatusCode filterInitialize()
Gaudi::Property< bool > m_NewOpt
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< int > m_maxNtau
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Gaudi::Property< double > m_pTminlep_tight_lead
Gaudi::Property< int > m_Nleptau
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.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Property< double > m_pTminlep
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual double e() const override final
The total energy of the particle.
Gaudi::Property< double > m_etaMaxe
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.
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Gaudi::Property< double > m_pTminmu
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Gaudi::Property< int > m_maxNleptau
Gaudi::Property< int > m_Nhadtau
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Gaudi::Property< double > m_pTmine
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
A wrapper class for event-slot-local random engines.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthPartContKey
Gaudi::Property< double > m_LooseRejectionFactor
Gaudi::Property< double > m_pTminlep_tight
Gaudi::Property< double > m_pTminhad_lead
virtual StatusCode filterFinalize()
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
DataObjIDColl m_extendedExtraObjects
bool empty() const noexcept
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
#define ATH_MSG_WARNING(x)
Gaudi::Property< double > m_etaMaxmu
const HepPDT::ParticleDataTable & pdt() const
Shorter alias to get a particle data table.
Gaudi::Property< double > m_pTminhad_tight
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
filterPassed
now, add a sequencer: it will only execute seqalg1 and 2 and never 3
GenFilter(const std::string &name, ISvcLocator *pSvcLocator)
int pdgId() const
PDG ID code.
Gaudi::Property< double > m_pTminhad_tight_lead
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Property< int > m_filterEventNumber
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual StatusCode initialize() override
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
double abseta() const
The absolute pseudorapidity ( ) of the particle.