9 int max_istrip,id_layer,max_ring,max_cham;
21 if(istation==1) max_ring=3;
22 if(istation==2) max_ring=2;
23 if(istation==3) max_ring=2;
24 if(istation==4) max_ring=1;
26 for(
int iring=detId.
minRingId(); iring<=max_ring; iring++){
29 if(istation==1 && iring==1) max_cham=36;
30 if(istation==1 && iring==2) max_cham=36;
31 if(istation==1 && iring==3) max_cham=36;
32 if(istation==2 && iring==1) max_cham=18;
33 if(istation==2 && iring==2) max_cham=36;
34 if(istation==3 && iring==1) max_cham=18;
35 if(istation==3 && iring==2) max_cham=36;
36 if(istation==4 && iring==1) max_cham=18;
38 for(
int ichamber=detId.
minChamberId(); ichamber<=max_cham; ichamber++){
41 if(istation==1 && iring==3) max_istrip=64;
43 std::vector<CSCPedestals::Item> itemvector;
44 itemvector.resize(max_istrip);
45 id_layer = 100000*iendcap + 10000*istation + 1000*iring + 10*ichamber + ilayer;
47 for(
int istrip=0;istrip<max_istrip;istrip++){
48 itemvector[istrip].ped=((double)
rand()/((double)(RAND_MAX)+(double)(1)))*100+
meanped;
49 itemvector[istrip].rms=((double)
rand()/((double)(RAND_MAX)+(double)(1)))+
meanrms;
65 findingRecord<CSCPedestalsRcd>();
CSCFakePedestalsConditions(const edm::ParameterSet &)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
ReturnType producePedestals(const CSCPedestalsRcd &)
static int maxStationId()
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
static int minChamberId()
static const IOVSyncValue & beginOfTime()
static int minStationId()
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
~CSCFakePedestalsConditions()
static int maxChamberId()
CSCPedestals * cnpedestals