CMS 3D CMS Logo

Functions
fffnaming Namespace Reference

Functions

std::string bolsFileName (const unsigned int run, const unsigned int ls)
 
std::string eolsFileName (const unsigned int run, const unsigned int ls)
 
std::string eorFileName (const unsigned int run)
 
std::string genericFileName (const unsigned int run, const unsigned int ls, std::string const &typePrefix, std::string const &typeSuffix, unsigned int typeWidth, std::string const &instancePrefix, std::string const &instanceSuffix, unsigned int instanceWidth, std::string const &fileExtension)
 
std::string initFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string initFileNameWithPid (const unsigned int run, const unsigned int ls, std::string const &stream)
 
std::string inputJsonFileName (const unsigned int run, const unsigned int ls, const unsigned int index)
 
std::string inputRawFileName (const unsigned int run, const unsigned int ls, const unsigned int index)
 
std::string protocolBufferHistogramFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string protocolBufferHistogramFileNameWithPid (const unsigned int run, const unsigned int ls, std::string const &stream)
 
std::string rootHistogramFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string rootHistogramFileNameWithPid (const unsigned int run, const unsigned int ls, std::string const &stream)
 
std::string runLumiPrefix (const unsigned int run, const unsigned int ls)
 
void runLumiPrefixFill (std::stringstream &ss, const unsigned int run, const unsigned int ls)
 
std::string streamerDataChecksumFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string streamerDataFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string streamerDataFileNameWithPid (const unsigned int run, const unsigned int ls, std::string const &stream)
 
std::string streamerJsonFileNameWithInstance (const unsigned int run, const unsigned int ls, std::string const &stream, std::string const &instance)
 
std::string streamerJsonFileNameWithPid (const unsigned int run, const unsigned int ls, std::string const &stream)
 

Function Documentation

◆ bolsFileName()

std::string fffnaming::bolsFileName ( const unsigned int  run,
const unsigned int  ls 
)
inline

Definition at line 27 of file FFFNamingSchema.h.

27  {
28  std::stringstream ss;
30  ss << "_BoLS.jsn";
31  return ss.str();
32  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), and contentValuesCheck::ss.

Referenced by evf::EvFDaqDirector::getBoLSFilePathOnFU().

◆ eolsFileName()

std::string fffnaming::eolsFileName ( const unsigned int  run,
const unsigned int  ls 
)
inline

Definition at line 20 of file FFFNamingSchema.h.

20  {
21  std::stringstream ss;
23  ss << "_EoLS.jsn";
24  return ss.str();
25  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), and contentValuesCheck::ss.

Referenced by evf::EvFDaqDirector::getEoLSFilePathOnBU(), and evf::EvFDaqDirector::getEoLSFilePathOnFU().

◆ eorFileName()

std::string fffnaming::eorFileName ( const unsigned int  run)
inline

Definition at line 34 of file FFFNamingSchema.h.

34  {
35  std::stringstream ss;
36  ss << "run" << std::setfill('0') << std::setw(6) << run << "_ls0000"
37  << "_EoR.jsn";
38  return ss.str();
39  }

References writedatasetfile::run, and contentValuesCheck::ss.

Referenced by evf::EvFDaqDirector::getEoRFilePath(), and evf::EvFDaqDirector::getEoRFilePathOnFU().

◆ genericFileName()

std::string fffnaming::genericFileName ( const unsigned int  run,
const unsigned int  ls,
std::string const &  typePrefix,
std::string const &  typeSuffix,
unsigned int  typeWidth,
std::string const &  instancePrefix,
std::string const &  instanceSuffix,
unsigned int  instanceWidth,
std::string const &  fileExtension 
)
inline

Definition at line 158 of file FFFNamingSchema.h.

166  {
167  std::stringstream ss;
169  ss << "_";
170  if (!typePrefix.empty())
171  ss << typePrefix;
172  if (typeWidth)
173  ss << std::setfill('0') << std::setw(typeWidth);
174  ss << typeSuffix;
175  if (!instanceSuffix.empty()) {
176  ss << "_";
177  if (!instancePrefix.empty())
178  ss << instancePrefix;
179  if (instanceWidth)
180  ss << std::setfill('0') << std::setw(instanceWidth);
181  ss << instanceSuffix;
182  }
183  if (!fileExtension.empty())
184  ss << "." << fileExtension;
185  return ss.str();
186  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), and contentValuesCheck::ss.

◆ initFileNameWithInstance()

std::string fffnaming::initFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 62 of file FFFNamingSchema.h.

65  {
66  std::stringstream ss;
68  ss << "_" << stream << "_" << instance << ".ini";
69  return ss.str();
70  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

◆ initFileNameWithPid()

std::string fffnaming::initFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 55 of file FFFNamingSchema.h.

55  {
56  std::stringstream ss;
58  ss << "_" << stream << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".ini";
59  return ss.str();
60  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getInitFilePath(), and evf::EvFDaqDirector::getOpenInitFilePath().

◆ inputJsonFileName()

std::string fffnaming::inputJsonFileName ( const unsigned int  run,
const unsigned int  ls,
const unsigned int  index 
)
inline

Definition at line 41 of file FFFNamingSchema.h.

41  {
42  std::stringstream ss;
44  ss << "_index" << std::setfill('0') << std::setw(6) << index << ".jsn";
45  return ss.str();
46  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), and contentValuesCheck::ss.

Referenced by evf::EvFDaqDirector::getInputJsonFilePath(), and evf::EvFDaqDirector::getOpenInputJsonFilePath().

◆ inputRawFileName()

std::string fffnaming::inputRawFileName ( const unsigned int  run,
const unsigned int  ls,
const unsigned int  index 
)
inline

Definition at line 48 of file FFFNamingSchema.h.

48  {
49  std::stringstream ss;
51  ss << "_index" << std::setfill('0') << std::setw(6) << index << ".raw";
52  return ss.str();
53  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), and contentValuesCheck::ss.

Referenced by evf::EvFDaqDirector::getOpenRawFilePath(), and evf::EvFDaqDirector::getRawFilePath().

◆ protocolBufferHistogramFileNameWithInstance()

std::string fffnaming::protocolBufferHistogramFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 129 of file FFFNamingSchema.h.

132  {
133  std::stringstream ss;
135  ss << "_" << stream << "_" << instance << ".pb";
136  return ss.str();
137  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getMergedProtocolBufferHistogramFilePath().

◆ protocolBufferHistogramFileNameWithPid()

std::string fffnaming::protocolBufferHistogramFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 120 of file FFFNamingSchema.h.

122  {
123  std::stringstream ss;
125  ss << "_" << stream << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".pb";
126  return ss.str();
127  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getOpenProtocolBufferHistogramFilePath(), and evf::EvFDaqDirector::getProtocolBufferHistogramFilePath().

◆ rootHistogramFileNameWithInstance()

std::string fffnaming::rootHistogramFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 148 of file FFFNamingSchema.h.

151  {
152  std::stringstream ss;
154  ss << "_" << stream << "_" << instance << ".root";
155  return ss.str();
156  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getMergedRootHistogramFilePath().

◆ rootHistogramFileNameWithPid()

std::string fffnaming::rootHistogramFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 139 of file FFFNamingSchema.h.

141  {
142  std::stringstream ss;
144  ss << "_" << stream << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".root";
145  return ss.str();
146  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getOpenRootHistogramFilePath(), and evf::EvFDaqDirector::getRootHistogramFilePath().

◆ runLumiPrefix()

std::string fffnaming::runLumiPrefix ( const unsigned int  run,
const unsigned int  ls 
)
inline

Definition at line 10 of file FFFNamingSchema.h.

10  {
11  std::stringstream ss;
12  ss << "run" << std::setfill('0') << std::setw(6) << run << "_ls" << std::setfill('0') << std::setw(4) << ls;
13  return ss.str();
14  }

References eostools::ls(), writedatasetfile::run, and contentValuesCheck::ss.

◆ runLumiPrefixFill()

void fffnaming::runLumiPrefixFill ( std::stringstream &  ss,
const unsigned int  run,
const unsigned int  ls 
)
inline

◆ streamerDataChecksumFileNameWithInstance()

std::string fffnaming::streamerDataChecksumFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 91 of file FFFNamingSchema.h.

94  {
95  std::stringstream ss;
97  ss << "_" << stream << "_" << instance << ".checksum";
98  return ss.str();
99  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getMergedDatChecksumFilePath().

◆ streamerDataFileNameWithInstance()

std::string fffnaming::streamerDataFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 81 of file FFFNamingSchema.h.

84  {
85  std::stringstream ss;
87  ss << "_" << stream << "_" << instance << ".dat";
88  return ss.str();
89  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getMergedDatFilePath().

◆ streamerDataFileNameWithPid()

std::string fffnaming::streamerDataFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 72 of file FFFNamingSchema.h.

74  {
75  std::stringstream ss;
77  ss << "_" << stream << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".dat";
78  return ss.str();
79  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getDatFilePath(), and evf::EvFDaqDirector::getOpenDatFilePath().

◆ streamerJsonFileNameWithInstance()

std::string fffnaming::streamerJsonFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 110 of file FFFNamingSchema.h.

113  {
114  std::stringstream ss;
116  ss << "_stream" << stream << "_" << instance << ".jsn";
117  return ss.str();
118  }

References instance, eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

◆ streamerJsonFileNameWithPid()

std::string fffnaming::streamerJsonFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 101 of file FFFNamingSchema.h.

103  {
104  std::stringstream ss;
106  ss << "_" << stream << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".jsn";
107  return ss.str();
108  }

References eostools::ls(), writedatasetfile::run, runLumiPrefixFill(), contentValuesCheck::ss, and cms::cuda::stream.

Referenced by evf::EvFDaqDirector::getOpenOutputJsonFilePath(), and evf::EvFDaqDirector::getOutputJsonFilePath().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
fffnaming::runLumiPrefixFill
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
Definition: FFFNamingSchema.h:16