pub struct Sample { /* private fields */ }Expand description
One validated sample row.
Implementations§
Source§impl Sample
impl Sample
pub fn process(&self) -> &str
pub fn files(&self) -> &[PathBuf]
pub fn is_data(&self) -> bool
pub fn is_signal(&self) -> bool
Sourcepub fn normalization_factor(&self, lumi: IntegratedLuminosity) -> Result<f64>
pub fn normalization_factor(&self, lumi: IntegratedLuminosity) -> Result<f64>
Per-event normalization for this sample.
MC uses the same formula as higgs4l_stack_opendata.rs:
luminosity_pb * xsec_pb / sumw. Data samples return 1.0.
Trait Implementations§
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more