2 #ifndef __LASGLOBALDATA_H 3 #define __LASGLOBALDATA_H 44 void SetTECEntry(
int subdetector,
int tecRing,
int beam,
int tecDisk,
T);
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)
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)
void SetTEC2TECEntry(int subdetector, int beam, int tecDisk, T)
std::vector< std::vector< std::vector< T > > > tecMinusData
std::vector< std::vector< T > > tibData
void Init(const T &in=T())
std::vector< std::vector< T > > tecMinusATData
ClassDef(LASGlobalData, 2)
std::vector< std::vector< std::vector< T > > > tecPlusData
T & GetTIBTOBEntry(int subdetector, int beam, int tibTobPosition)
void SetTIBTOBEntry(int subdetector, int beam, int tibTobPosition, T)
std::vector< std::vector< T > > tobData
T & GetTEC2TECEntry(int subdetector, int beam, int tecDisk)
std::vector< std::vector< T > > tecPlusATData
T & GetTECEntry(int subdetector, int tecRing, int beam, int tecDisk)
void SetTECEntry(int subdetector, int tecRing, int beam, int tecDisk, T)