#include #include #include #include "TStopwatch.h" #include "TFile.h" #include "TH1D.h" #include "TProfile.h" #include "TCanvas.h" #include "TString.h" #include "TStyle.h" #include "TChain.h" #include "TH2.h" #include "TH1.h" #include "TF1.h" #include "TTree.h" #include "TKey.h" #include "TMath.h" #include "TRandom.h" #include "TRandom3.h" #include "Riostream.h" #include "TVirtualFitter.h" #include #include #include "Math/GoFTest.h" void callcenter (const int Nclerks=10, double Tarrival=25, double MaxWait=1200, double Tave=5, double Tave_sigma=1, int maxtime=50000, int Ntoys=100) { // good combo: 5, 35, 1200, 5, 0.5, 50000, 100 // another one: 8, 60, 1200, 5.5, 1, 100000, 100 const double Nc = Nclerks; //double maxtime = 1000000; // seconds of simulation int * ClientsPerClerk = new int[Nc]; int * BusySince = new int[Nc]; int * BusyUntil = new int[Nc]; bool * Free = new bool[Nc]; for (int ic=0; icSetOptStat(111111); // Time cycle for (int time=0; timeDivide(2,3); C->cd(1); C->GetPad(1)->SetLogy(); WaitingTime->Draw(); C->cd(2); CallTime->Draw(); C->cd(3); Est_time->Draw(); C->cd(4); Est_time_unc->Draw(); C->cd(5); DeltaWaiting->Draw(); C->cd(6); TimeVsUnc->Draw(); // End of program // -------------- cout << "Goodbye." << endl; }