ATLAS Offline Software
Loading...
Searching...
No Matches
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).
7
8// System include(s).
9#include <cmath>
10
11namespace xAOD{
12
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
#define M_PI
Scalar eta() const
pseudorapidity method
ECRegions whichECRegion(const float eta, const float phi)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.