artdaq
v3_09_01
Return to top level
Main Page
Namespaces
Classes
Files
File List
File Members
infoFilename.cc
1
#include "artdaq/DAQrate/infoFilename.hh"
2
3
#include <iomanip>
4
#include <sstream>
5
6
std::string
7
artdaq::infoFilename
(std::string
const
& prefix,
int
rank,
int
run)
8
{
9
std::ostringstream ost;
10
ost
11
<< prefix
12
<< std::setfill(
'0'
)
13
<< std::setw(4)
14
<< run
15
<<
"_"
16
<< std::setfill(
'0'
)
17
<< std::setw(4)
18
<< rank
19
<<
".txt"
;
20
return
ost.str();
21
}
artdaq::infoFilename
std::string infoFilename(std::string const &prefix, int rank, int run)
Generate a filename using the given parameters.
Definition:
infoFilename.cc:7
src
artdaq
DAQrate
infoFilename.cc
Generated on Wed Aug 12 2020 17:59:12 for artdaq by
1.8.5