20 _mapDetIdNoise.clear();
29 std::vector<float> vnoise;
34 std::vector< std::string > words;
37 while( getline(_infile1, buff,
'\n') ){
49 while ( (pos = buff.find(
" ",pos)) != string::npos){
51 words.push_back(buff.substr(prev_pos, pos - prev_pos));
54 words.push_back(buff.substr(prev_pos, pos - prev_pos));
56 for(
unsigned int i = 2;
i < words.size(); ++
i){
57 float value = atof( ((words)[
i]).c_str() );
58 vnoise.push_back(value);
61 _mapDetIdNoise.insert(make_pair(static_cast<uint32_t>(rpcdetid),vnoise));
73 std::vector<float> veff ;
76 while( getline(*_infile2, buff,
'\n') ){
87 while ( (pos = buff.find(
" ",pos)) != string::npos){
89 words.push_back(buff.substr(prev_pos, pos - prev_pos));
92 words.push_back(buff.substr(prev_pos, pos - prev_pos));
94 for(
unsigned int i = 2;
i < words.size(); ++
i){
95 float value = atof(((words)[
i]).c_str());
96 veff.push_back(value);
98 _mapDetIdEff.insert(make_pair(static_cast<uint32_t>(rpcdetid),veff));
107 uint32_t detUnit = 0;
109 while(!_infile3->eof()){
110 *_infile3>>detUnit>>timing;
122 unsigned int counter = 1;
123 unsigned int row = 1;
124 std::vector<double> sum_clsize;
126 while ( *_infile4 >> buffer ) {
127 const char *buffer1 = buffer.c_str();
128 double dato = atof(buffer1);
130 sum_clsize.push_back(sum);
132 if(counter == row*20) {
133 _clsMap[row] = sum_clsize;
145 map<uint32_t,std::vector<float> >::iterator iter = _mapDetIdNoise.find(
id);
146 return (iter->second);
151 map<uint32_t,std::vector<float> >::iterator iter = _mapDetIdEff.find(
id);
158 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()
std::string fullPath() const
RPCDBSimSetUp(const edm::ParameterSet &ps)