1 #ifndef _CSCFAKEDBPEDESTALS_H
2 #define _CSCFAKEDBPEDESTALS_H
19 #include <boost/shared_ptr.hpp>
28 typedef boost::shared_ptr<CSCDBPedestals>
Pointer;
48 float meanped,meanrms;
49 const int MAX_SIZE = 217728;
50 const int PED_FACTOR=10;
51 const int RMS_FACTOR=1000;
54 cndbpedestals->
pedestals.resize(MAX_SIZE);
58 meanped=600.0, meanrms=1.5, M=1000;
62 for(
int i=0;
i<MAX_SIZE;
i++){
63 cndbpedestals->
pedestals[
i].ped=(
short int) (((
double)
rand()/((
double)(RAND_MAX)+(
double)(1)))*100+meanped*PED_FACTOR+0.5);
64 cndbpedestals->
pedestals[
i].rms= (
short int) (((
double)
rand()/((double)(RAND_MAX)+(double)(1)))+meanrms*RMS_FACTOR+0.5);
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
static CSCDBPedestals * prefillDBPedestals()
CSCFakeDBPedestals(const edm::ParameterSet &)
boost::shared_ptr< CSCDBPedestals > Pointer
Pointer produceDBPedestals(const CSCDBPedestalsRcd &)
PedestalContainer pedestals