-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/github_actions/actions/upload-p…
…ages-artifact-3
- Loading branch information
Showing
44 changed files
with
3,773 additions
and
130 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,5 +1,8 @@ | ||
.github/ @lobis | ||
.github/* @lobis | ||
* @jgalan | ||
* @juanangp | ||
* @lobis | ||
* @nkx111 | ||
*.py @lobis | ||
*.cmake @lobis | ||
CMakelists.txt @lobis |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,46 @@ | ||
#include "TRestComponent.h" | ||
#include "TRestTask.h" | ||
|
||
#ifndef RestTask_AddComponent | ||
#define RestTask_AddComponent | ||
|
||
//******************************************************************************************************* | ||
//*** Description: This macro will load from an RML the component chosen in the arguments and it | ||
//*** will write it inside the file given as outputFile | ||
//*** | ||
//*** -------------- | ||
//*** Usage: restManager AddComponentDataSet components.rml sectionName [outputFile] [componentName] [update] | ||
//*** | ||
//*** Arguments description: | ||
//*** | ||
//*** - cfgFile: The RML configuration file where the component definition can be found. | ||
//*** - sectionName: The section name used to select a component inside the RML file. | ||
//*** - outputFile: The file where the component is written, by default is components.root. | ||
//*** - componentName: This argument allows to change the component name stored in the output file. | ||
//*** By default it will take the same value as section name. | ||
//*** - update: If disabled it will create a new file erasing any other previously added components. | ||
//*** It is enabled by default. | ||
//*** | ||
//******************************************************************************************************* | ||
|
||
Int_t REST_AddComponentDataSet(std::string cfgFile, std::string sectionName, | ||
std::string outputFile = "components.root", std::string componentName = "", | ||
Bool_t update = true) { | ||
TRestComponentDataSet comp(cfgFile.c_str(), sectionName.c_str()); | ||
comp.Initialize(); | ||
|
||
TFile* f; | ||
if (update) | ||
f = TFile::Open(outputFile.c_str(), "UPDATE"); | ||
else | ||
f = TFile::Open(outputFile.c_str(), "RECREATE"); | ||
|
||
if (componentName == "") componentName = sectionName; | ||
|
||
comp.Write(componentName.c_str()); | ||
|
||
f->Close(); | ||
|
||
return 0; | ||
} | ||
#endif |
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,46 @@ | ||
#include "TRestComponent.h" | ||
#include "TRestTask.h" | ||
|
||
#ifndef RestTask_AddComponentFormula | ||
#define RestTask_AddComponentFormula | ||
|
||
//******************************************************************************************************* | ||
//*** Description: This macro will load from an RML the component chosen in the arguments and it | ||
//*** will write it inside the file given as outputFile | ||
//*** | ||
//*** -------------- | ||
//*** Usage: restManager AddComponentFormula components.rml sectionName [outputFile] [componentName] [update] | ||
//*** | ||
//*** Arguments description: | ||
//*** | ||
//*** - cfgFile: The RML configuration file where the component definition can be found. | ||
//*** - sectionName: The section name used to select a component inside the RML file. | ||
//*** - outputFile: The file where the component is written, by default is components.root. | ||
//*** - componentName: This argument allows to change the component name stored in the output file. | ||
//*** By default it will take the same value as section name. | ||
//*** - update: If disabled it will create a new file erasing any other previously added components. | ||
//*** It is enabled by default. | ||
//*** | ||
//******************************************************************************************************* | ||
|
||
Int_t REST_AddComponentFormula(std::string cfgFile, std::string sectionName, | ||
std::string outputFile = "components.root", std::string componentName = "", | ||
Bool_t update = true) { | ||
TRestComponentFormula comp(cfgFile.c_str(), sectionName.c_str()); | ||
comp.Initialize(); | ||
|
||
TFile* f; | ||
if (update) | ||
f = TFile::Open(outputFile.c_str(), "UPDATE"); | ||
else | ||
f = TFile::Open(outputFile.c_str(), "RECREATE"); | ||
|
||
if (componentName == "") componentName = sectionName; | ||
|
||
comp.Write(componentName.c_str()); | ||
|
||
f->Close(); | ||
|
||
return 0; | ||
} | ||
#endif |
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
Oops, something went wrong.