1 #ifndef _CSCFAKEDBPEDESTALS_H
2 #define _CSCFAKEDBPEDESTALS_H
19 #include <boost/shared_ptr.hpp>
28 typedef boost::shared_ptr<CSCDBPedestals>
Pointer;
47 float meanped,meanrms;
48 const int MAX_SIZE = 217728;
49 const int PED_FACTOR=10;
50 const int RMS_FACTOR=1000;
53 cndbpedestals->
pedestals.resize(MAX_SIZE);
57 meanped=600.0, meanrms=1.5;
61 for(
int i=0;
i<MAX_SIZE;
i++){
62 cndbpedestals->
pedestals[
i].ped=(
short int) (((
double)
rand()/((
double)(RAND_MAX)+(
double)(1)))*100+meanped*PED_FACTOR+0.5);
63 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