ATLAS Offline Software
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigMuon
Root
TrigMuonDefs.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Local include(s).
6
#include "
xAODTrigMuon/TrigMuonDefs.h
"
7
8
// System include(s).
9
#include <cmath>
10
11
namespace
xAOD
{
12
13
namespace
L2MuonParameters
{
14
15
16
ECRegions
whichECRegion
(
const
float
eta
,
const
float
phi
){
17
float
absEta = std::fabs(
eta
);
18
if
( ( 1.3 <= absEta && absEta < 1.45) &&
19
( (0 <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
/48. ) ||
20
(
M_PI
*11./48. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*13./48. ) ||
21
(
M_PI
*23./48. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*25./48. ) ||
22
(
M_PI
*35./48. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*37./48. ) ||
23
(
M_PI
*47./48. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
)
24
)
25
)
return
WeakBFieldA
;
26
27
else
if
( ( 1.5 <= absEta && absEta < 1.65 ) &&
28
( (
M_PI
*3./32. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*5./32. ) ||
29
(
M_PI
*11./32. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*13./32.) ||
30
(
M_PI
*19./32. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*21./32.) ||
31
(
M_PI
*27./32. <= std::fabs(
phi
) && std::fabs(
phi
) <
M_PI
*29./32.)
32
)
33
)
return
WeakBFieldB
;
34
35
else
return
Bulk
;
36
}
37
38
}
39
40
}
41
M_PI
#define M_PI
Definition
ActiveFraction.h:11
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
TrigMuonDefs.h
xAOD::L2MuonParameters
Definition
TrigMuonDefs.cxx:13
xAOD::L2MuonParameters::ECRegions
ECRegions
Definition
TrigMuonDefs.h:36
xAOD::L2MuonParameters::WeakBFieldB
@ WeakBFieldB
Definition
TrigMuonDefs.h:36
xAOD::L2MuonParameters::WeakBFieldA
@ WeakBFieldA
Definition
TrigMuonDefs.h:36
xAOD::L2MuonParameters::Bulk
@ Bulk
Definition
TrigMuonDefs.h:36
xAOD::L2MuonParameters::whichECRegion
ECRegions whichECRegion(const float eta, const float phi)
Definition
TrigMuonDefs.cxx:16
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::phi
setEt phi
Definition
TrigEMCluster_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.14.0