-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: helicity correction function
QADB::CorrectHelicitySign
(#69)
- Loading branch information
Showing
8 changed files
with
110 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import clasqa.QADB | ||
|
||
def runnum | ||
final EVNUM = 100000 // FIXME: assumption | ||
def cook | ||
if(args.length>=2) { | ||
cook = args[0] | ||
runnum = args[1].toInteger() | ||
} else { | ||
throw new Exception("arguments must be [cook] [runnum]") | ||
} | ||
|
||
QADB qa = new QADB(cook) | ||
System.out.println(qa.correctHelicitySign(runnum, EVNUM)) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <iostream> | ||
#include <bitset> | ||
#include <memory> | ||
|
||
#include "QADB.h" | ||
|
||
int main(int argc, char ** argv) { | ||
|
||
int runnum; | ||
int const EVNUM = 100000; // FIXME: assumption | ||
std::string cook; | ||
if(argc>2) { | ||
cook = std::string(argv[1]); | ||
runnum = std::stoi(argv[2]); | ||
} | ||
else throw std::runtime_error("arguments must be [cook] [runnum]"); | ||
|
||
auto qa = std::make_unique<QA::QADB>(cook); | ||
std::cout << qa->CorrectHelicitySign(runnum, EVNUM) << std::endl; | ||
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
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