CMS 3D CMS Logo

RPCFakeCalibration Class Reference

Fake source of RPCStripNoises object. More...

#include <CalibMuon/RPCCalibration/interface/RPCFakeCalibration.h>

Inheritance diagram for RPCFakeCalibration:

RPCPerformanceESSource edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 RPCFakeCalibration (const edm::ParameterSet &)
virtual ~RPCFakeCalibration ()

Private Member Functions

RPCStripNoisesmakeNoise ()

Private Attributes

RPCCalibSetUptheRPCCalibSetUp


Detailed Description

Fake source of RPCStripNoises object.

Author:
R. Trentadue

Definition at line 20 of file RPCFakeCalibration.h.


Constructor & Destructor Documentation

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]

Definition at line 25 of file RPCFakeCalibration.h.

00025 {;}


Member Function Documentation

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 }


Member Data Documentation

RPCCalibSetUp* RPCFakeCalibration::theRPCCalibSetUp [private]

Definition at line 37 of file RPCFakeCalibration.h.

Referenced by makeNoise(), and RPCFakeCalibration().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:59 2009 for CMSSW by  doxygen 1.5.4