-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
99 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ACLiC artifacts | ||
*.so | ||
*.dylib | ||
*.d | ||
*.pcm |
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,29 @@ | ||
/// @begin_doc_example | ||
/// @file iguana_example_ROOT_macro.C | ||
/// @brief Very simple example showing how to load and use an Iguana algorithm in a ROOT macro; this example | ||
/// only runs the algorithm and does not require any input data. | ||
/// @par Usage | ||
/// ```bash | ||
/// root -b -q iguana_example_ROOT_macro.C | ||
/// ``` | ||
/// @end_doc_example | ||
|
||
#include <TSystem.h> | ||
#include <iguana/algorithms/physics/InclusiveKinematics/Algorithm.h> | ||
|
||
/// example ROOT macro function | ||
void iguana_example_ROOT_macro() { | ||
|
||
// load the iguana algorithms library | ||
gSystem->Load("libIguanaAlgorithms"); | ||
|
||
// run the inclusive kinematics action function | ||
iguana::physics::InclusiveKinematics algo; | ||
algo.Start(); | ||
auto result = algo.ComputeFromLepton(0.3, 0.3, 5.0); | ||
std::cout << "kinematics:" | ||
<< "\n Q2 = " << result.Q2 | ||
<< "\n x = " << result.x | ||
<< "\n W = " << result.W | ||
<< std::endl; | ||
} |
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