![]() |
ATLAS Offline Software
|
#include <EtaPtFilterTool.h>
Public Member Functions | |
| EtaPtFilterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor with parameters: | |
| virtual | ~EtaPtFilterTool () |
| Destructor: | |
| StatusCode | buildMcAod (const McEventCollection *in, McEventCollection *out) |
| This method will check the validity of the input McEventCollection and build a filtered one from the strategy implemented by this concrete tool. | |
| StatusCode | initialize () |
| Athena Algorithm's Hooks. | |
| StatusCode | execute () |
| StatusCode | finalize () |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| Inline methods: | |
Protected Types | |
| using | ParticleMap_t |
| using | VertexMap_t |
| typedef ToolHandle< IMcVtxFilterTool > | McVtxFilterTool_t |
| typedef ToolHandle< ITruthIsolationTool > | IsolTool_t |
Protected Member Functions | |
| EtaPtFilterTool () | |
| Default constructor: | |
| StatusCode | buildGenEvent (const HepMC::GenEvent *in, HepMC::GenEvent *out) |
| This method will check the validity of the input HepMC::GenEvent and build a filtered one from the strategy implemented by this concrete tool. | |
| bool | isAccepted (const HepMC::ConstGenParticlePtr &mcPart) const |
| Check if a given particle is within the acceptance (pt+eta) | |
| bool | isAccepted (const HepMC::ConstGenVertexPtr &vtx) const |
| Check if a given vertex has at least one in-going or out-going particle within the acceptance (pt+eta) | |
| StatusCode | addVertex (const HepMC::ConstGenVertexPtr &srcVtx, HepMC::GenEvent *evt, VertexMap_t &vmap, ParticleMap_t &pmap, bool isSignalVertex=false) const |
| Helper method to copy a given vertex and add it to a GenEvent. | |
| bool | isPartonVertex (const HepMC::ConstGenVertexPtr &vtx) const |
| bool | isFromHardScattering (const HepMC::ConstGenVertexPtr &vtx) const |
| StatusCode | initializeTool () |
| Method to initialize the tool: we need to check the validity of the parameters given for the inner and outer eta regions. | |
| void | setupInnerEtaRegionCuts (Gaudi::Details::PropertyBase &innerEtaRegionCuts) |
| Callback function to setup the "InnerEtaRegionCuts" property. | |
| void | setupOuterEtaRegionCuts (Gaudi::Details::PropertyBase &outerEtaRegionCuts) |
| Callback function to setup the "OuterEtaRegionCuts" property. | |
| virtual StatusCode | finalizeTool () |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Protected Attributes | |
| DoubleArrayProperty | m_innerEtaRegionCuts |
| vector of cuts parameters for the inner region delimited in |eta| 0-th element is the minimum |eta| of this region 1-st element is the maximum |eta| of this region 2-nd element is the minimum pt for the stable particles to be accepted | |
| DoubleArrayProperty | m_outerEtaRegionCuts |
| vector of cuts parameters for the outer region delimited in |eta| 0-th element is the minimum |eta| of this region 1-st element is the maximum |eta| of this region 2-nd element is the minimum pt for the stable particles to be accepted | |
| BooleanProperty | m_onlyGenerator |
| Switch to only include particles from generation and reject particles from detector simulation (Geant4) | |
| BooleanProperty | m_butKeepAllGeneratorStable |
| Switch to keep all stable generator particles (IsGenStable) regardless what eta or pt cuts are defined. | |
| BooleanProperty | m_keepDocumentaries |
| Switch to keep all generator particles which are documentaries (statuscode == 3) | |
| BooleanProperty | m_keepAllLeptons |
| Switch to keep all leptons - i.e. | |
| std::map< int, double > | m_isol_energies |
| McVtxFilterTool_t | m_mcVtxFilterTool |
| Pointer to the McVtxFilterTool to be able to select additional vertices on some decay pattern criterion. | |
| IsolTool_t | m_isolationTool |
| Pointer to the TruthIsolationTool to be able to compute transverse energy isolations for various isolation cones cuts. | |
| BooleanProperty | m_doEtIsolation |
Switch to compute or not the Et-isolations for TruthParticle (and their underlying HepMC::GenParticle). | |
| SG::ReadHandleKey< McEventCollection > | m_mcEventsReadHandleKey {this,"McEvents","TruthEvent","ReadHandleKey for input McEventCollection one wants to filter"} |
| ReadHandleKey for the input McEventCollection one wants to filter. | |
| SG::WriteHandleKey< McEventCollection > | m_mcEventsOutputWriteHandleKey {this,"McEventsOutput","GEN_AOD","WriteHandleKey for the output McEventCollection which has been filtered"} |
| Location of the output McEventCollection which has been filtered. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 23 of file EtaPtFilterTool.h.
|
protectedinherited |
Definition at line 80 of file TruthParticleFilterBaseTool.h.
|
protectedinherited |
Definition at line 74 of file TruthParticleFilterBaseTool.h.
|
protected |
Definition at line 53 of file EtaPtFilterTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
protected |
Definition at line 55 of file EtaPtFilterTool.h.
| EtaPtFilterTool::EtaPtFilterTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor with parameters:
Constructors.
Definition at line 34 of file EtaPtFilterTool.cxx.
|
virtual |
|
protected |
Default constructor:
|
protected |
Helper method to copy a given vertex and add it to a GenEvent.
Fill the parent branch
Fill the children branch
Definition at line 295 of file EtaPtFilterTool.cxx.
|
protected |
This method will check the validity of the input HepMC::GenEvent and build a filtered one from the strategy implemented by this concrete tool.
Const methods:
Definition at line 155 of file EtaPtFilterTool.cxx.
|
virtual |
This method will check the validity of the input McEventCollection and build a filtered one from the strategy implemented by this concrete tool.
Implements ITruthParticleFilterTool.
Definition at line 111 of file EtaPtFilterTool.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
virtualinherited |
Implements ITruthParticleFilterTool.
Definition at line 120 of file TruthParticleFilterBaseTool.cxx.
|
protectedinherited |
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
|
virtualinherited |
Implements ITruthParticleFilterTool.
Definition at line 105 of file TruthParticleFilterBaseTool.cxx.
|
inlineprotectedvirtualinherited |
Definition at line 124 of file TruthParticleFilterBaseTool.h.
|
virtualinherited |
Athena Algorithm's Hooks.
Retrieves a private AlgTool to filter a McEventCollection
Retrieves the isolation tool (public, to be used also in TruthParticleCnvTool)
Implements ITruthParticleFilterTool.
Definition at line 65 of file TruthParticleFilterBaseTool.cxx.
|
protectedvirtual |
Method to initialize the tool: we need to check the validity of the parameters given for the inner and outer eta regions.
Non-const methods:
Reimplemented from TruthParticleFilterBaseTool.
Definition at line 459 of file EtaPtFilterTool.cxx.
|
overridevirtualinherited |
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.
|
inlinestaticinherited |
Inline methods:
Definition at line 70 of file ITruthParticleFilterTool.h.
|
protected |
Check if a given particle is within the acceptance (pt+eta)
Definition at line 191 of file EtaPtFilterTool.cxx.
|
protected |
Check if a given vertex has at least one in-going or out-going particle within the acceptance (pt+eta)
Definition at line 244 of file EtaPtFilterTool.cxx.
|
protected |
Definition at line 441 of file EtaPtFilterTool.cxx.
|
protected |
Definition at line 417 of file EtaPtFilterTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
protected |
Callback function to setup the "InnerEtaRegionCuts" property.
Definition at line 497 of file EtaPtFilterTool.cxx.
|
protected |
Callback function to setup the "OuterEtaRegionCuts" property.
Definition at line 502 of file EtaPtFilterTool.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
protected |
Switch to keep all stable generator particles (IsGenStable) regardless what eta or pt cuts are defined.
Definition at line 136 of file EtaPtFilterTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protectedinherited |
Switch to compute or not the Et-isolations for TruthParticle (and their underlying HepMC::GenParticle).
Default is to not compute these Et-isolations (and save CPU)
Definition at line 94 of file TruthParticleFilterBaseTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protected |
vector of cuts parameters for the inner region delimited in |eta| 0-th element is the minimum |eta| of this region 1-st element is the maximum |eta| of this region 2-nd element is the minimum pt for the stable particles to be accepted
Definition at line 119 of file EtaPtFilterTool.h.
|
protected |
Definition at line 149 of file EtaPtFilterTool.h.
|
protectedinherited |
Pointer to the TruthIsolationTool to be able to compute transverse energy isolations for various isolation cones cuts.
See McParticleEvent/TruthParticleParameters.h for cone cuts.
Definition at line 85 of file TruthParticleFilterBaseTool.h.
|
protected |
Switch to keep all leptons - i.e.
do not apply kinematic cuts on them
Definition at line 145 of file EtaPtFilterTool.h.
|
protected |
Switch to keep all generator particles which are documentaries (statuscode == 3)
Definition at line 141 of file EtaPtFilterTool.h.
|
protectedinherited |
Location of the output McEventCollection which has been filtered.
Definition at line 104 of file TruthParticleFilterBaseTool.h.
|
protectedinherited |
ReadHandleKey for the input McEventCollection one wants to filter.
Definition at line 100 of file TruthParticleFilterBaseTool.h.
|
protectedinherited |
Pointer to the McVtxFilterTool to be able to select additional vertices on some decay pattern criterion.
Definition at line 78 of file TruthParticleFilterBaseTool.h.
|
protected |
Switch to only include particles from generation and reject particles from detector simulation (Geant4)
Definition at line 131 of file EtaPtFilterTool.h.
|
protected |
vector of cuts parameters for the outer region delimited in |eta| 0-th element is the minimum |eta| of this region 1-st element is the maximum |eta| of this region 2-nd element is the minimum pt for the stable particles to be accepted
Definition at line 126 of file EtaPtFilterTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.