-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from denehoffman/reading-root
Read ROOT files and clean up vectors
- Loading branch information
Showing
12 changed files
with
314 additions
and
204 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 |
---|---|---|
@@ -1,56 +1,69 @@ | ||
from abc import ABCMeta, abstractmethod | ||
from pathlib import Path | ||
|
||
from laddu.amplitudes import Expression, Manager, constant, parameter | ||
from laddu.amplitudes.breit_wigner import BreitWigner | ||
from laddu.amplitudes.common import ComplexScalar, PolarComplexScalar, Scalar | ||
from laddu.amplitudes.ylm import Ylm | ||
from laddu.amplitudes.zlm import Zlm | ||
from laddu.convert import convert_from_amptools | ||
from laddu.data import BinnedDataset, Dataset, open | ||
from laddu.data import BinnedDataset, Dataset, Event, open # noqa: A004 | ||
from laddu.likelihoods import NLL, LikelihoodManager, Status | ||
from laddu.utils.variables import Angles, CosTheta, Mandelstam, Mass, Phi, PolAngle, Polarization, PolMagnitude | ||
from laddu.utils.vectors import Vector3, Vector4 | ||
|
||
from . import amplitudes, convert, data, utils | ||
|
||
__version__: str | ||
|
||
class Observer(metaclass=ABCMeta): | ||
@abstractmethod | ||
def callback(self, step: int, status: Status) -> tuple[Status, bool]: ... | ||
|
||
__version__: str | ||
def open_amptools( | ||
path: str | Path, | ||
tree: str = "kin", | ||
*, | ||
pol_in_beam: bool = False, | ||
pol_angle: float | None = None, | ||
pol_magnitude: float | None = None, | ||
num_entries: int | None = None, | ||
) -> Dataset: ... | ||
|
||
__all__ = [ | ||
"__version__", | ||
"convert", | ||
"convert_from_amptools", | ||
"Dataset", | ||
"open", | ||
"NLL", | ||
"Angles", | ||
"BinnedDataset", | ||
"utils", | ||
"data", | ||
"amplitudes", | ||
"Vector3", | ||
"Vector4", | ||
"BreitWigner", | ||
"ComplexScalar", | ||
"CosTheta", | ||
"Phi", | ||
"Angles", | ||
"PolMagnitude", | ||
"PolAngle", | ||
"Polarization", | ||
"Dataset", | ||
"Event", | ||
"Expression", | ||
"LikelihoodManager", | ||
"Manager", | ||
"Mandelstam", | ||
"Mass", | ||
"Manager", | ||
"LikelihoodManager", | ||
"NLL", | ||
"Expression", | ||
"Status", | ||
"Observer", | ||
"parameter", | ||
"constant", | ||
"Scalar", | ||
"ComplexScalar", | ||
"Phi", | ||
"PolAngle", | ||
"PolMagnitude", | ||
"PolarComplexScalar", | ||
"Polarization", | ||
"Scalar", | ||
"Status", | ||
"Vector3", | ||
"Vector4", | ||
"Ylm", | ||
"Zlm", | ||
"BreitWigner", | ||
"__version__", | ||
"amplitudes", | ||
"constant", | ||
"convert", | ||
"convert_from_amptools", | ||
"data", | ||
"open", | ||
"open_amptools", | ||
"parameter", | ||
"utils", | ||
] |
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.