lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::FileParameters Class Reference

Values needed to build data file names for a run: output directory, instrument, run number, experiment name, host name, node ID and chunk ID. More...

#include <DrpBase.hh>

Public Member Functions

 FileParameters ()
 Set every member to the placeholder value 777 (strings to the text 777).
 
 FileParameters (const Parameters &para, const RunInfo &runInfo, std::string hostname, unsigned nodeId)
 Take the output directory and instrument from para and the run number and experiment name from runInfo, and store hostname and nodeId; the chunk ID starts at 0.
 
bool advanceChunkId ()
 Increment the chunk ID; always returns true.
 
const std::string & outputDir () const
 Return the output directory.
 
const std::string & instrument () const
 Return the instrument name.
 
unsigned runNumber () const
 Return the run number.
 
const std::string & experimentName () const
 Return the experiment name.
 
const std::string & hostname () const
 Return the host name given to the constructor.
 
unsigned nodeId () const
 Return the node ID given to the constructor.
 
unsigned chunkId () const
 Return the current chunk ID.
 
std::string runName () const
 Return the run name experiment-rNNNN-sNNN-cNNN, built from the experiment name, run number (4 digits), node ID (3 digits) and chunk ID (3 digits), zero-padded.
 

Detailed Description

Values needed to build data file names for a run: output directory, instrument, run number, experiment name, host name, node ID and chunk ID.

Constructor & Destructor Documentation

◆ FileParameters() [1/2]

Drp::FileParameters::FileParameters ( )
inline

Set every member to the placeholder value 777 (strings to the text 777).

◆ FileParameters() [2/2]

Drp::FileParameters::FileParameters ( const Parameters &  para,
const RunInfo &  runInfo,
std::string  hostname,
unsigned  nodeId 
)
inline

Take the output directory and instrument from para and the run number and experiment name from runInfo, and store hostname and nodeId; the chunk ID starts at 0.

Member Function Documentation

◆ advanceChunkId()

bool Drp::FileParameters::advanceChunkId ( )
inline

Increment the chunk ID; always returns true.

◆ chunkId()

unsigned Drp::FileParameters::chunkId ( ) const
inline

Return the current chunk ID.

◆ experimentName()

const std::string & Drp::FileParameters::experimentName ( ) const
inline

Return the experiment name.

◆ hostname()

const std::string & Drp::FileParameters::hostname ( ) const
inline

Return the host name given to the constructor.

◆ instrument()

const std::string & Drp::FileParameters::instrument ( ) const
inline

Return the instrument name.

◆ nodeId()

unsigned Drp::FileParameters::nodeId ( ) const
inline

Return the node ID given to the constructor.

◆ outputDir()

const std::string & Drp::FileParameters::outputDir ( ) const
inline

Return the output directory.

◆ runName()

std::string Drp::FileParameters::runName ( ) const

Return the run name experiment-rNNNN-sNNN-cNNN, built from the experiment name, run number (4 digits), node ID (3 digits) and chunk ID (3 digits), zero-padded.

◆ runNumber()

unsigned Drp::FileParameters::runNumber ( ) const
inline

Return the run number.


The documentation for this class was generated from the following file: