ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/last_configuration.C
Revision: 1.1
Committed: Tue Aug 16 12:14:05 2011 UTC (13 years, 8 months ago) by buchmann
Content type: text/plain
Branch: MAIN
Log Message:
Adding a example of a configuration file

File Contents

# Content
1 /*
2
3 THIS IS JUST AN EXAMPLE!!!!
4
5 */
6
7
8
9 #include <iostream>
10 #include <vector>
11
12 using namespace std;
13
14 namespace PlottingSetup {
15 string datajzb="datajzb_ERROR";
16 string mcjzb="mcjzb_ERROR";
17 vector<float>jzb_cuts;
18 float MCPeakError=-999;
19 }
20
21 void read_config() {
22 datajzb="(jzb[1]+0.06*pt-2.85216)";
23 mcjzb="(jzb[1]+0.04*pt-1.82559)";
24
25 MCPeakError=0;
26
27 jzb_cuts.push_back(50);
28 jzb_cuts.push_back(100);
29
30
31 Nobs.push_back(0);
32 Nobs.push_back(1);
33 Npred.push_back(2);
34 Npred.push_back(3);
35 Nprederr.push_back(4);
36 Nprederr.push_back(4);
37
38 cout << "THIS IS JUST AN EXAMPLE!!!!!!!!!!!!!" << endl;
39 cout << "Configuration successfully loaded!" << endl;
40
41 }
42