CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
fffnaming Namespace Reference

Functions

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 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

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

Definition at line 19 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

19  {
20  std::stringstream ss;
22  ss << "_EoLS.jsn";
23  return ss.str();
24  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::eorFileName ( const unsigned int  run)
inline

Definition at line 26 of file FFFNamingSchema.h.

References contentValuesCheck::ss.

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

26  {
27  std::stringstream ss;
28  ss << "run" << std::setfill('0') << std::setw(6) << run << "_ls0000" << "_EoR.jsn";
29  return ss.str();
30  }
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 136 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

140  {
141  std::stringstream ss;
143  ss << "_";
144  if (typePrefix.size())
145  ss << typePrefix;
146  if (typeWidth)
147  ss << std::setfill('0') << std::setw(typeWidth);
148  ss << typeSuffix;
149  if (instanceSuffix.size()) {
150  ss << "_";
151  if (instancePrefix.size())
152  ss << instancePrefix;
153  if (instanceWidth)
154  ss << std::setfill('0') << std::setw(instanceWidth);
155  ss << instanceSuffix;
156  }
157  if (fileExtension.size())
158  ss << "." << fileExtension;
159  return ss.str();
160  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::initFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 55 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

55  {
56  std::stringstream ss;
58  ss << "_" << stream
59  << "_" << instance
60  << ".ini";
61  return ss.str();
62  }
static PFTauRenderPlugin instance
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::initFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 46 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

46  {
47  std::stringstream ss;
49  ss << "_" << stream
50  << "_pid" << std::setfill('0') << std::setw(5) << getpid()
51  << ".ini";
52  return ss.str();
53  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::inputJsonFileName ( const unsigned int  run,
const unsigned int  ls,
const unsigned int  index 
)
inline

Definition at line 32 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

32  {
33  std::stringstream ss;
35  ss << "_index" << std::setfill('0') << std::setw(6) << index << ".jsn";
36  return ss.str();
37  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::inputRawFileName ( const unsigned int  run,
const unsigned int  ls,
const unsigned int  index 
)
inline

Definition at line 39 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

39  {
40  std::stringstream ss;
42  ss << "_index" << std::setfill('0') << std::setw(6) << index << ".raw";
43  return ss.str();
44  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::protocolBufferHistogramFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 109 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

109  {
110  std::stringstream ss;
112  ss << "_" << stream
113  << "_" << instance
114  << ".pb";
115  return ss.str();
116  }
static PFTauRenderPlugin instance
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::protocolBufferHistogramFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 100 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

100  {
101  std::stringstream ss;
103  ss << "_" << stream
104  << "_pid" << std::setfill('0') << std::setw(5) << getpid()
105  << ".pb";
106  return ss.str();
107  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::rootHistogramFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 127 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

127  {
128  std::stringstream ss;
130  ss << "_" << stream
131  << "_" << instance
132  << ".root";
133  return ss.str();
134  }
static PFTauRenderPlugin instance
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::rootHistogramFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 118 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

118  {
119  std::stringstream ss;
121  ss << "_" << stream
122  << "_pid" << std::setfill('0') << std::setw(5) << getpid()
123  << ".root";
124  return ss.str();
125  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::runLumiPrefix ( const unsigned int  run,
const unsigned int  ls 
)
inline

Definition at line 9 of file FFFNamingSchema.h.

References python.rootplot.utilities::ls(), and contentValuesCheck::ss.

9  {
10  std::stringstream ss;
11  ss << "run" << std::setfill('0') << std::setw(6) << run << "_ls" << std::setfill('0') << std::setw(4) << ls;
12  return ss.str();
13  }
void fffnaming::runLumiPrefixFill ( std::stringstream &  ss,
const unsigned int  run,
const unsigned int  ls 
)
inline
std::string fffnaming::streamerDataFileNameWithInstance ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream,
std::string const &  instance 
)
inline

Definition at line 73 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

73  {
74  std::stringstream ss;
76  ss << "_" << stream
77  << "_" << instance
78  << ".dat";
79  return ss.str();
80  }
static PFTauRenderPlugin instance
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::streamerDataFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 64 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

64  {
65  std::stringstream ss;
67  ss << "_" << stream
68  << "_pid" << std::setfill('0') << std::setw(5) << getpid()
69  << ".dat";
70  return ss.str();
71  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::streamerJsonFileNameWithInstance ( 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.

References runLumiPrefixFill(), and contentValuesCheck::ss.

91  {
92  std::stringstream ss;
94  ss << "_stream" << stream
95  << "_" << instance
96  << ".jsn";
97  return ss.str();
98  }
static PFTauRenderPlugin instance
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)
std::string fffnaming::streamerJsonFileNameWithPid ( const unsigned int  run,
const unsigned int  ls,
std::string const &  stream 
)
inline

Definition at line 82 of file FFFNamingSchema.h.

References runLumiPrefixFill(), and contentValuesCheck::ss.

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

82  {
83  std::stringstream ss;
85  ss << "_" << stream
86  << "_pid" << std::setfill('0') << std::setw(5) << getpid()
87  << ".jsn";
88  return ss.str();
89  }
void runLumiPrefixFill(std::stringstream &ss, const unsigned int run, const unsigned int ls)