CMS 3D CMS Logo

RPCFakeCalibration.cc
Go to the documentation of this file.
15 
16 #include <cmath>
17 #include <fstream>
18 #include <iostream>
19 #include <memory>
20 
22  edm::LogInfo("RPCFakeCalibration::RPCFakeCalibration");
24 }
25 
28 
29  std::map<int, std::vector<double>>::iterator itc;
30  for (itc = (theRPCCalibSetUp->_clsMap).begin(); itc != (theRPCCalibSetUp->_clsMap).end(); ++itc) {
31  for (unsigned int n = 0; n < (itc->second).size(); ++n) {
32  (obj->v_cls).push_back((itc->second)[n]);
33  }
34  }
35 
36  RPCStripNoises::NoiseItem tipoprova;
37  for (std::map<uint32_t, std::vector<float>>::iterator it = (theRPCCalibSetUp->_mapDetIdNoise).begin();
39  ++it) {
40  tipoprova.dpid = it->first;
41  tipoprova.time = theRPCCalibSetUp->getTime(it->first);
42 
43  for (unsigned int k = 0; k < 96; ++k) {
44  tipoprova.noise = ((it->second))[k];
45  tipoprova.eff = (theRPCCalibSetUp->getEff(it->first))[k];
46  (obj->v_noises).push_back(tipoprova);
47  }
48  }
49 
50  return obj;
51 }
52 
56 
57  for (std::map<uint32_t, std::vector<double>>::iterator it = (theRPCCalibSetUp->_mapDetClsMap).begin();
59  ++it) {
60  rpcClsItem.dpid = it->first;
61 
62  for (unsigned int k = 0; k < 100; k++) {
63  rpcClsItem.clusterSize = (theRPCCalibSetUp->getCls(it->first))[k];
64  (obj->v_cls).push_back(rpcClsItem);
65  }
66  }
67  return obj;
68 }
size
Write out results.
RPCClusterSize * makeCls()
RPCCalibSetUp * theRPCCalibSetUp
std::vector< double > getCls(uint32_t id)
std::vector< float > getEff(uint32_t id)
std::map< uint32_t, std::vector< float > > _mapDetIdNoise
Definition: RPCCalibSetUp.h:40
RPCFakeCalibration(const edm::ParameterSet &)
std::map< int, std::vector< double > > _clsMap
Definition: RPCCalibSetUp.h:43
Log< level::Info, false > LogInfo
float getTime(uint32_t id)
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
RPCStripNoises * makeNoise() override
Pure virtual class for EventSetup sources of RPCStripNoises.
std::map< uint32_t, std::vector< double > > _mapDetClsMap
Definition: RPCCalibSetUp.h:44