|
ATLAS Offline Software
|
#include <MMT_struct.h>
Definition at line 24 of file MMT_struct.h.
◆ MMT_Parameters()
Definition at line 11 of file MMT_struct.cxx.
31 std::string wedgeString = (wedgeSize==
'L' ?
"MML" :
"MMS");
41 "\t\t\t\t Total Strips: " << roParam_bottom_mult1.
tStrips <<
" with pitch: " << roParam_bottom_mult1.
stripPitch <<
"\n" <<
44 "\t\t\t\t (Top, Bottom, Length): (" << mm_bottom_mult1->
lWidth() <<
", " << mm_bottom_mult1->
sWidth() <<
", " << mm_bottom_mult1->
Length() <<
")\n" <<
45 "\t\t\t\t Zpos - Distance from ZAxis: " << roParam_bottom_mult1.
zpos <<
" - " << roParam_bottom_mult1.
distanceFromZAxis <<
"\n" <<
46 "\t\t\t\t dlStereoTop/Bottom: " << roParam_bottom_mult1.
dlStereoTop <<
" " << roParam_bottom_mult1.
dlStereoBottom <<
"\n" <<
52 "\t\t\t\t Total Strips: " << roParam_bottom_mult1.
tStrips <<
" with pitch: " << roParam_bottom_mult1.
stripPitch <<
"\n" <<
53 "\t\t\t\t (Top, Bottom, Length): (" << mm_bottom_mult1->
lWidth() <<
", " << mm_bottom_mult1->
sWidth() <<
", " << mm_bottom_mult1->
Length() <<
")\n" <<
54 "\t\t\t\t Zpos - Distance from ZAxis: " << roParam_bottom_mult1.
zpos <<
" - " << roParam_bottom_mult1.
distanceFromZAxis <<
"\n" <<
55 "\t\t\t\t dlStereoTop/Bottom: " << roParam_bottom_mult1.
dlStereoTop <<
" " << roParam_bottom_mult1.
dlStereoBottom <<
"\n" <<
61 "\t\t\t\t Total Strips: " << roParam_top_mult1.
tStrips <<
" with pitch: " << roParam_top_mult1.
stripPitch <<
"\n" <<
64 "\t\t\t\t (Top, Bottom, Length): (" << mm_top_mult1->
lWidth() <<
", " << mm_top_mult1->
sWidth() <<
", " << mm_top_mult1->
Length() <<
")\n" <<
65 "\t\t\t\t Zpos - Distance from ZAxis: " << roParam_top_mult1.
zpos <<
" - " << roParam_top_mult1.
distanceFromZAxis <<
"\n" <<
72 "\t\t\t\t (Top, Bottom, Length): (" << mm_top_mult1->
lWidth() <<
", " << mm_top_mult1->
sWidth() <<
", " << mm_top_mult1->
Length() <<
")\n" <<
73 "\t\t\t\t Zpos - Distance from ZAxis: " << roParam_top_mult1.
zpos <<
" - " << roParam_top_mult1.
distanceFromZAxis <<
"\n" <<
80 std::vector<double> z_nominal;
84 if(z_nominal.size() != layerSetup.size()){
85 ATH_MSG_WARNING(
"Number of planes in setup is "<< layerSetup.size() <<
", but we have a nominal " << z_nominal.size() <<
" planes.");
86 throw std::runtime_error(
"MMT_Parameters: Invalid number of planes");
96 float x_rotated = 0.0;
97 float y_rotated = 0.0;
101 float radial_pos = 0;
102 float radial_pos_xx_1 = 0, radial_pos_xx_2 = 0;
103 float radial_pos_uv_1 = 0, radial_pos_uv_2 = 0;
105 for (
unsigned int eta = 1;
eta <= 2;
eta++){
106 unsigned int layer = 1;
109 if (wedgeString==
"MMS"){
110 x_rotated =
pos.X()*cos_rotation -
pos.Y()*sin_rotation;
111 y_rotated =
pos.X()*sin_rotation +
pos.Y()*cos_rotation;
118 if (
is_u(
layer)) st_angle = -1*std::abs(stereo_degree);
119 else if (
is_v(
layer)) st_angle = std::abs(stereo_degree);
124 radial_pos = std::abs(x_rotated - y_rotated*
std::tan(st_angle *
M_PI/180.0));
126 if (
is_x(
layer) &&
eta==1) radial_pos_xx_1 = radial_pos;
127 else if (
is_x(
layer) &&
eta==2) radial_pos_xx_2 = radial_pos;
128 if (
is_u(
layer) &&
eta==1) radial_pos_uv_1 = radial_pos;
129 else if (
is_u(
layer) &&
eta==2) radial_pos_uv_2 = radial_pos;
136 std::array<float, 2> radial_pos_xx = {radial_pos_xx_1, radial_pos_xx_2};
137 std::array<float, 2> radial_pos_uv = {radial_pos_uv_1, radial_pos_uv_2};
◆ getLowerBoundEta1()
double MMT_Parameters::getLowerBoundEta1 |
( |
| ) |
const |
|
inline |
◆ getLowerBoundEta2()
double MMT_Parameters::getLowerBoundEta2 |
( |
| ) |
const |
|
inline |
◆ getlWidth()
double MMT_Parameters::getlWidth |
( |
| ) |
const |
|
inline |
◆ getMissedBottomEtaStrips()
double MMT_Parameters::getMissedBottomEtaStrips |
( |
| ) |
const |
|
inline |
◆ getMissedBottomStereoStrips()
double MMT_Parameters::getMissedBottomStereoStrips |
( |
| ) |
const |
|
inline |
◆ getPitch()
double MMT_Parameters::getPitch |
( |
| ) |
const |
|
inline |
◆ getSector()
char MMT_Parameters::getSector |
( |
| ) |
const |
|
inline |
◆ getYbase()
double MMT_Parameters::getYbase |
( |
int |
plane, |
|
|
int |
eta |
|
) |
| const |
|
inline |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ is_u()
bool MMT_Parameters::is_u |
( |
int |
plane | ) |
const |
|
inline |
Definition at line 34 of file MMT_struct.h.
35 static const std::set<unsigned int> planes_u {3, 5};
36 return planes_u.count(plane);
◆ is_v()
bool MMT_Parameters::is_v |
( |
int |
plane | ) |
const |
|
inline |
Definition at line 38 of file MMT_struct.h.
39 static const std::set<unsigned int> planes_v{4, 6};
40 return planes_v.count(plane);
◆ is_x()
bool MMT_Parameters::is_x |
( |
int |
plane | ) |
const |
|
inline |
Definition at line 30 of file MMT_struct.h.
31 static const std::set<unsigned int> planes_x{1, 2, 7, 8};
32 return planes_x.count(plane);
◆ MM_firststrip_positions()
Definition at line 148 of file MMT_struct.cxx.
150 std::vector<ROOT::Math::XYZVector> positions;
151 positions.reserve(8);
156 unsigned int n_multiplets = 2;
157 unsigned int n_layers = 4;
159 for (
unsigned int mult = 1; mult <= n_multiplets; mult++) {
165 ROOT::Math::XYZVector coordinates(0.,0.,0.);
167 else ATH_MSG_WARNING(
"Wedge " << wedge <<
" phi " <<
phi <<
" multiplet " << mult <<
" layer " <<
layer <<
" | Unable to retrieve global positions");
168 positions.push_back(coordinates);
171 <<
" wedge size " << wedge
172 <<
" multiplet " << mult
173 <<
" layer " <<
layer
174 <<
" | z = " << coordinates.Z() );
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_innerRadiusEta1
double MMT_Parameters::m_innerRadiusEta1 |
|
private |
◆ m_innerRadiusEta2
double MMT_Parameters::m_innerRadiusEta2 |
|
private |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_lWidth
double MMT_Parameters::m_lWidth |
|
private |
◆ m_missedBottomEta
double MMT_Parameters::m_missedBottomEta |
|
private |
◆ m_missedBottomStereo
double MMT_Parameters::m_missedBottomStereo |
|
private |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_pitch
double MMT_Parameters::m_pitch |
|
private |
◆ m_sector
char MMT_Parameters::m_sector |
|
private |
◆ m_ybases
std::array<std::array<float, 2>, 8> MMT_Parameters::m_ybases |
|
private |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
double activeBottomLength
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
const MmIdHelper * mmIdHelper() const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
MMReadoutParameters & GetReadoutParameters()
IMessageSvc * getMessageSvc(bool quiet=false)
AthMessaging()
Default constructor:
double m_missedBottomStereo
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
bool stripGlobalPosition(const Identifier &id, Amg::Vector3D &gpos) const
bool is_v(int plane) const
MMDetectorDescription * Get_MMDetector(char type, int ieta, int iphi, int layer=1, char side='A')
MsgStream & msg() const
The standard message stream.
std::array< std::array< float, 2 >, 8 > m_ybases
Eigen::Matrix< double, 3, 1 > Vector3D
std::vector< double > stereoAngle
std::vector< ROOT::Math::XYZVector > MM_firststrip_positions(const MuonGM::MuonDetectorManager *detManager, const std::string &wedge, int eta) const
bool is_u(int plane) const
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
const MMReadoutElement * getMMReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
bool is_x(int plane) const
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channel) const