ATLAS Offline Software
Simulation
ISF
ISF_Core
ISF_Tools
src
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
6
#include "
GenericParticleOrderingTool.h
"
7
8
// ISF includes
9
#include "
ISF_Event/ISFParticle.h
"
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"
,
17
m_geoIDorder
[
AtlasDetDescr::fAtlasID
]=1,
18
"Order for Inner Detector particles"
);
19
declareProperty(
"OrderBeamPipe"
,
20
m_geoIDorder
[
AtlasDetDescr::fAtlasForward
]=1,
21
"Order for Beam Pipe / Forward particles"
);
22
declareProperty(
"OrderCalo"
,
23
m_geoIDorder
[
AtlasDetDescr::fAtlasCalo
]=1,
24
"Order for Calorimeter particles"
);
25
declareProperty(
"OrderMS"
,
26
m_geoIDorder
[
AtlasDetDescr::fAtlasMS
]=1,
27
"Order for Muon Spectrometer particles"
);
28
declareProperty(
"OrderCavern"
,
29
m_geoIDorder
[
AtlasDetDescr::fAtlasCavern
]=1,
30
"Order for Cavern particles"
);
31
}
32
33
35
ISF::ParticleOrder
ISF::GenericParticleOrderingTool::computeOrder
(
const
ISFParticle
&
p
)
const
{
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
Generated on Thu Nov 7 2024 21:15:40 for ATLAS Offline Software by
1.8.18