forked from heidelberg-hepml/lorentz-gatr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
41 lines (36 loc) · 1.36 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
36
37
38
39
40
41
import hydra
from experiments.amplitudes.experiment import AmplitudeExperiment
from experiments.tagging.experiment import TopTaggingExperiment, QGTaggingExperiment
from experiments.top_reco.experiment import TopRecoExperiment
from experiments.eventgen.processes import (
ttbarExperiment,
zmumuExperiment,
z5gExperiment,
)
from experiments.tagging.jetclassexperiment import JetClassTaggingExperiment
from experiments.tagging.finetuneexperiment import TopTaggingFineTuneExperiment
@hydra.main(config_path="config", config_name="top_reco", 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 == "top_reco":
exp = TopRecoExperiment(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)
elif cfg.exp_type == "z5g":
exp = z5gExperiment(cfg)
else:
raise ValueError(f"exp_type {cfg.exp_type} not implemented")
exp()
if __name__ == "__main__":
main()