ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ISF::GenericParticleOrderingTool Class Reference

#include <GenericParticleOrderingTool.h>

Inheritance diagram for ISF::GenericParticleOrderingTool:
Collaboration diagram for ISF::GenericParticleOrderingTool:

Public Member Functions

 GenericParticleOrderingTool (const std::string &t, const std::string &n, const IInterface *p)
 Constructor with parameters. More...
 
virtual ~GenericParticleOrderingTool ()=default
 Virtual destructor. More...
 
virtual ISF::ParticleOrder computeOrder (const ISFParticle &p) const
 Returns a pass boolean on the particle
More...
 

Private Attributes

ParticleOrder m_geoIDorder [AtlasDetDescr::fNumAtlasRegions]
 particle order per sub detector More...
 

Detailed Description

This AtheanAlgTool orders the particles according to it's SimSvcID.

Author
Elmar.Ritsch -at- cern.ch

Definition at line 26 of file GenericParticleOrderingTool.h.

Constructor & Destructor Documentation

◆ GenericParticleOrderingTool()

ISF::GenericParticleOrderingTool::GenericParticleOrderingTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Constructor with parameters.

Constructor.

Definition at line 12 of file GenericParticleOrderingTool.cxx.

12  :
13  base_class(t,n,p),
14  m_geoIDorder()
15 {
16  declareProperty( "OrderID",
18  "Order for Inner Detector particles");
19  declareProperty( "OrderBeamPipe",
21  "Order for Beam Pipe / Forward particles");
22  declareProperty( "OrderCalo",
24  "Order for Calorimeter particles");
25  declareProperty( "OrderMS",
27  "Order for Muon Spectrometer particles");
28  declareProperty( "OrderCavern",
30  "Order for Cavern particles");
31 }

◆ ~GenericParticleOrderingTool()

virtual ISF::GenericParticleOrderingTool::~GenericParticleOrderingTool ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ computeOrder()

ISF::ParticleOrder ISF::GenericParticleOrderingTool::computeOrder ( const ISFParticle p) const
virtual

Returns a pass boolean on the particle

does the particle pass the this filter?

Definition at line 35 of file GenericParticleOrderingTool.cxx.

35  {
36  // return order set for the current particle geoID
37  AtlasDetDescr::AtlasRegion geoID = p.nextGeoID();
38  ISF::SimSvcID simID = p.nextSimID();
39 
40  // NB: fUndefinedSimID(==0) will get order 0
41  return m_geoIDorder[geoID]*simID;
42 }

Member Data Documentation

◆ m_geoIDorder

ParticleOrder ISF::GenericParticleOrderingTool::m_geoIDorder[AtlasDetDescr::fNumAtlasRegions]
private

particle order per sub detector

Definition at line 39 of file GenericParticleOrderingTool.h.


The documentation for this class was generated from the following files:
AtlasDetDescr::fAtlasForward
@ fAtlasForward
Definition: AtlasRegion.h:34
AtlasDetDescr::AtlasRegion
AtlasRegion
Definition: AtlasRegion.h:27
ISF::GenericParticleOrderingTool::m_geoIDorder
ParticleOrder m_geoIDorder[AtlasDetDescr::fNumAtlasRegions]
particle order per sub detector
Definition: GenericParticleOrderingTool.h:39
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AtlasDetDescr::fAtlasMS
@ fAtlasMS
Definition: AtlasRegion.h:36
beamspotman.n
n
Definition: beamspotman.py:731
AtlasDetDescr::fAtlasCavern
@ fAtlasCavern
Definition: AtlasRegion.h:37
AtlasDetDescr::fAtlasID
@ fAtlasID
Definition: AtlasRegion.h:33
AtlasDetDescr::fAtlasCalo
@ fAtlasCalo
Definition: AtlasRegion.h:35
ISF::SimSvcID
uint8_t SimSvcID
Simulation service ID datatype.
Definition: SimSvcID.h:28