forked from jackdunger/oxsx
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from willp240/formatting
Formatting
Showing
227 changed files
with
9,791 additions
and
8,638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
#include <DataSetGenerator.h> | ||
#include <OXSXDataSet.h> | ||
#include <DataSetGenerator.h> | ||
#include <OXSXDataSet.h> | ||
#include <ROOTNtuple.h> | ||
int main(){ | ||
// (filename, tree name) | ||
int main() | ||
{ | ||
// (filename, tree name) | ||
ROOTNtuple zeroNuMC("<filename1>", "treename"); | ||
ROOTNtuple twoNuMC( "<filename2>", "treename"); | ||
ROOTNtuple b8NuMC( "<filename3>", "treename"); | ||
ROOTNtuple twoNuMC("<filename2>", "treename"); | ||
ROOTNtuple b8NuMC("<filename3>", "treename"); | ||
|
||
std::vector<bool> bootstraps; | ||
// DataSetGenerator | ||
DataSetGenerator dataGen; | ||
dataGen.AddDataSet(&zeroNuMC, 5, false); // second arg is the expected rate | ||
|
||
// DataSetGenerator | ||
DataSetGenerator dataGen; | ||
dataGen.AddDataSet(&zeroNuMC, 5, false); // second arg is the expected rate | ||
bootstraps.push_back(true); | ||
dataGen.AddDataSet(&twoNuMC, 50, false); | ||
bootstraps.push_back(true); | ||
dataGen.AddDataSet(&b8NuMC, 100, false); | ||
bootstraps.push_back(true); | ||
|
||
dataGen.SetBootstrap(bootstraps); | ||
// Generate a data set | ||
OXSXDataSet fakeData = dataGen.PoissonFluctuatedDataSet(); | ||
|
||
// Generate a data set | ||
OXSXDataSet fakeData = dataGen.PoissonFluctuatedDataSet(); | ||
OXSXDataSet fakeData2 = dataGen.ExpectedRatesDataSet(); | ||
return 0; | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.