22 if ((Line6ECB-Line6BCB) != 0)
25 for (
int i=0;
i<(Line6ECB-Line6BCB-1);
i++)
33 return (Line6ECB-Line6BCB + 1);
40 std::vector< std::vector<int> > CFEBnByLayers;
41 CFEBnByLayers.clear();
42 std::vector<int> CFEBnData;
52 CFEBnData.push_back(
getData()[
i] & 0xFFF);
57 std::vector<int> Layer0, Layer1, Layer2, Layer3, Layer4, Layer5;
65 for (
int k=0;
k<(
int)CFEBnData.size(); ++
k)
67 for (
int j=0; j<12; j++)
70 DiStr = (CFEBnData[
k] >> j) & 0
x1;
71 if ( (DiStr !=0) && (j<8) && (
k==0) )
75 if ((DiStr !=0) && (j>7) && (j<12) && (
k==0))
79 if ((DiStr !=0) && (j<4) && (
k==1))
83 if ((DiStr !=0) && (j>3) && (j<12) && (
k==1))
87 if ( (DiStr !=0) && (j<8) && (
k==2) )
91 if ((DiStr !=0) && (j>7) && (j<12) && (
k==2))
95 if ((DiStr !=0) && (j<4) && (
k==3))
99 if ((DiStr !=0) && (j>3) && (j<12) && (
k==3))
106 CFEBnByLayers.push_back(Layer0);
107 CFEBnByLayers.push_back(Layer1);
108 CFEBnByLayers.push_back(Layer2);
109 CFEBnByLayers.push_back(Layer3);
110 CFEBnByLayers.push_back(Layer4);
111 CFEBnByLayers.push_back(Layer5);
113 return CFEBnByLayers;
119 std::cout <<
" Blocked CFEB DiStrips List Content " << std::endl;
125 std::vector< std::vector<int> > anyCFEB;
127 std::vector <int> anyLayer;
130 std::cout <<
" Blocked DiStrips by CFEB and Layers unpacked " << std::endl;
131 for (
int z=0;
z<5; ++
z)
136 for (std::vector< std::vector<int> >::const_iterator layerIt=anyCFEB.begin(); layerIt !=anyCFEB.end(); layerIt++)
140 if (!anyLayer.empty())
142 for (
int i=0;
i<(
int)anyLayer.size();
i++)
148 std::cout <<
" No Blocked DiStrips on the Layer ";
unsigned size_
stores all mini scope data
std::vector< int > BlockedCFEBdata
int UnpackBlockedCFEB(unsigned short *buf, int Line6BCB, int Line6ECB)
CSCTMBMiniScope.
std::vector< int > getData() const
std::vector< std::vector< int > > getSingleCFEBList(int CFEBn) const
UnpackBlockedCFEB.