pub struct SingleProcessDatacard<'a> { /* private fields */ }Expand description
A Combine datacard with one process column per channel.
Implementations§
Source§impl<'a> SingleProcessDatacard<'a>
impl<'a> SingleProcessDatacard<'a>
Sourcepub fn new(process: impl Into<String>) -> Self
pub fn new(process: impl Into<String>) -> Self
Create a single-process datacard. The default process index is 0.
Sourcepub fn with_process_index(self, process_index: i32) -> Self
pub fn with_process_index(self, process_index: i32) -> Self
Set the Combine process index used in the numeric process row.
Sourcepub fn with_channel(self, channel: Channel<'a>) -> Self
pub fn with_channel(self, channel: Channel<'a>) -> Self
Add one channel/bin. In this slice each channel has exactly one process.
Sourcepub fn with_flat_weight_systematic(
self,
systematic: FlatWeightSystematic,
) -> Self
pub fn with_flat_weight_systematic( self, systematic: FlatWeightSystematic, ) -> Self
Add a flat normalization-only weight systematic emitted as lnN.
pub fn process(&self) -> &str
pub fn channels(&self) -> &[Channel<'a>]
pub fn flat_weight_systematics(&self) -> &[FlatWeightSystematic]
Sourcepub fn write(&self, output_dir: &Path) -> Result<DatacardOutput>
pub fn write(&self, output_dir: &Path) -> Result<DatacardOutput>
Write datacard.txt and shapes.root into output_dir.
Trait Implementations§
Source§impl<'a> Clone for SingleProcessDatacard<'a>
impl<'a> Clone for SingleProcessDatacard<'a>
Source§fn clone(&self) -> SingleProcessDatacard<'a>
fn clone(&self) -> SingleProcessDatacard<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SingleProcessDatacard<'a>
impl<'a> Debug for SingleProcessDatacard<'a>
Source§impl<'a> PartialEq for SingleProcessDatacard<'a>
impl<'a> PartialEq for SingleProcessDatacard<'a>
impl<'a> StructuralPartialEq for SingleProcessDatacard<'a>
Auto Trait Implementations§
impl<'a> Freeze for SingleProcessDatacard<'a>
impl<'a> RefUnwindSafe for SingleProcessDatacard<'a>
impl<'a> Send for SingleProcessDatacard<'a>
impl<'a> Sync for SingleProcessDatacard<'a>
impl<'a> Unpin for SingleProcessDatacard<'a>
impl<'a> UnsafeUnpin for SingleProcessDatacard<'a>
impl<'a> UnwindSafe for SingleProcessDatacard<'a>
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