33 if(!
tgcArgs()->USE_NSW()){
return;}
52 for(
int dphi=0;dphi!=
N_dPhi;dphi++){
56 for(
int dTheta=0;dTheta!=
N_Dtheta;dTheta++){
62 if( ( oct%2==0 &&
mod==5 ) || (oct%2==1 && (
mod==2 ||
mod==8)) ){moduleName+=
"b";}
63 else{moduleName+=
"a";}
67 if(!this->
readMap( moduleName, ReadCW_Type::EtaPhi_CW) ||
68 !this->
readMap( moduleName, ReadCW_Type::EtaDtheta_CW)
84 return ( mod==2 ||
mod==5 ||
mod==8 );
90 std::vector<uint8_t> nswEta_vec=nswOut->
getNSWeta();
91 std::vector<uint8_t> nswPhi_vec=nswOut->
getNSWphi();
94 for(
unsigned int nswTrk_id=0;nswTrk_id!=nswEta_vec.size();nswTrk_id++){
97 if(eta_decode<0 || eta_decode>=
N_dEta){
continue;}
98 if(phi_decode<0 || phi_decode>=
N_dPhi){
continue;}
100 if(highest_pT<
m_EtaPhi_CW[eta_decode][phi_decode][roi]){
101 highest_pT=
m_EtaPhi_CW[eta_decode][phi_decode][roi];
112 std::vector<uint8_t> nswEta_vec=nswOut->
getNSWeta();
113 std::vector<uint8_t> nswDtheta_vec=nswOut->
getNSWDtheta();
116 for(
unsigned int nswTrk_id=0;nswTrk_id!=nswEta_vec.size();nswTrk_id++){
118 int dTheta_decode=nswDtheta_vec[nswTrk_id];
119 if(eta_decode<0 || eta_decode>=
N_dEta){
continue;}
131 std::string kSide[2] = {
"a",
"c"};
132 std::string kCWtype[2] = {
"EtaPhi",
"EtaDtheta"};
150 unsigned int n_Etabit=0;
151 unsigned int n_Phibit=0;
155 header >> roi >> n_Etabit >> n_Phibit;
162 for(
size_t posR=0; posR<
N_dEta ; posR++){
164 std::istringstream cont(
field);
166 if(cw_type==ReadCW_Type::EtaPhi_CW){
167 for(
size_t posPHI=0; posPHI<
N_dPhi; posPHI++){
169 std::istringstream(word) >> std::hex >>
pT;
174 if(cw_type==ReadCW_Type::EtaDtheta_CW){
175 for(
size_t posDTHETA=0; posDTHETA<
N_Dtheta; posDTHETA++){
177 std::istringstream(word) >> std::hex >>
pT;
179 if ((roi<0) or (
static_cast<size_t>(roi)>=roiIndexedVector.size())){
180 throw std::out_of_range(
"roi outside of vector limits in TGCNSWCoincidenceMap::readMap");
182 roiIndexedVector[roi]=
pT;
204 std::string
dbname=
"/NSW/";
211 if(!
data.is_open()){
return false;}
221 std::istringstream cont(
field);
224 std::array<int, 4> phi_shift {};
225 std::array<int, 37> eta_shift {};
228 for(
int phiN=0; phiN!=4; phiN++){
230 std::istringstream(word) >> shift;
231 phi_shift[phiN]=shift;
235 std::istringstream(word) >> shift;
236 eta_shift[etaN]=shift;