ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/TheLimits.cc
(Generate patch)

Comparing UserCode/auterman/SusyScan/PlotScript/TheLimits.cc (file contents):
Revision 1.5 by auterman, Wed Jan 26 15:23:05 2011 UTC vs.
Revision 1.8 by auterman, Sun Feb 13 14:39:33 2011 UTC

# Line 6 | Line 6
6   #include <iostream>
7   #include <cmath>
8  
9 + void TheLimits::Fill(int argc, char** argv)
10 + {
11 +   for (int i = 1; i<argc; ++i)
12 +   {
13 +     add( new SusyScan(argv[i]) );
14 +   }
15 + }
16 +
17 + void TheLimits::Fill(const std::string filelist)
18 + {
19 +   std::ifstream masses_file;
20 +   masses_file.open(filelist.c_str());
21 +   std::string file;
22 +   while (1) {
23 +      GeneratorMasses * p = new GeneratorMasses;
24 +      masses_file >> file;
25 +      if (!masses_file.good()) break;
26 +      add( new SusyScan(file));
27 +   }
28 +   //std::cout << filelist << ": "<< _scan.size() <<std::endl;
29 +   masses_file.close();
30 + }
31  
32   void TheLimits::match()
33   {
# Line 97 | Line 119 | void TheLimits::FillGeneratorMasses(std:
119                    >> p->MHp;
120  
121        if (!masses_file.good()) break;
122 +      //std::cout << p->Mzero<<", "<<p->Mhalf<<", "<<p->TanBeta<<std::endl;
123        if (fabs(p->Mu)!=1.) {
124           std::cerr << "check lines near m0=" << p->Mzero << ", m1/2=" << p->Mhalf << std::endl;
125           break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines