Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clas12::CalorimeterLinker:
1 change: 1 addition & 0 deletions src/iguana/algorithms/clas12/TrajLinker/Config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clas12::TrajLinker:
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clas12::rga::FTEnergyCorrection:
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace iguana::clas12::rga {
b_particle = GetBankIndex(banks, "REC::Particle");
b_sector = GetBankIndex(banks, "REC::Particle::Sector");
b_config = GetBankIndex(banks, "RUN::config");
ParseYAMLConfig(); /////////// FIXME: can we make this happen automatically??
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clas12::rga::MomentumCorrection:
3 changes: 3 additions & 0 deletions src/iguana/algorithms/example/ExampleAlgorithm/Config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# files from other algorithms
# - See also the test configuration files in ../../tests/config and how they
# may be accessed in ../../tests/include/TestConfig.h
# - All algorithms must have a Config.yaml file; if the algorithm has no
# configuration parameters, it may just be a single line with the algorithm
# name, ending with a colon
example::ExampleAlgorithm:
exampleInt: 8
exampleDouble: 7.5
12 changes: 1 addition & 11 deletions src/iguana/algorithms/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# {
# 'name': str # algorithm name (REQUIRED)
# 'directory': str # algorithm source code directory (default is based on 'name', replacing '::' with '/')
# 'has_config': bool # assumes Config.yaml exists (default=true)
# 'has_validator': bool # assumes Validator{cc,h} exist (default=true)
# 'has_action_yaml': bool # assumes Action.yaml exists (default=true)
# 'algorithm_needs_ROOT': bool # whether this algorithm (or its prerequisites) needs ROOT or not (default=false)
Expand Down Expand Up @@ -60,7 +59,6 @@ algo_dict = [
},
{
'name': 'clas12::CalorimeterLinker',
'has_config': false,
'has_validator': false,
'has_action_yaml': false,
'test_args': {
Expand All @@ -69,7 +67,6 @@ algo_dict = [
},
{
'name': 'clas12::TrajLinker',
'has_config': false,
'has_validator': false,
'has_action_yaml': false,
'test_args': {
Expand All @@ -78,13 +75,11 @@ algo_dict = [
},
{
'name': 'clas12::rga::FTEnergyCorrection',
'has_config': false,
'has_validator': false,
'test_args': {'banks': [ 'RECFT::Particle' ]},
},
{
'name': 'clas12::rga::MomentumCorrection',
'has_config': false,
'test_args': {
'banks': [
'RUN::config',
Expand Down Expand Up @@ -122,7 +117,6 @@ algo_dict = [
{
'name': 'physics::Depolarization',
'algorithm_needs_ROOT': true, # since `physics::InclusiveKinematics` needs ROOT
'has_config': false,
'test_args': {
'banks': [ ],
'prerequisites': [ 'physics::InclusiveKinematics' ],
Expand All @@ -147,7 +141,6 @@ algo_dict = [
'name': 'clas12::MatchParticleProximity',
'algorithm_needs_ROOT': true,
'has_validator': false, # FIXME # need an MC file for non-empty validator plots
'has_config': true,
'has_action_yaml': false,
'test_args': {
'banks': [ 'REC::Particle', 'MC::Particle' ],
Expand Down Expand Up @@ -181,7 +174,6 @@ foreach algo : algo_dict

algo_name = algo.get('name')
algo_dir = algo.get('directory', '/'.join(algo_name.split('::')))
algo_has_config = algo.get('has_config', true)
algo_has_validator = algo.get('has_validator', true)
algo_has_action_yaml = algo.get('has_action_yaml', true)
algo_needs_ROOT = algo.get('algorithm_needs_ROOT', false)
Expand All @@ -201,9 +193,7 @@ foreach algo : algo_dict
endforeach

# config files
if algo_has_config
algo_configs += algo_dir / 'Config.yaml'
endif
algo_configs += algo_dir / 'Config.yaml'

# run chameleon
if use_chameleon and algo_has_action_yaml
Expand Down
1 change: 1 addition & 0 deletions src/iguana/algorithms/physics/Depolarization/Config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
physics::Depolarization: