#include "RegSelLUT/RegSelModule.h"
#include <iostream>
#include <cmath>
Go to the source code of this file.
◆ getModule()
copy z limits to max radius values just in case
read in extra z limits if required
Definition at line 110 of file RegSelModule.cxx.
111{
112 char s[128],
s1[128],
s2[128];
113
116
117 double rMin, rMax;
118 double zMin, zMax;
119 double z2Min, z2Max;
120 double phiMin, phiMax;
121
123
124 unsigned int hashint;
125
128 >>
s >>
s >> rMin >>
s >> rMax
129 >>
s >>
s >> phiMin >>
s >> phiMax
130 >>
s >>
s >> zMin >>
s >> zMax;
131
133 z2Min = zMin;
134 z2Max = zMax;
135
137
139 if ( std::string(s2)=="z2=" ) {
140 ss >> z2Min >>
s >> z2Max;
142 }
143
144 ss >> std::hex >> robid
145 >>
s >>
s >> std::hex >> hashint >> std::dec >>
s;
146
147 if (
ss.fail() )
return false;
148
149
150
153
155 z2Min, z2Max,
156 rMin, rMax,
157 phiMin, phiMax,
158 layer,
159 detector,
160 robid,
162
164
165 return true;
166}
This is a "hash" representation of an Identifier.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | s, |
|
|
const RegSelModule & | m ) |
Definition at line 95 of file RegSelModule.cxx.
96{
97 s <<
"[ lyr= " <<
m.layer()
98 <<
" ,\tdet= " <<
m.detector()
99 <<
" ,\tr= " <<
m.rMin() <<
" - " <<
m.rMax()
100 <<
" ,\tphi= " <<
m.phiMin()*180/
M_PI <<
" - " <<
m.phiMax()*180/
M_PI
101 <<
" ,\tz= " <<
m.zMin() <<
" - " <<
m.zMax();
102 if (
m.zMin()!=
m.z2Min() ||
m.zMax()!=
m.z2Max() )
s <<
" ,\tz2= " <<
m.z2Min() <<
" - " <<
m.z2Max();
103 s <<
" ,\trob= 0x" << std::hex <<
m.robID()
104 <<
" ,\thash= 0x" << std::hex <<
m.hashID() << std::dec << (
m.enabled() ?
" ]" :
" (disabled)]");
106}