Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:57

0001 #include "CondFormats/Calibration/interface/mypt.h"
0002 #include <boost/random/linear_congruential.hpp>
0003 #include <boost/random/uniform_int.hpp>
0004 #include <boost/random/variate_generator.hpp>
0005 //#include <iostream>
0006 //typedef boost::minstd_rand base_generator_type;
0007 void mypt::fill() {
0008   //base_generator_type rng(42u);
0009   //boost::uniform_int<int> uni_dist(0,200);
0010   //boost::variate_generator<base_generator_type&, boost::uniform_int<> > uni(rng, uni_dist);
0011   for (size_t i = 0; i < 2097; ++i) {
0012     std::cout << "i " << i << " ";
0013     pt[i] = (unsigned short)(i);
0014   }
0015 }