106{
108
109 hvlineMap.clear();
110 electrodeMap.clear();
111
112 std::istringstream
infile;
114
116 int hvcannode;
118 int hvpartition;
119 int hvcanline;
120 int detect;
123 int hvphi;
124 int hveta;
125 int hvgap;
129 while (infile
130 >> dummy
131 >> hvcannode
132 >> hvline
133 >> hvpartition
134 >> hvcanline
135 >> detect
136 >> side
137 >> mod
138 >> hvphi
139 >> hveta
140 >> hvgap
143 {
145 std::abort();
147 << dummy << ") hvline=["
148 << hvpartition << "."
149 << hvcanline << "."
150 << hvcannode << "."
151 << hvline << "] electrode=["
152 << detect << "."
153 << side << "."
154 << mod << "."
155 << hvphi << "."
156 << hveta << "."
157 << hvgap << " min="
160 );
161
162 std::vector<HWIdentifier> electrodeIdvec;
163 HWIdentifier hvlineId = hvlineHelper.
HVLineId(hvpartition,hvcanline,hvcannode,hvline);
164
168 if (
min > 1000)
min = 1000;
169 for(
int ielec=
min; ielec<
max+1; ielec++){
171 << detect << " side="
172 << side << " mod="
173 << mod << " phi="
174 << hvphi << " eta="
175 << hveta << " gap="
176 << hvgap << " ielec="
177 << ielec << "]" );
178 HWIdentifier electrodeId =
179 electrodeHelper.
ElectrodeId(detect,side,mod,hvphi,hveta,hvgap,ielec);
180 electrodeIdvec.push_back(electrodeId);
181
182
183 hvlineMap.emplace (electrodeId, hvlineId);
184 }
185 }
186 else{
187 HWIdentifier electrodeId = electrodeHelper.
ElectrodeId(detect,side,mod,hvphi,hveta,hvgap,
min);
188 electrodeIdvec.push_back(electrodeId);
189
190
191 hvlineMap.emplace (electrodeId, hvlineId);
192 }
193
194 std::vector<HWIdentifier>&
l = electrodeMap[hvlineId];
195 l.insert (
l.end(), electrodeIdvec.begin(), electrodeIdvec.end());
196 }
197
199 ATH_MSG_DEBUG(
"[fillHV] Mapping electrode-to-hvline : number of Ids= "<<hvlineMap.size());
200 ATH_MSG_DEBUG(
"[fillHV] Mapping hvline-to-electrode : number of Ids= "<<electrodeMap.size());
202 return StatusCode::SUCCESS;
203}
#define ATH_MSG_VERBOSE(x)
HWIdentifier ElectrodeId(int det, int side, int mod, int phi, int eta, int gap, int elec) const
Create an Electrode identifier from fields.
HWIdentifier HVLineId(int part, int canline, int cannode, int line) const
Create an HighVoltage line identifier from fields.
l
Printing final latex table to .tex output file.