1 #ifndef _CSCFAKEDBPEDESTALS_H 2 #define _CSCFAKEDBPEDESTALS_H 27 typedef std::shared_ptr<CSCDBPedestals>
Pointer;
46 float meanped,meanrms;
47 const int MAX_SIZE = 217728;
48 const int PED_FACTOR=10;
49 const int RMS_FACTOR=1000;
52 cndbpedestals->
pedestals.resize(MAX_SIZE);
56 meanped=600.0, meanrms=1.5;
60 for(
int i=0;
i<MAX_SIZE;
i++){
61 cndbpedestals->
pedestals[
i].ped=(
short int) (((
double)
rand()/((
double)(RAND_MAX)+(
double)(1)))*100+meanped*PED_FACTOR+0.5);
62 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 &)
std::shared_ptr< CSCDBPedestals > Pointer
static CSCDBPedestals * prefillDBPedestals()
CSCFakeDBPedestals(const edm::ParameterSet &)
Pointer produceDBPedestals(const CSCDBPedestalsRcd &)
PedestalContainer pedestals