CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/CondFormats/Calibration/src/mypt.cc

Go to the documentation of this file.
00001 #include "CondFormats/Calibration/interface/mypt.h"
00002 #include <boost/random/linear_congruential.hpp>
00003 #include <boost/random/uniform_int.hpp>
00004 #include <boost/random/variate_generator.hpp>
00005 //#include <iostream>
00006 //typedef boost::minstd_rand base_generator_type;
00007 void mypt::fill(){
00008   //base_generator_type rng(42u);
00009   //boost::uniform_int<int> uni_dist(0,200);
00010   //boost::variate_generator<base_generator_type&, boost::uniform_int<> > uni(rng, uni_dist); 
00011   for(size_t i=0;i<2097;++i){
00012     std::cout<<"i "<<i<<" ";
00013     pt[i]=(unsigned short)(i);
00014   }
00015 }