19 _mapDetIdNoise.clear();
28 std::vector<float> vnoise;
33 std::vector<std::string> words;
35 while (getline(_infile1, buff,
'\n')) {
42 ss >> chname >> rpcdetid;
46 while ((
pos = buff.find(
" ",
pos)) != string::npos) {
47 words.push_back(buff.substr(prev_pos,
pos - prev_pos));
50 words.push_back(buff.substr(prev_pos,
pos - prev_pos));
52 for (
unsigned int i = 2;
i < words.size(); ++
i) {
53 float value = atof(((words)[
i]).c_str());
54 vnoise.push_back(
value);
57 _mapDetIdNoise.insert(make_pair(static_cast<uint32_t>(rpcdetid), vnoise));
66 std::vector<float> veff;
69 while (getline(*_infile2, buff,
'\n')) {
76 ss >> chname >> rpcdetid;
79 while ((
pos = buff.find(
" ",
pos)) != string::npos) {
80 words.push_back(buff.substr(prev_pos,
pos - prev_pos));
83 words.push_back(buff.substr(prev_pos,
pos - prev_pos));
85 for (
unsigned int i = 2;
i < words.size(); ++
i) {
86 float value = atof(((words)[
i]).c_str());
87 veff.push_back(
value);
89 _mapDetIdEff.insert(make_pair(static_cast<uint32_t>(rpcdetid), veff));
100 while (!_infile3->eof()) {
101 *_infile3 >> detUnit >>
timing;
114 unsigned int row = 1;
115 std::vector<double> sum_clsize;
117 while (*_infile4 >>
buffer) {
118 const char* buffer1 =
buffer.c_str();
119 double dato = atof(buffer1);
121 sum_clsize.push_back(sum);
124 _clsMap[row] = sum_clsize;
135 map<uint32_t, std::vector<float> >::iterator iter = _mapDetIdNoise.find(
id);
136 return (iter->second);
140 map<uint32_t, std::vector<float> >::iterator iter = _mapDetIdEff.find(
id);
146 std::map<RPCDetId, float>::iterator iter = _bxmap.find(rpcid);
T getParameter(std::string const &) const
std::vector< float > getNoise(uint32_t id)
std::vector< float > getEff(uint32_t id)
float getTime(uint32_t id)
std::map< int, std::vector< double > > getClsMap()
const std::string & fullPath() const
RPCDBSimSetUp(const edm::ParameterSet &ps)