MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
TagEfficiencyStore Namespace Reference

Persistence for the efficiency records. More...

Functions

TString Path ()
 Path to the store.
void Write (const TString &channel, const std::vector< TagEfficiencyRecord > &records, const TString &method)
 Replace one channel's records, keeping every other channel's.
Bool_t Load (const TString &channel, Int_t reac, TagEfficiencyRecord &record)
 Read one record.
TString Method ()
 The method label stamped into the store.

Detailed Description

Persistence for the efficiency records.

Function Documentation

◆ Load()

Bool_t TagEfficiencyStore::Load ( const TString & channel,
Int_t reac,
TagEfficiencyRecord & record )

Read one record.

Parameters
channelChannel to look up.
reacReaction strip index.
[out]recordSet on success; untouched otherwise.
Returns
kFALSE when the store holds no such record.

Definition at line 64 of file TagEfficiency.cpp.

◆ Method()

TString TagEfficiencyStore::Method ( )

The method label stamped into the store.

Returns
The label, or an empty string when no store exists.

Definition at line 87 of file TagEfficiency.cpp.

Referenced by CrossSection::Run().

◆ Path()

TString TagEfficiencyStore::Path ( )

Path to the store.

Returns
root_files/tag_efficiency.root under the dataset's results.

Definition at line 27 of file TagEfficiency.cpp.

Referenced by Load(), Method(), TagEfficiency::Run(), and Write().

◆ Write()

void TagEfficiencyStore::Write ( const TString & channel,
const std::vector< TagEfficiencyRecord > & records,
const TString & method )

Replace one channel's records, keeping every other channel's.

Parameters
channelChannel whose records to replace.
recordsThe new records, one per reaction strip.
methodLabel identifying how they were produced, stamped into the store so a later reader knows what it is holding.

Definition at line 38 of file TagEfficiency.cpp.