ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/TheLimits.cc
Revision: 1.1
Committed: Sat Nov 27 10:41:09 2010 UTC (14 years, 5 months ago) by auterman
Content type: text/plain
Branch: MAIN
Log Message:
code cleanup

File Contents

# Content
1 #include "TheLimits.h"
2 #include "SusyScan.h"
3 #include "GeneratorMasses.h"
4 #include "IsoMassLine.h"
5
6 #include "TH2.h"
7 #include "TH2F.h"
8
9 void TheLimits::plot(TH2*h, double(*x)(const SusyScan*), double(*y)(const SusyScan*), double(*f)(const SusyScan*) )
10 {
11 for (std::vector<SusyScan*>::const_iterator it=_scan.begin();it!=_scan.end();++it )
12 //h->Fill( x(*it), y(*it), f(*it) );
13 h->SetBinContent( h->GetXaxis()->FindBin(x(*it)),
14 h->GetYaxis()->FindBin(y(*it)), f(*it) );
15 }
16
17 void TheLimits::match(const std::vector<GeneratorMasses> genm)
18 {
19 for (std::vector<SusyScan*>::iterator it=_scan.begin();it!=_scan.end();++it){
20 bool match = false;
21 for (std::vector<GeneratorMasses>::const_iterator gt=genm.begin();gt!=genm.end();++gt){
22 if ((*it)->Mzero==gt->MZERO &&
23 (*it)->Mhalf==gt->MHALF &&
24 (*it)->Azero==gt->AZERO &&
25 (*it)->TanBeta==gt->TANB &&
26 (*it)->Mu==gt->SGNMU ) {
27 (*it)->M1 = gt->M1;
28 (*it)->M2 = gt->M2;
29 (*it)->M3 = gt->M3;
30 (*it)->MGL = gt->MGL;
31 (*it)->MUL = gt->MUL;
32 (*it)->MB1 = gt->MB1;
33 (*it)->MSN = gt->MSN;
34 (*it)->MNTAU = gt->MNTAU;
35 (*it)->MZ1 = gt->MZ1;
36 (*it)->MW1 = gt->MW1;
37 (*it)->MHL = gt->MHL;
38 (*it)->MUR = gt->MUR;
39 (*it)->MB2 = gt->MB2;
40 (*it)->MEL = gt->MEL;
41 (*it)->MTAU1 = gt->MTAU1;
42 (*it)->MZ2 = gt->MZ2;
43 (*it)->MW2 = gt->MW2;
44 (*it)->MHH = gt->MHH;
45 (*it)->MDL = gt->MDL;
46 (*it)->MT1 = gt->MT1;
47 (*it)->MER = gt->MER;
48 (*it)->MTAU2 = gt->MTAU2;
49 (*it)->MZ3 = gt->MZ3;
50 (*it)->MHA = gt->MHA;
51 (*it)->MDR = gt->MDR;
52 (*it)->MT2 = gt->MT2;
53 (*it)->MZ4 = gt->MZ4;
54 (*it)->MHp = gt->MHp;
55 match = true;
56 }
57 }
58 //if (!match) std::cout << "No match for M0="<<(*it)->Mzero
59 // << ", M12="<<(*it)->Mhalf<<std::endl;
60 }
61 }