#include <CalibMuon/RPCCalibration/interface/RPCFakeCalibration.h>
Public Member Functions | |
RPCFakeCalibration (const edm::ParameterSet &) | |
virtual | ~RPCFakeCalibration () |
Private Member Functions | |
RPCStripNoises * | makeNoise () |
Private Attributes | |
RPCCalibSetUp * | theRPCCalibSetUp |
Definition at line 20 of file RPCFakeCalibration.h.
RPCFakeCalibration::RPCFakeCalibration | ( | const edm::ParameterSet & | pset | ) |
Definition at line 25 of file RPCFakeCalibration.cc.
References theRPCCalibSetUp.
00025 : RPCPerformanceESSource(pset) { 00026 edm::LogInfo("RPCFakeCalibration::RPCFakeCalibration"); 00027 theRPCCalibSetUp = new RPCCalibSetUp(pset); 00028 }
virtual RPCFakeCalibration::~RPCFakeCalibration | ( | ) | [inline, virtual] |
RPCStripNoises * RPCFakeCalibration::makeNoise | ( | ) | [private, virtual] |
Implements RPCPerformanceESSource.
Definition at line 30 of file RPCFakeCalibration.cc.
References RPCCalibSetUp::_clsMap, RPCCalibSetUp::_mapDetIdNoise, RPCStripNoises::NoiseItem::dpid, RPCStripNoises::NoiseItem::eff, end, RPCCalibSetUp::getEff(), RPCCalibSetUp::getTime(), it, itc, k, python::multivaluedict::map(), n, RPCStripNoises::NoiseItem::noise, VarParsing::obj, size, theRPCCalibSetUp, RPCStripNoises::NoiseItem::time, RPCStripNoises::v_cls, and RPCStripNoises::v_noises.
00030 { 00031 00032 RPCStripNoises * obj = new RPCStripNoises(); 00033 00034 std::map< int, std::vector<double> >::iterator itc; 00035 for(itc = (theRPCCalibSetUp->_clsMap).begin();itc != (theRPCCalibSetUp->_clsMap).end();++itc){ 00036 for(unsigned int n = 0; n < (itc->second).size();++n){ 00037 (obj->v_cls).push_back((itc->second)[n]); 00038 } 00039 } 00040 00041 RPCStripNoises::NoiseItem tipoprova; 00042 for(std::map<uint32_t, std::vector<float> >::iterator it = (theRPCCalibSetUp->_mapDetIdNoise).begin(); 00043 it != (theRPCCalibSetUp->_mapDetIdNoise).end(); it++){ 00044 00045 tipoprova.dpid = it->first; 00046 tipoprova.time = theRPCCalibSetUp->getTime(it->first); 00047 00048 for(unsigned int k = 0; k < 96; ++k){ 00049 tipoprova.noise = ((it->second))[k]; 00050 tipoprova.eff = (theRPCCalibSetUp->getEff(it->first))[k]; 00051 (obj->v_noises).push_back(tipoprova); 00052 } 00053 } 00054 00055 return obj; 00056 }
Definition at line 37 of file RPCFakeCalibration.h.
Referenced by makeNoise(), and RPCFakeCalibration().