2 #ifndef __LASGLOBALDATA_H
3 #define __LASGLOBALDATA_H
86 if (!((theDetector == 0 || theDetector == 1) &&
87 (theRing == 0 || theRing == 1) &&
88 (theBeam >= 0 && theBeam < 8) &&
89 (theDisk >= 0 && theDisk < 9))) {
90 std::cerr <<
" [LASGlobalData::GetTECEntry] ** ERROR: illegal input coordinates:" << std::endl;
91 std::cerr <<
" detector " << theDetector <<
", ring " << theRing <<
", beam " << theBeam <<
", disk " << theDisk
93 throw " Bailing out.";
96 return (tecPlusData.at(theRing).at(theBeam).at(theDisk));
98 return (tecMinusData.at(theRing).at(theBeam).at(theDisk));
109 if (!((theDetector == 2 || theDetector == 3) &&
110 (theBeam >= 0 && theBeam < 8) &&
111 (thePosition >= 0 && thePosition < 6))) {
112 std::cerr <<
" [LASGlobalData::GetTIBTOBEntry] ** ERROR: illegal coordinates:" << std::endl;
113 std::cerr <<
" detector " << theDetector <<
", beam " << theBeam <<
", position " << thePosition <<
"."
115 throw " Bailing out.";
117 if (theDetector == 2)
118 return (tibData.at(theBeam).at(thePosition));
120 return (tobData.at(theBeam).at(thePosition));
131 if (!((theDetector == 0 || theDetector == 1) &&
132 (theBeam >= 0 && theBeam < 8) &&
133 (theDisk >= 0 && theDisk < 6))) {
134 std::cerr <<
" [LASGlobalData::GetTEC2TECEntry] ** ERROR: illegal coordinates:" << std::endl;
135 std::cerr <<
" detector " << theDetector <<
", beam " << theBeam <<
", disk " << theDisk <<
"." << std::endl;
136 throw " Bailing out.";
138 if (theDetector == 0)
139 return (tecPlusATData.at(theBeam).at(theDisk));
141 return (tecMinusATData.at(theBeam).at(theDisk));
152 if (!((theDetector == 0 || theDetector == 1) &&
153 (theRing == 0 || theRing == 1) &&
154 (theBeam >= 0 && theBeam < 8) &&
155 (theDisk >= 0 && theDisk < 9))) {
156 std::cerr <<
" [LASGlobalData::SetTECEntry] ** ERROR: illegal coordinates:" << std::endl;
157 std::cerr <<
" detector " << theDetector <<
", ring " << theRing <<
", beam " << theBeam <<
", disk " << theDisk
159 throw " Bailing out.";
161 if (theDetector == 0)
162 tecPlusData.at(theRing).at(theBeam).at(theDisk) = theEntry;
164 tecMinusData.at(theRing).at(theBeam).at(theDisk) = theEntry;
175 if (!((theDetector == 2 || theDetector == 3) &&
176 (theBeam >= 0 && theBeam < 8) &&
177 (thePosition >= 0 && thePosition < 6))) {
178 std::cerr <<
" [LASGlobalData::SetTIBTOBEntry] ** ERROR: illegal coordinates:" << std::endl;
179 std::cerr <<
" detector " << theDetector <<
", beam " << theBeam <<
", position " << thePosition <<
"."
181 throw " Bailing out.";
183 if (theDetector == 2)
184 tibData.at(theBeam).at(thePosition) = theEntry;
186 tobData.at(theBeam).at(thePosition) = theEntry;
197 if (!((theDetector == 0 || theDetector == 1) &&
198 (theBeam >= 0 && theBeam < 8) &&
199 (theDisk >= 0 && theDisk < 6))) {
200 std::cerr <<
" [LASGlobalData::SetTEC2TECEntry] ** ERROR: illegal coordinates:" << std::endl;
201 std::cerr <<
" detector " << theDetector <<
", beam " << theBeam <<
", disk " << theDisk <<
"." << std::endl;
202 throw " Bailing out.";
204 if (theDetector == 0)
205 tecPlusATData.at(theBeam).at(theDisk) = theEntry;
207 tecMinusATData.at(theBeam).at(theDisk) = theEntry;
251 tecPlusData.resize(2);
252 for (
unsigned int ring = 0;
ring < tecPlusData.size(); ++
ring) {
253 tecPlusData.at(
ring).resize(8);
260 tecMinusData.resize(2);
261 for (
unsigned int ring = 0;
ring < tecMinusData.size(); ++
ring) {
262 tecMinusData.at(
ring).resize(8);
269 tecPlusATData.resize(8);
270 for (
unsigned int beam = 0;
beam < tecPlusATData.size(); ++
beam) {
271 tecPlusATData.at(
beam).resize(5,
in);
275 tecMinusATData.resize(8);
276 for (
unsigned int beam = 0;
beam < tecMinusATData.size(); ++
beam) {
277 tecMinusATData.at(
beam).resize(5,
in);
282 for (
unsigned int beam = 0;
beam < tibData.size(); ++
beam) {
283 tibData.at(
beam).resize(6,
in);
288 for (
unsigned int beam = 0;
beam < tobData.size(); ++
beam) {
289 tobData.at(
beam).resize(6,
in);