55 unsigned long int pos = 0;
56 std::string::size_type
start = etaRec.find_first_not_of(
' ',
pos);
57 if(
start == std::string::npos) {
58 std::cout <<
"RpcCalibDBEntry::initData -- problems extracting m_nRecEta -- crashing." << std::endl;
61 std::string::size_type
stop = etaRec.find_first_of(
' ',
start+1);
62 if (
stop == std::string::npos)
stop = etaRec.size();
67 start = phiRec1.find_first_not_of(
' ',
pos);
68 if(
start == std::string::npos) {
69 std::cout <<
"RpcCalibDBEntry::initData -- problems extracting m_nRecPhi1 -- crashing." << std::endl;
72 stop = phiRec1.find_first_of(
' ',
start+1);
73 if (
stop == std::string::npos)
stop = phiRec1.size();
77 std::istringstream etaRec_str;
78 std::istringstream etaDet_str;
79 std::istringstream phiRec1_str;
80 std::istringstream phiRec2_str;
81 std::istringstream phiDet1_str;
82 std::istringstream phiDet2_str;
84 etaRec_str.str(etaRec);
85 etaDet_str.str(etaDet);
86 phiRec1_str.str(phiRec1);
87 phiRec2_str.str(phiRec2);
88 phiDet1_str.str(phiDet1);
89 phiDet2_str.str(phiDet2);
96 float eff, errEff, res1, res2, resX, errRes1, errRes2, errResX,
time, errTime,
noise, errNoise, noiseC, errNoiseC, cs, errCs;
102 etaRec_str>>
eff>>errEff>>res1>>errRes1>>res2>>errRes2>>resX>>errResX>>
time>>errTime;
103 etaDet_str>>
noise>>errNoise>>noiseC>>errNoiseC>>cs>>errCs;
105 RpcCalibData * etaData=
new RpcCalibData;
108 etaData->setEff(
eff);
109 etaData->setErrEff(errEff);
110 etaData->setRes1(res1);
111 etaData->setRes2(res2);
112 etaData->setResX(resX);
113 etaData->setErrRes1(errRes1);
114 etaData->setErrRes2(errRes2);
115 etaData->setErrResX(errResX);
116 etaData->setTime(time);
117 etaData->setErrTime(errTime);
118 etaData->setNoise(
noise);
119 etaData->setNoiseC(noiseC);
120 etaData->setErrNoise(errNoise);
121 etaData->setErrNoiseC(errNoiseC);
123 etaData->setErrCs(errCs);
133 phiRec1_str>>
eff>>res1>>res2>>resX>>
time;
134 phiRec2_str>>errEff>>errRes1>>errRes2>>errResX>>errTime;
135 phiDet1_str>>
noise>>errNoise>>noiseC>>errNoiseC>>cs>>errCs;
137 RpcCalibData * phiData=
new RpcCalibData;
140 phiData->setEff(
eff);
141 phiData->setErrEff(errEff);
142 phiData->setRes1(res1);
143 phiData->setRes2(res2);
144 phiData->setResX(resX);
145 phiData->setErrRes1(errRes1);
146 phiData->setErrRes2(errRes2);
147 phiData->setErrResX(errResX);
148 phiData->setTime(time);
149 phiData->setErrTime(errTime);
150 phiData->setNoise(
noise);
151 phiData->setNoiseC(noiseC);
152 phiData->setErrNoise(errNoise);
153 phiData->setErrNoiseC(errNoiseC);
155 phiData->setErrCs(errCs);