-
Notifications
You must be signed in to change notification settings - Fork 6
/
run.py
35 lines (30 loc) · 1.15 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import hydra
from experiments.amplitudes.experiment import AmplitudeExperiment
from experiments.tagging.experiment import TopTaggingExperiment, QGTaggingExperiment
from experiments.eventgen.processes import (
ttbarExperiment,
zmumuExperiment,
)
from experiments.tagging.jetclassexperiment import JetClassTaggingExperiment
from experiments.tagging.finetuneexperiment import TopTaggingFineTuneExperiment
@hydra.main(config_path="config", config_name="amplitudes", version_base=None)
def main(cfg):
if cfg.exp_type == "amplitudes":
exp = AmplitudeExperiment(cfg)
elif cfg.exp_type == "toptagging":
exp = TopTaggingExperiment(cfg)
elif cfg.exp_type == "qgtagging":
exp = QGTaggingExperiment(cfg)
elif cfg.exp_type == "jctagging":
exp = JetClassTaggingExperiment(cfg)
elif cfg.exp_type == "toptaggingft":
exp = TopTaggingFineTuneExperiment(cfg)
elif cfg.exp_type == "ttbar":
exp = ttbarExperiment(cfg)
elif cfg.exp_type == "zmumu":
exp = zmumuExperiment(cfg)
else:
raise ValueError(f"exp_type {cfg.exp_type} not implemented")
exp()
if __name__ == "__main__":
main()