ATLAS Offline Software
GenericParticleOrderingTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // class header include
7 
8 // ISF includes
10 
12 ISF::GenericParticleOrderingTool::GenericParticleOrderingTool(const std::string& t, const std::string& n, const IInterface* p) :
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 }
32 
33 
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 }
AtlasDetDescr::fAtlasForward
@ fAtlasForward
Definition: AtlasRegion.h:34
AtlasDetDescr::AtlasRegion
AtlasRegion
Definition: AtlasRegion.h:27
ISF::ISFParticle
Definition: ISFParticle.h:42
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
ISF::GenericParticleOrderingTool::computeOrder
virtual ISF::ParticleOrder computeOrder(const ISFParticle &p) const
Returns a pass boolean on the particle
Definition: GenericParticleOrderingTool.cxx:35
ISF::ParticleOrder
int ParticleOrder
particle order definition
Definition: ParticleOrder.h:15
ISFParticle.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AtlasDetDescr::fAtlasMS
@ fAtlasMS
Definition: AtlasRegion.h:36
beamspotman.n
n
Definition: beamspotman.py:731
ISF::GenericParticleOrderingTool::GenericParticleOrderingTool
GenericParticleOrderingTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: GenericParticleOrderingTool.cxx:12
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
GenericParticleOrderingTool.h